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

oas3-valid-media-example reports on missing examples where response body uses a required but read only property #2490

Closed
savage-alex opened this issue Jun 19, 2023 · 2 comments

Comments

@savage-alex
Copy link

Given a schema that contains a readonly and required property such as fooId
When this schema is used in a response body and a schema level example is provided without fooId (its read only)
The OAS3 valid media example error is thrown even though the schema is valid vs openAPI3 rules on read only required properties in requestBodies.

Thanks

@LasneF
Copy link

LasneF commented Jun 21, 2023

isnt it a duplicate of #1274

@mnaumanali94
Copy link
Contributor

Duplicate of #1274

@mnaumanali94 mnaumanali94 marked this as a duplicate of #1274 Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants