Rules no-invalid-media-type-example does not handle OAS specifics tags for XML #1276
Labels
governance
Issues relating to problems with or requests for API governance/linting/decorating
p3
Type: Enhancement
Describe the bug
no-invalid-media-type-example is behaving incorrectly and raising a false positive error when using XML
OAS specify dedicated tag to handle XML around tag names rewrite , name space, and attribute. Those looks not handled by redoclint
To Reproduce
given the specification below the example is correct but redoclint raises the below error
using the minimal command line : redocly lint sample.json
Warning was generated by the no-invalid-media-type-examples rule. with Example value must conform to the schema: type must be object.
Expected behavior
The example should not raise an error , as the file is correct
Logs
OpenAPI description
Redocly Version(s)
Using 1.0.2
The text was updated successfully, but these errors were encountered: