-
Notifications
You must be signed in to change notification settings - Fork 205
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
Adds support for Symbol references in defaults #419
Adds support for Symbol references in defaults #419
Conversation
/cc @apelisse |
9d24c3a
to
0db7937
Compare
refactor openapi test to return import lines add symbol reference test
0db7937
to
3b85353
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'd feel a lot better if we had an integration test though.
added integration test, removed change to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's totally awesome 🌈
}, | ||
"defaultedAliasSymbolReference": { | ||
"type": "string", | ||
"default": "SymbolConstant" | ||
}, | ||
"externalSymbolReference": { | ||
"type": "string", | ||
"default": "apple" | ||
}, | ||
"fullyQualifiedSymbolReference": { | ||
"type": "string", | ||
"default": "SymbolConstant" | ||
}, | ||
"localSymbolReference": { | ||
"type": "string", | ||
"default": "SymbolConstant" | ||
}, | ||
"pointerConversionSymbolReference": { | ||
"type": "string", | ||
"default": "apple" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool to have the end-to-end test show that we end-up with the properly resolved values injected in the openapi! (big belated thanks to @seans3 for having written the test that makes the end-to-end possible).
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexzielenski, apelisse The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@thockin !! |
gengo's Defaulter-gen has support for symbol references to be used as defaults in the form
+default=ref(package/of/symbol.Name)
This PR exposes defaults declared as symbols into the OpenAPI
depends on kubernetes/gengo#247