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

Path with dash generates invalid Java client code #690

Closed
kkrauth opened this issue Apr 26, 2015 · 3 comments
Closed

Path with dash generates invalid Java client code #690

kkrauth opened this issue Apr 26, 2015 · 3 comments

Comments

@kkrauth
Copy link
Contributor

kkrauth commented Apr 26, 2015

For example:

paths:
  /account-inquiry:
    put:
      tags: 
      - Lost/Stolen
      summary: Accounts that have been reported by issuers to be lost or stolen.
      parameters:
      - name: AccountInquiry
        in: body
        required: true
        schema:
          $ref: '#/definitions/AccountInquiry'
      responses:
        '200':
          description: Account inquiry response
          schema:
            type: object
            $ref: '#/definitions/Account'
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errorModel'

Produces:

 public Account account-inquiryPut (AccountInquiry AccountInquiry) throws ApiException {

Which doesn't compile.

@wing328
Copy link
Contributor

wing328 commented Apr 27, 2015

Are you using the develop_2.0 branch, which should have converted the method name into accountInquiryPut ?

@kkrauth
Copy link
Contributor Author

kkrauth commented Apr 27, 2015

Nope, I used the following:

<groupId>com.wordnik</groupId>
<artifactId>swagger-codegen-distribution</artifactId>
<version>2.1.2-M1</version>

Didn't realize this was addressed in develop_2.0 branch. Will try that out, thanks.

@fehguy
Copy link
Contributor

fehguy commented Apr 28, 2015

Please use 2.1.3-SNAPSHOT:

  <repositories>
    <repository>
      <id>sonatype-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>com.wordnik</groupId>
      <artifactId>swagger-codegen</artifactId>
      <version>2.1.3-SNAPSHOT</version>
    </dependency>
  </dependencies>

@fehguy fehguy closed this as completed Apr 28, 2015
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