-
Notifications
You must be signed in to change notification settings - Fork 181
Missing intermediate paths #252
Comments
We've got the same problem, and it's show-stopper for us. We are exposing the wrong paths and have no access to the URI parameter. Is this a problem with just the latest release, and downgrading to an earlier release will fix it. Or has this always been broken? Is there an ETA for a fix? |
Looking at it. |
Seems I don't check the "intermediate paths" correctly.
Certainly not ideal, but I currently am working on a fix. |
Just pushed a fix, with a UT and added to the torture test. It's in the 2.0.1 branch. Feedback por favor ? |
Still not quite right. Suppose I define
The tool generates
So the method |
I'll look at it today. I thought the parser would handle stuff like this... |
But you are generating the declaration of getAC aren't you? And presumably what you generate for that needs to include the declaration of Are you also planning on allowing the methods to return an instance of |
@KevinMitchell Yes, but it does some things to help you, and not others: I'll have to go fetch PathParams from the parent resources. As to the second question, I'm not sure I get what you are saying: we do return a response. Which case are you talking about ? |
Yes, you are correct. It was me getting confused on this occasion. I tried to make the example as simple as possible, but it ended up being too simple, had left out the response code, and so you quite correctly didn't generate anything. So ignore that bit :-) So it's just the path param we are missing. Thanks, |
Check again when you have time please. |
That looks better. Thanks for the prompt response. |
Good. Closing. If something else comes up, ping! |
Using the following raml snippet with 2.0.1-SNAPSHOT I get "/Attachments" in the generated class instead of "{viewingSessionId}/Attachments": Playing with the RAML it seems I'm only getting the first part of the URL on the interface class and the final part on the method, but the intermediate parts are dropped.
raml fragment:
generated java fragment:
The text was updated successfully, but these errors were encountered: