Repository navigation
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 ? |
Answered by
jdesrosiers
May 20, 2021
Replies: 3 comments 1 reply
0 replies
|
The format should be However, |
1 reply
Answer selected by
Relequestual
|
Fixed years ago, closing! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The format should be
uri-reference, noturi. I'll make a PR to fix it.However,
formatshould be annotation-only and not cause validation failures.