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

openapi3: Implement YAML Marshaler interface for AdditionalProperties #922

Merged
merged 4 commits into from
Mar 11, 2024
Merged

openapi3: Implement YAML Marshaler interface for AdditionalProperties #922

merged 4 commits into from
Mar 11, 2024

Conversation

praneetloke
Copy link
Contributor

I discovered this bug when serializing an OpenAPI spec with component schemas that had additionalProperties. Once marshaled, the schema would end up with the raw has and schema properties of the AdditionalProperties struct type and thereafter it's impossible to have a successfully validating OpenAPI doc loaded from that modified schema. I've also added a test to describe the issue.

I've also run ./docs.sh and committed the diff as a separate commit. Please let me know if you have any questions.

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

Successfully merging this pull request may close these issues.

2 participants