Skip to content

Should OpenAPI forge validate that API responses adhere to the schema? #203

@ColinEberhardt

Description

@ColinEberhardt

At the moment the Forge (and most other similar generators) are lax in their handling of returned data. More specifically, if a model object has a required property, this is not enforced by the generated code.

It might be useful to have an option (potentially at runtime not generation-time) where invalid responses result in exceptions, or some other error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions