Skip to content
Snippets Groups Projects
Commit bef38d08 authored by Alvaro Cabrera Durán's avatar Alvaro Cabrera Durán
Browse files

Add boilerplate test for oneOf issue; FIXME

parent 4d9bdf4e
No related branches found
No related tags found
No related merge requests found
{
"description": "...",
"tests": [
{
"description": "should ...",
"schema": {
"type": "object",
"required": [
"filters"
],
"properties": {
"filters": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/FilterAgc"
},
{
"$ref": "#/definitions/FilterSubspace"
}
]
}
}
},
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
"FilterAgc": {
"type": "object",
"required": [
"params"
],
"properties": {
"params": {
"$ref": "#/definitions/FilterAgcParams"
},
"enabled": {
"type": "boolean"
}
}
},
"FilterAgcParams": {
"type": "object",
"required": [
"window_length_seconds"
],
"properties": {
"window_length_seconds": {
"type": "number"
}
}
},
"FilterSubspace": {
"type": "object",
"required": [
"params"
],
"properties": {
"params": {
"$ref": "#/definitions/FilterSubspaceParams"
},
"enabled": {
"type": "boolean"
}
}
},
"FilterSubspaceParams": {
"type": "object",
"required": [
"iterations"
],
"properties": {
"iterations": {
"type": "integer"
}
}
}
}
},
"skip": true,
"valid": true
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment