-
Notifications
You must be signed in to change notification settings - Fork 163
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
cfn validate fails for wrong min/max constraint #414
Labels
Comments
This was referenced Aug 6, 2020
Merged
This was referenced Aug 7, 2020
This might be worth pushing into the validation library we use: https://github.com/everit-org/json-schema Also need to make sure our dependencies are up to date. |
This was referenced Nov 3, 2020
avinash-karthik
pushed a commit
to aws-cloudformation/aws-cloudformation-resource-providers-opsworkscm
that referenced
this issue
Nov 5, 2020
…nt instead of minLength (#33) aws-cloudformation/cloudformation-cli#414 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-backupretentioncount #16 (comment) https://json-schema.org/understanding-json-schema/reference/numeric.html#range
PatMyron
changed the title
cfn validate fails for wrong numeric constraint.
cfn validate fails for wrong min/max constraint
Jan 5, 2021
This was referenced Jan 7, 2021
Merged
This was referenced Jan 28, 2021
PatMyron
added a commit
that referenced
this issue
Apr 13, 2021
More incorrect JSON schema keywords for specific types beyond min/max keywords like
|
PatMyron
added a commit
that referenced
this issue
Apr 26, 2021
expanding type_specific_keywords similar to #414
eduardomourar
pushed a commit
to eduardomourar/cloudformation-cli
that referenced
this issue
Apr 30, 2021
…on#729) expanding type_specific_keywords similar to aws-cloudformation#414
kddejong
pushed a commit
to kddejong/cloudformation-cli
that referenced
this issue
Oct 24, 2022
…on#729) expanding type_specific_keywords similar to aws-cloudformation#414
kddejong
pushed a commit
to kddejong/cloudformation-cli
that referenced
this issue
Oct 24, 2022
…on#729) expanding type_specific_keywords similar to aws-cloudformation#414
awesomedevchris
pushed a commit
to awesomedevchris/awesome_app
that referenced
this issue
Apr 10, 2023
expanding type_specific_keywords similar to aws-cloudformation/cloudformation-cli#414
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a numeric type, the range constraints allowed are : minimum, maximum, exclusiveMinimum, exclusiveMaximum.
A schema with string contraints - minLength, maxLength on a numeric type is simply ignored during validation.
ex wrong schema:
The validation should fail here. The correct schema would be :
The text was updated successfully, but these errors were encountered: