Closed
Description
Schema Inaccuracy
A "type": "array"
requires "items"
, which in turn can be of type "object"
with the "properties"
key
"code-scanning-alert-instances": {
"nullable": true,
"type": "array",
"properties": {
"ref": {
"$ref": "#/components/schemas/code-scanning-alert-ref"
},
"analysis_key": {
"$ref": "#/components/schemas/code-scanning-analysis-analysis-key"
},
"environment": {
"$ref": "#/components/schemas/code-scanning-alert-environment"
},
"matrix_vars": {
"nullable": true,
"type": "string"
},
"state": {
"$ref": "#/components/schemas/code-scanning-alert-state"
}
}
},
Expected
"code-scanning-alert-instances": {
"nullable": true,
"type": "array",
"items": {
"type": "object",
"properties": {
"ref": {
"$ref": "#/components/schemas/code-scanning-alert-ref"
},
"analysis_key": {
"$ref": "#/components/schemas/code-scanning-analysis-analysis-key"
},
"environment": {
"$ref": "#/components/schemas/code-scanning-alert-environment"
},
"matrix_vars": {
"nullable": true,
"type": "string"
},
"state": {
"$ref": "#/components/schemas/code-scanning-alert-state"
}
}
}
},
Reproduction Steps
n/a