json validation String is not a URI: URI with a scheme is expected. #2584
-
hello, I try to validate my oas 3.1.0 and I get a error on internal $ref values String is not a URI: URI with a scheme is expected I define like that "400": {
"$ref": "#/components/responses/rsp400"
} /components/responses/rsp400 is correctly defined (jump to with editor works good) To validate the json semantic, I use the "$schema": "https://spec.openapis.org/oas/3.1/schema/2021-03-02". where $ref is defined as a #/$def/uri and uri is format 'uri' which request a uri scheme "uri": {
"type": "string",
"format": "uri"
} what to do to solve the error ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The format should be However, |
Beta Was this translation helpful? Give feedback.
-
Fixed years ago, closing! |
Beta Was this translation helpful? Give feedback.
The format should be
uri-reference
, noturi
. I'll make a PR to fix it.However,
format
should be annotation-only and not cause validation failures.