-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore(TestModels): Add constraints inside list, map and union #485
base: main-1.x
Are you sure you want to change the base?
Conversation
@@ -96,6 +96,11 @@ list ListLessThanOrEqualToTen { | |||
member: String | |||
} | |||
|
|||
@length(min: 1, max: 10) | |||
list ListWithConstraint { | |||
member: MyString |
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.
Self commenting a note posterity:
MyString has constraint @length(min: 1, max: 10)
Other aggregate shapes that was added also has similar constraint
It would be good to also add a constraint within multiple levels of structures, to ensure that we're not only validating input structures. For example
|
Issue #, if available:
Description of changes:
This PR adds constraints inside list (
ListWithConstraint
), map (MapWithConstraint
) and union (UnionWithConstraint
) in the test model.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.