-
-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
Priority: MediumclarificationItems that need to be clarified in the specificationItems that need to be clarified in the specification
Milestone
Description
Not sure if this is wrong or not, but might need to be changed to be consistent. It is although a very minor issue.
json-schema-spec/jsonschema-hyperschema.xml
Lines 1593 to 1606 in 7a6c26c
{ | |
"contextUri": "https://api.example.com", | |
"contextPointer": "", | |
"rel": "self", | |
"targetUri": "https://api.example.com", | |
"attachmentPointer": "" | |
}, | |
{ | |
"contextUri": "https://api.example.com", | |
"contextPointer": "", | |
"rel": "about", | |
"targetUri": "https://api.example.com/docs", | |
"attachmentPointer": "" | |
} |
Here the contextUri is set to https://api.example.com (no trailing slash) The base has a trailing slash. I know the slash can be omitted if the path is empty. But in reality the slash is there in those cases, just omitted. For instance when doing curl example.com -Iv
it produces HEAD / HTTP/1.1
Chrome does the same.
Especially when the base contains a trailing slash the example should IMO contain a trailing slash as well.
So the suggested change:
{
"contextUri": "https://api.example.com/",
"contextPointer": "",
"rel": "self",
"targetUri": "https://api.example.com/",
"attachmentPointer": ""
}
Metadata
Metadata
Assignees
Labels
Priority: MediumclarificationItems that need to be clarified in the specificationItems that need to be clarified in the specification