Please delete this section, and any sections below that you don't use, before creating the issue.
Describe the bug
Starting from OAS 3.1.0, the externalValue should allow relative reference, See the documentation
To Reproduce
- Create a schema as following using openapi:3.1.0
Response:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseSchema'
examples:
jsonObject:
externalValue: "./components/response.json"
- Attempt to use spectral to validate this schema with spectral:oas rule.
- Validation failed with
error oas3-schema "externalValue" property must match format "uri".
Expected behavior
Spectral validation should pass and allow for relative URLs
Describe the bug
Starting from OAS 3.1.0, the
externalValueshould allow relative reference, See the documentationTo Reproduce
Expected behavior
Spectral validation should pass and allow for relative URLs