Fix test.json schema for 'matrix'

I'm not sure what the current schema is describing, but it's not doing
anything useful to validate 'matrix' entries, as I discover when I come
to add something to that.

'matrix' is a dict with possible keys 'options' and 'exclude'.
'options' is a dict with arbitrary keys, whose's values are arrays

Once we describe those dicts correctly, also fix that 'val' keys may be
string, boolean or null, and the corresponding 'exclude' keys may be
string or boolean.

v2:
Also allow 'val' and 'exclude' to be an array of strings.
pull/8924/head
Jon Turney 4 years ago
parent 81d2d559f1
commit 5da3557331
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 16
      data/test.schema.json

@ -54,16 +54,19 @@
},
"matrix": {
"type": "object",
"additionalProperties": {
"properties": {
"options": {
"properties": {
"options": {
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"val": {
"type": "string"
"type": ["string", "boolean", "null", "array"],
"items": {
"type": "string"
}
},
"compilers": {
"type": "object",
@ -88,7 +91,10 @@
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
"type": ["string", "boolean", "array"],
"items": {
"type": "string"
}
}
}
}

Loading…
Cancel
Save