-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
Could not find the JSON path of a referenced schema #1429
Comments
I'm getting this error in nswag and I have no way to diagnose what the problem is as a result of this error message. |
Looks like it's trying to resolve the schema for a JValue property but getting null as a reference and then throwing this error |
It might be possible to add some custom filters to locate the problem in the following way services.AddSwaggerGen(options =>
{
options.UseInlineDefinitionsForEnums();
options.DocumentFilter<SwaggerDocumentFilter>();
options.CustomSchemaIds(type => type.Name);
options.SchemaFilter<SwaggerEnumSchemaFilter>();
options.OperationFilter<SwaggerOperationIdFilter>();
options.OperationFilter<SwaggerOperationFilter>();
options.ParameterFilter<SwaggerEnumParameterFilter>();
options.CustomDefaultSchemaIdSelector();
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is recommended to throw a more detailed error message here
I debug the source code , here the clue is broken.
NJsonSchema/src/NJsonSchema/JsonPathUtilities.cs
Line 71 in 80c5d00
How do I output the error information here?
The text was updated successfully, but these errors were encountered: