Created
July 5, 2022 03:46
-
-
Save blikblum/34189137c2fc32ab1be5005bdd2a045e to your computer and use it in GitHub Desktop.
json schema faker allOf
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
{ | |
"type": "object", | |
"properties": { | |
"collection": { | |
"type": "array", | |
"items": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/model" | |
} | |
], | |
"properties": { | |
"cash": { | |
"faker": { | |
"finance.amount": [ | |
100, | |
10000, | |
2, | |
"$" | |
] | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"collection" | |
], | |
"definitions": { | |
"model": { | |
"type": "object", | |
"properties": { | |
"cash": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"cash" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment