-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
v3: allow extensions next to $ref in SchemaRef #900
Comments
Oh my, thanks for noticing and reporting! This is definitely a bug / not wanted! |
I created a pr to add Extension to |
I have verified that #901 adds the support needed to fix my use-case in oapi-codegen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to extent
SchemaRef
to have aExtensions
orRefExtensions
to capture extensions next to $ref.For example, if I have:
I would like to capture the
x-order: 1
withinSchemaRef.Extensions["x-order"]
Looking at the code it looks like it's "if
$ref
only capture $ref"I don't think the openapi v3 spec official supports this but it would be very helpful.
My use-case is specifying the
x-order
, a new feature added to oapi-codegen. For example:It works if you specify the
x-order
in the referenced object, but in the above it needs to be context dependent. A change would need to be made to oapi-codegen but it looks to be blocked by this issue.If this change is okay, I can work on the PR.
The text was updated successfully, but these errors were encountered: