Skip to content

Return @dataclasses objects instead of primitives in request.openapi_validated #3

Open

Description

@zupo

Instead of having strings, ints, etc in request.openapi_validated we could have dataclass objects that match the schema and provide type protection.

Activity

  1. zupo commented on Aug 2, 2018

    @zupo
    CollaboratorAuthor
  2. domenkozar commented on Aug 23, 2018

    @domenkozar
    Member
  3. zupo commented on May 22, 2019

    @zupo
    CollaboratorAuthor

    It seems pyramid-swagger can generate python models on the fly: https://pyramid-swagger.readthedocs.io/en/latest/quickstart.html#accessing-request-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions