Skip to content
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

Partial path templating is not allowed message for path variable with multiple parameter #1248

Closed
rubenlara opened this issue Jul 3, 2017 · 3 comments

Comments

@rubenlara
Copy link

Hi, actually I'm implementing a rest api with a path like /api/users/{groupid}.{departmentid}.{level}

users have this composite id to identify them. Calling operations are working but I cannot define the the path in swagger. I get a:

Semantic error at paths./api/users/{groupid}.{departmentid}.{level}
Partial path templating is not allowed.

I'm using swagger annotations to define the api and in the configuration I'm using enableUrlTemplating(true) too.

@webron
Copy link
Member

webron commented Jul 3, 2017

That's an issue with the tool you're using, not the spec itself. Please check the relevant tool for known issues or file a new one if you can't find it.

@webron webron closed this as completed Jul 3, 2017
@rubenlara
Copy link
Author

@webron I'm using swagger annotations with spring boot and editing the exported swagger.json in the online swagger editor which is complaining about the path. Spring boot has no problem eith it as I wrote before. This is not a "tool" issue. Please, reopen the issue since swagger obviouly can't deal with such paths.

@MikeRalphson
Copy link
Member

MikeRalphson commented Jul 4, 2017

@rubenlara if your problem is with swagger editor, it is a tool issue not an OAS (specification) error. Consider raising an issue here https://github.com/swagger-api/swagger-editor

Edit: I think your bug is this existing issue: swagger-api/swagger-editor#1303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants