Skip to content

Conversation

@sreichi
Copy link
Contributor

@sreichi sreichi commented Nov 19, 2019

eslint requires you to use a block comment for ignoring whole files

this pull request fixes #4539

PR checklist

  • Read the contribution guidelines.
  • If contributing template-only or documentation-only changes which will change sample output, build the project before.
  • Run the shell script(s) under ./bin/ (or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).
  • File the PR against the correct branch: master, 4.3.x, 5.0.x. Default: master.
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.
    @TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx @macjohnny @nicokoenig @topce @akehir

@sreichi sreichi changed the title FIXES #4539 replace line comment with block comment [TS] replace line comment with block comment Nov 19, 2019
@sreichi
Copy link
Contributor Author

sreichi commented Nov 19, 2019

I encountered some problems when generating the new samples. When running the scripts in ./bin and ./bin/openapi3 the generated code not only different when comparing the comments. Could maybe someone tell me what i did wrong?

@macjohnny
Copy link
Member

dont use the openapi3 scripts

@macjohnny
Copy link
Member

thanks for your PR

@macjohnny macjohnny added this to the 4.2.2 milestone Nov 21, 2019
Copy link
Member

@macjohnny macjohnny left a comment

Choose a reason for hiding this comment

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

LGTM

@macjohnny
Copy link
Member

please run https://github.com/OpenAPITools/openapi-generator/blob/master/bin/typescript-fetch-petstore-all.sh and commit the changed samples

@sreichi
Copy link
Contributor Author

sreichi commented Nov 21, 2019

@macjohnny thanks a lot for your help!

@macjohnny macjohnny merged commit 4747340 into OpenAPITools:master Nov 21, 2019
@wing328
Copy link
Member

wing328 commented Dec 2, 2019

@sreichi thanks for the PR, which has been included in the v4.2.2 release: https://twitter.com/oas_generator/status/1201432648544972800

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.

[REQ] //eslint-disable should be /* eslint-disable */

4 participants