Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ColinEberhardt opened this issue Jun 7, 2023 · 0 comments
Labels
enhancement New feature or request epic

Comments

@ColinEberhardt
Copy link
Collaborator

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.

@ColinEberhardt ColinEberhardt added enhancement New feature or request epic labels Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request epic
Projects
None yet
Development

No branches or pull requests

1 participant