-
Notifications
You must be signed in to change notification settings - Fork 16
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
Schema does not contain information about all parameters #61
Comments
Not sure if I understand your question correctly. If you have subresources, you have to give the full chain of resources so that the generator is able to create the path correctly. The method for which the link is created has to be on the last resource. |
The path is generated correctly, but the schema is not. The full chain is given, but only the last segment of it is used at the code I mentioned. |
Do you have an example of a case where this is wrong. Is it the case where a subresource method is not allowed and this is not considered here or do you miss query or path parameters from one of the subresource methods before? |
I have one back at Mercateo, I will show you on Monday if you're interested. We had the issue with a path There is a resource for What I miss is the schema information for |
So your path parameter |
When i get it right he want's to have a template link with the parameter not set. |
Then lets better base this on an example or a failing test. |
The problem is that in the method addSchemaIfNeeded only the rest-schemagen/src/main/java/com/mercateo/common/rest/schemagen/link/LinkCreator.java Line 135 in af1d281
|
In
LinkCreator.createFor
(line 133) the schema is only generated for the last resource on the path, information from previous resources is ignored.The text was updated successfully, but these errors were encountered: