-
Notifications
You must be signed in to change notification settings - Fork 9
Schemas are parsed in spinal case instead of camel case when using path references #124
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
Comments
Interesting, I didn't know you can navigate like this. I will take a look at which level this is going wrong. Thanks for the example. Reference: |
I've tested different use cases of path references, while looking at your tests. Here's another example that shows a problem with page composition, and one with global parameters:
openapi-bug-pageable-and-params.zip I will not use references between the paths for now, that's no big deal. |
The examples help a lot, Thanks. The issue is that the processor tries to get schema names (titles) of $refs by extracting them from the $ref path. That fails for a lot of $refs in your example. Looking at it now, I don't understand why it works at all ;-) |
Fixed it. Both examples produce proper code now. :-) That was a nasty one, but my original code wasn't so bad at all. The swagger parser is doing something very similar internally. :-) Release will follow in the next days. |
Nice ! So quick ! I have no doubts about the quality of the code. Thank you 😃 |
…if components/schema/... is a $ref
published 2021.3, fixing this one. |
Hello,
When using path reference,
The schemas used by the referenced path are parsed in spinal-case,
public class user {
For schemas whose name is in several parts, like UserSearch, the parser writes a hyphen (user-search) and stops because the syntax of java doesn't support that.
Because it's a bit complicated to exlain I've attached the full example
openapi-bug.zip
The text was updated successfully, but these errors were encountered: