-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
SchemaTypeRef field wrong set nil #314
Comments
Could you provide a simplified example? Also, why do you use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello,
When I parse a swagger json, the request body refer to an object, such as #/components/schemas/TeacherAdmitWay,
but the SchemaTypeRef in pathItem.Post.RequestBody.Schema is nil.
the attachment is the json file. the code below
In Schema.Build method, the code blow
_, schemaRefLabel, schemaRefNode := utils.FindKeyNodeFullTop(SchemaTypeLabel, root.Content)
SchemaTypeLabel is "$schema", but not found in the json file.
attache json file:
test.json
The text was updated successfully, but these errors were encountered: