-
-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The schema reference path '#/$defs/.....' has not been resolved. #1536
Comments
Replace "$defs" with "definitions" then for each type you reference change to syntax "$ref": "#/definitions/{type}". Below is the your schema updated: { |
Thanks for looking into this issue. From what I can find:
My schema is marked with "$schema": "https://json-schema.org/draft/2020-12/schema", So is this version of the draft not supported in njsonschema? Or is this a bug? |
I have the same question as @bzuidgeest. Is this a bug or it's just not supporting newer version of JSON Schema? |
Wil this be fixed any time soon? |
Condering this question its age, I believe you can answer your own question. I switched to https://quicktype.io/. It does what I need to. |
The below commented code may be the cause for this. NJsonSchema/src/NJsonSchema/Visitors/AsyncJsonReferenceVisitorBase.cs Lines 86 to 96 in 3585d60
Essentially what is happening is that the call to Replacing with a non-async visitor does work, since the above code path is uncommented in that case. |
I recently found this library and wanted to try the code generation. Unfortunately I was not able to get it to work. At least not with a recent version. 10.1 seems to work with my schema but latest (10.7.2 at the moment) gives an error "The schema reference path '#/$defs/JoinConfiguration' has not been resolved."
#1004 #1514 #1301 seem to be simmilar faults. Unfortunaly I am not smart enough to find the fault myself.
The text was updated successfully, but these errors were encountered: