...
27:20 error oas3-valid-schema-example "example" property must match format "uri" components.schemas.PaginatedAPNSDeviceList.properties.next.example
this is caused by " in example. (same arror can happen with oas3-valid-media-example)
Expected behavior
other yaml libraries (eg. pyyaml) recognize not-leading double quote and treat the value like a string, so it should not fail the validation (since format: uri gets downgraded to type: string, which should match, and if format: uri is recognized it should be valid anyway)
Describe the bug when linting yaml file, value containing double quote
"
does not get recognized as stringTo Reproduce
a.yaml
and
.spectral.yaml
spectral lint a.yaml
this is caused by
"
in example. (same arror can happen with oas3-valid-media-example)Expected behavior other yaml libraries (eg. pyyaml) recognize not-leading double quote and treat the value like a string, so it should not fail the validation (since format: uri gets downgraded to type: string, which should match, and if format: uri is recognized it should be valid anyway)