Closed
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
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": ""
}