-
Notifications
You must be signed in to change notification settings - Fork 654
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
Incorrect A-z
range in smithy.api#pattern
validations
#2803
Comments
Hi @gdavison , Thanks for reaching out. Can you explain a little more about why you think the regex should be changed? I'm not too familiar with fsx, but at least for jsonString, special characters like If I understand correctly, you are saying the regex is too "loose", meaning you are not blocked in any way, but rather trying to improve the API? Thanks again, |
In the examples from FSx, the regexes are clearly typos, since the For the Ground Station This isn't a blocker for us at the moment, though I have come across a number of cases where we have created validations based on API documentation which has included this incorrect format. Since we currently create the validations manually, we have been able to catch these errors. We are doing some planning around automatically generating code using the Smithy specifications. We will have to add code to correct the regexes, rather than relying on the specifications to be accurate. |
Hello @gdavison Thanks for the detailed explanation. I will update it here once I will get follow up on the request. Thanks, |
Hi @bhavya2109sharma, FSx and Ground Station were only a few examples. Here are the others:
Twice on the one line:
Three times on the one line:
Three times on the one line:
Three times on the one line:
|
Hello @gdavison, Thanks for pointing all these issues. I have reached out to the following teams with respective tickets :
I will update it here once I will get follow up on the request. Thanks, |
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
A number of
smithy.api#pattern
validations in the codegen models have an incorrectA-z
character rangeSome examples:
aws-sdk-go-v2/codegen/sdk-codegen/aws-models/fsx.json
Lines 2196 to 2206 in e211ac0
aws-sdk-go-v2/codegen/sdk-codegen/aws-models/fsx.json
Lines 12375 to 12384 in e211ac0
aws-sdk-go-v2/codegen/sdk-codegen/aws-models/groundstation.json
Lines 4144 to 4153 in e211ac0
Regression Issue
Expected Behavior
The range should be
A-Z
Current Behavior
The range is
A-z
, which includes[
,\
,]
,^
,_
, and ` in addition to the upper- and lower-case lettersReproduction Steps
Do a case-insensitive search for
A-z
in the repoPossible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
Release 2024-09-24
Compiler and Version used
N/A
Operating System and version
N/A
The text was updated successfully, but these errors were encountered: