-
Notifications
You must be signed in to change notification settings - Fork 218
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
Added scheme property to HttpApiKeyAuth trait #893
Conversation
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.
Thank you @DavidOgunsAWS ! I can't claim that I know what's required to make this all work but everything here seems to make sense. One typo in the docs.
smithy-model/src/main/java/software/amazon/smithy/model/traits/HttpApiKeyAuthTrait.java
Outdated
Show resolved
Hide resolved
...in/java/software/amazon/smithy/model/validation/validators/HttpApiKeyAuthTraitValidator.java
Outdated
Show resolved
Hide resolved
...in/java/software/amazon/smithy/model/validation/validators/HttpApiKeyAuthTraitValidator.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/resources/software/amazon/smithy/model/loader/prelude.smithy
Outdated
Show resolved
Hide resolved
...rces/software/amazon/smithy/linters/errorfiles/http-api-key-scheme-trait-validator-test.json
Outdated
Show resolved
Hide resolved
…oader/prelude.smithy Co-authored-by: Jordon Phillips <JordonPhillips@users.noreply.github.com>
@DavidOgunsAWS per this comment, I've discovered this code that I think needs to be updated as part of this PR. Thoughts? I wouldn't want this to go in and then be unable to fix the behaviour because it would break backwards compatibility. |
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.
The above commenter is correct - you'll need to update the openapi export to whatever apigateway expects.
Issue #, if available:
#872 being addressed.
Description of changes:
New scheme property for existing trait. Additional validation to restrict usage to in=header to allow only practical or known use cases.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.