Skip to content
Snippets Groups Projects
Commit 19c3cc70 authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Array testing

parent a058881d
Branches
Tags
No related merge requests found
[
{
"description": "generated array values",
"schemas": [
{
"allOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"required": ["value"]
}
},
{
"$ref": "some://rules"
}
]
}
],
"tests": [
{
"description": "should handle maxItems",
"schema": "schemas.0",
"refs": [
{
"id": "some://rules",
"maxItems": 3
}
],
"valid": true
},
{
"description": "should handle minItems",
"schema": "schemas.0",
"refs": [
{
"id": "some://rules",
"maxItems": 3,
"minItems": 2
}
],
"valid": true
},
{
"description": "should handle uniqueItems",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": ["a", "b", "c", "d", "e"]
},
"uniqueItems": true,
"maxItems": 3,
"minItems": 2
},
"valid": true
}
]
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment