Skip to content

[NodeJS] Proper escaping project name per npmjs #4648

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

Merged
merged 1 commit into from
Jan 25, 2017
Merged

[NodeJS] Proper escaping project name per npmjs #4648

merged 1 commit into from
Jan 25, 2017

Conversation

fehguy
Copy link
Contributor

@fehguy fehguy commented Jan 25, 2017

PR checklist

  • Read the contribution guildelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

Properly escape project name

@fehguy fehguy self-assigned this Jan 25, 2017
@wing328 wing328 added this to the v2.2.2 milestone Jan 25, 2017
maximum: 5
minimum: 1
maximum: 5.0
minimum: 1.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fehguy The output is now a decimal instead of integer: https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/test/resources/2_0/petstore.yaml#L343-L344

I don't think it's related to the change in this PR, probably due to changes in the Swagger Parser.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #4649 for tracking.

@wing328 wing328 merged commit ecaa8b1 into master Jan 25, 2017
@wing328 wing328 deleted the issue-4647 branch January 25, 2017 09:12
@wing328 wing328 changed the title tests, fix for #4647. Proper escaping project name per npmjs [NodeJS] Proper escaping project name per npmjs Feb 21, 2017
acramatte added a commit to comerge/swagger-codegen that referenced this pull request Mar 7, 2017
* upstream/master: (261 commits)
  tests, fix for swagger-api#4647.  Proper escaping project name per npmjs (swagger-api#4648)
  Add support for read-only values in spring model (swagger-api#4629)
  new batch file to exec all JS petstore batch files
  update JS petstore client
  Fix the `rm` to remove the correct file in two spring generation bash scripts (swagger-api#4630)
  fix for allowable values, swagger-api#4645 (swagger-api#4646)
  Issue 4637 Fix for ci build (swagger-api#4643)
  Added single quotes -- fixes bug where generated client throws an 'Uncaught Reference Error'.
  add https://pagertree.com/
  add https://neverfail.com/
  Removed pet variable from Javascript api_test Mustache file, which was undefined and is not necessary here. This should fix issue swagger-api#4608. (swagger-api#4624)
  Removed pet variable from Javascript api_test Mustache file, which was undefined and is not necessary here. This should fix issue swagger-api#4608.
  update ts angular2 petstore samples
  Enum constructFromObject should return value (swagger-api#4613)
  update js promise petstore sample
  Fix Issue 4554 - handle 204 server response in javascript (swagger-api#4604)
  Fix model prefix/suffix with incorrect camelization (swagger-api#4621)
  better handling of reserved words in models, operationId (swagger-api#4620)
  [java] Improve pom.xml to qualify for publishing to Maven central (swagger-api#4616)
  rebuilt samples
  ...
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants