This rule belongs to the
openapi-v3-standards-linting ruleset and states that:
unevaluatedProperties can only be used for Schema Objects when the
type is either unspecified (implying any type) or set as
object. This property is not applicable for any other types.
|Products Impacted||API Transformer, Code Generation, Developer Experience Portal|
- Ensure that the value of
typein the Schema Object is not set to a value other than
- Type names are compared in a case-sensitive manner.
- If you use the
unevaluatedPropertieskeyword, ensure that the data instance you intend to validate can be an object.
- If the type of the instance can vary i.e. it can be an object or some other type, consider removing the
typekeyword to allow any types. If you use the
anyOfconstructs instead, consider moving the
anyOfschema that has the type set as