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

OpenAPI compliance: avoid $ref siblings #1457

Merged
merged 2 commits into from Mar 7, 2023
Merged

Conversation

KitsuneRal
Copy link
Member

@KitsuneRal KitsuneRal commented Mar 1, 2023

This strives to fix all remaining cases where additional attributes (most often 'description' but not only) are provided next to $ref by wrapping $ref in allOf; and also drops allOf in a couple of places where $ref is the only element under it.

(this does not cover examples - unfortunately, those use $ref siblings extensively and have to be addressed in a more fundamental way)

Preview: https://pr1457--matrix-spec-previews.netlify.app

This strives to fix all remaining cases where additional attributes
(most often 'description' but not only) are provided next to $ref
by wrapping $ref in allOf; and also drops allOf in a couple of places
where $ref is the only element under it.
@KitsuneRal KitsuneRal marked this pull request as ready for review March 1, 2023 13:28
@KitsuneRal KitsuneRal requested a review from a team as a code owner March 1, 2023 13:28
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@richvdh richvdh merged commit 9ebcf5f into main Mar 7, 2023
@richvdh richvdh deleted the kitsune/avoid-ref-siblings branch March 7, 2023 16:51
clokep pushed a commit to clokep/matrix-spec that referenced this pull request May 3, 2023
This strives to fix all remaining cases where additional attributes
(most often 'description' but not only) are provided next to $ref
by wrapping $ref in allOf; and also drops allOf in a couple of places
where $ref is the only element under it.
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.

None yet

2 participants