Problem description
In SimSwap we discovered that there was a property defined without having the type-attribute set.
See camaraproject/SimSwap#195
Possible evolution
Add a spectral-rule for checking the type-attribute.
e.g.
camara-schema-type-check:
message: "Invalid or missing type in schema definition."
severity: error
given: "$.components.schemas.*"
then:
field: type
function: pattern
functionOptions:
match: "^(string|number|integer|boolean|array|object)$"
recommended: true
Problem description
In SimSwap we discovered that there was a property defined without having the
type-attribute set.See camaraproject/SimSwap#195
Possible evolution
Add a spectral-rule for checking the
type-attribute.e.g.