RESOLVE_AUTHORITY multiple errors

next-release

(Vadim Drapkin) #1

Hi,

I am working on creating API documentation for SCIM v2 protocol.
In my API definition, I am using objects similar to:
{
“schemas”: [
“urn:ietf:params:scim:api:messages:2.0:PatchOp”
],
“Operations”: [
{
“op”: “add”,
“path”: “members”,
“value”: [
{
“display”: “Babs Jensen”,
“$ref”: “https://example.com/v2/Users/2819c223...413861904646”,
“value”: “2819c223-7f76-453a-919d-413861904646”
}
]
}
]
}
This is the structure defined by RFC7644 (https://tools.ietf.org/html/rfc7644) and I am getting a RESOLVE_AUTHORITY error for the attribute “$ref”.
Please advice what should I do to resolve these errors

Thank you


(Taylor Barnett) #2

Hi! Is the URL at the $ref a valid URL? The reference resolver is trying to resolve the URL and it might be getting a 404 back.


(Vadim Drapkin) #3

No, the URL is a sample URL provided as part of the example data. is there a way to disable the URL verification for the Examples section of the API method?


(Taylor Barnett) #4

I’m checking more on this. It would be nice to have a feature that allows you to turn it off, but it doesn’t exist right now. I’m double checking if just leaving the errors there will cause any problems down the line.


(Taylor Barnett) #5

It appears the fix for https://community.stoplight.io/t/jsonschema-loading-ref-error-while-viewing-publishing-the-hub/ might also fix this issue. I’ll make sure to follow up after the release is out at the end of this week.


(Taylor Barnett) #6

Sharing from the other thread:


(Taylor Barnett) #7

@vadimdr hi! Just wanted to check in to see if you are still seeing this issue. It should have been fixed in the last release about a week ago.