-
Notifications
You must be signed in to change notification settings - Fork 803
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
new(StringArrayEndpointParams) Codegeneration of OperationContextParams defined for a Operation. #5146
new(StringArrayEndpointParams) Codegeneration of OperationContextParams defined for a Operation. #5146
Conversation
5f43b58
to
c1e665e
Compare
…ms defined for a Operation
c1e665e
to
229253d
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.
LGTM, just some minor nits.
Map<String, OperationContextParam> operationContextParams = opModel.getOperationContextParams(); | ||
return operationContextParams != null && !operationContextParams.isEmpty(); |
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.
CollectionUtils.isNotEmpty(opModel.getOperationContextParams())
?
if (Objects.requireNonNull(value.getValue().asToken()) == JsonToken.VALUE_STRING) { | ||
b.addComment("TODO: Add JMESPathRuntime for $L", ((JrsString) value.getValue()).getValue()); | ||
} else { | ||
throw new RuntimeException("Don't know how to set parameter of type " + value.getValue().asToken()); |
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.
I feel like people could make this mistake. Can we be more useful in the error message? Something like... "Invalid operation context parameter path for {operation-name}. Expected VALUE_STRING, but got {actual-value-type}".
b85710c
into
feature/StringArrayEndpointParams
Quality Gate failedFailed conditions |
* feat(StringArrayEndpointParams) Codegen String Array Enpoint params and Auth schemes params based on end-point-rule-set.json. (#5122) * Support Customization string array endpoint params for S3 access grants, until all SDKs add support for string array. (#5137) * new(StringArrayEndpointParams) Codegeneration of OperationContextParams defined for a Operation. (#5146) * Extracting existing JMESPath runtime to a separate class (#5155) * new(StringArrayEndpointParams) Customization of Operation Context params and adding customizations for S3 (#5159) * Converts endpoint param list of string to list of value (#5169) * Generates JmesPath expressions for operation context parameters (#5172) * Supporting wildcard and keys fn in JmesPathRuntime (#5198) * Adds functional tests for list of string auth params (#5216) * Changelog --------- Co-authored-by: John Viegas <70235430+joviegas@users.noreply.github.com> Co-authored-by: John Viegas <joviegas@amazon.com>
* feat(StringArrayEndpointParams) Codegen String Array Enpoint params and Auth schemes params based on end-point-rule-set.json. (aws#5122) * Support Customization string array endpoint params for S3 access grants, until all SDKs add support for string array. (aws#5137) * new(StringArrayEndpointParams) Codegeneration of OperationContextParams defined for a Operation. (aws#5146) * Extracting existing JMESPath runtime to a separate class (aws#5155) * new(StringArrayEndpointParams) Customization of Operation Context params and adding customizations for S3 (aws#5159) * Converts endpoint param list of string to list of value (aws#5169) * Generates JmesPath expressions for operation context parameters (aws#5172) * Supporting wildcard and keys fn in JmesPathRuntime (aws#5198) * Adds functional tests for list of string auth params (aws#5216) * Changelog --------- Co-authored-by: John Viegas <70235430+joviegas@users.noreply.github.com> Co-authored-by: John Viegas <joviegas@amazon.com>
Codegeneration of OperationContextParams defined for a Operation.
Note : After JMesPathRuntime implementation , the JMESPath parsing of List will be added. For now I have added a TODO as a place holder.
Motivation and Context
Modifications
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License