You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schema:
ApiError:
type: objectproperties:
detail:
type: stringerror:
type: integerformat: int32parameters:
type: arraydescription: Parameter used to give more information about the error.items:
type: object
Describe the bug
According to https://spec.openapis.org/oas/v3.0.3#schema-object object can also be primitive values but spectral seems to flag examples using primitives as invalid
To Reproduce
an example like
spectral lint
with the defaultextends: [spectral:oas]
rule setsExpected behavior
Object examples should accept primitives according to the spec
Environment (remove any that are not applicable):
The text was updated successfully, but these errors were encountered: