-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [+feature] Added parsing support for tuples
- Loading branch information
1 parent
14b670b
commit 9713dc7
Showing
4 changed files
with
408 additions
and
15 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/SimpleSchemaGenerator/SampleSchemas/Tuples.SimpleSchema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Tuples -> | ||
single: (String, ) | ||
multiple: (String, Integer, Number) | ||
|
||
container: (String, Integer, Number, )* | ||
|
||
with_metadata: ( | ||
String { min_length: 5 }, | ||
Integer { min: 10 }, | ||
Number { min: 20.0 }, | ||
) | ||
|
||
nested: ( | ||
String, | ||
(String*, Integer)+, | ||
Number, | ||
(String, (Number { max: 1.23 }, ), ), | ||
) | ||
|
||
tuples: Tuples? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.