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
User story.
As a API designer, I can run spectral to check my AsyncAPI, so that I can find out invalid property example in schema.
Describe the solution you'd like
Current Spectral AsyncAPI ruleset has a asyncapi-schema-examples rule to validate examples under a schema. However it doesn't check the example of a property. I'd expect there is an AsyncAPI rule that is equivalent to OAS rule oas3-valid-example.
Additional context
Below is an AsyncAPI snippet with invalid example:
@magicmatatjahu Thank for the clarification. I checked the specification and indeed the schema object singular example was an OpenAPI-specific keyword.
User story.
As a API designer, I can run spectral to check my AsyncAPI, so that I can find out invalid property example in schema.
Describe the solution you'd like
Current Spectral AsyncAPI ruleset has a
asyncapi-schema-examples
rule to validateexamples
under a schema. However it doesn't check theexample
of a property. I'd expect there is an AsyncAPI rule that is equivalent to OAS ruleoas3-valid-example
.Additional context
Below is an AsyncAPI snippet with invalid example:
The text was updated successfully, but these errors were encountered: