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

Plugin is not adding BaseUriParameters in the method signatures #301

Open
manikmagar opened this issue May 14, 2019 · 0 comments · May be fixed by #302
Open

Plugin is not adding BaseUriParameters in the method signatures #301

manikmagar opened this issue May 14, 2019 · 0 comments · May be fixed by #302

Comments

@manikmagar
Copy link

manikmagar commented May 14, 2019

Given this RAML -

#%RAML 1.0
title: Amazon S3 REST API
version: 1
baseUri: /v1/{somekey}
baseUriParameters:
  somekey:
    description: The name of the bucket
    type: string

/common:
  /list:
    get:

Plugin generated following controller with 2.0.5 version -

@RestController
@Validated
@RequestMapping("/v1/{somekey}/common/list")
public interface ListController {

    @RequestMapping(value = "", method = RequestMethod.GET)
    public ResponseEntity<?> getObject(
        @RequestHeader
        HttpHeaders httpHeaders);

}

As seen in the method signature, it is missing the injection of somekey path variable.

@manikmagar manikmagar linked a pull request May 15, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant