Skip to content

Conversation

@A-Joshi
Copy link
Contributor

@A-Joshi A-Joshi commented Mar 18, 2019

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.4.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

Mostly cosmetic code refactoring to make the code more readable - as per 2285

  • Make classModifier, operationModifier and buildTarget enums
  • Enhance CliOption class to hold value - it reduces boilerplat code.
  • Add ASP.Net Core 2.2 (no changes to generated code - since it is pretty much backward compatible with 2.1).

@A-Joshi A-Joshi mentioned this pull request Mar 18, 2019
4 tasks
@A-Joshi A-Joshi changed the title Feature/cleanup [aspnetcore] Feature/cleanup Mar 18, 2019
dalewking and others added 2 commits March 19, 2019 10:08
* [dart] Fix authentication so all forms of Swagger 2.0 authentication work

* Run changes on petstore examples

* Amend dart2 generated README to cover basic authentication

* Amend dart2 generated README to cover authentication methods

* [dart] Fix authentication so all forms of Swagger 2.0 authentication work

* Run changes on petstore examples
@wing328
Copy link
Member

wing328 commented Mar 19, 2019

cc @jimschubert as this PR enhances the CliOption class.

@wing328
Copy link
Member

wing328 commented Mar 19, 2019

@A-Joshi thanks for the PR. Just a heads up that there's another project to add a ASP.NET core 3.0 generator: https://github.com/OpenAPITools/openapi-generator/projects/9

@A-Joshi
Copy link
Contributor Author

A-Joshi commented Mar 19, 2019 via email

* modify handing reserved keyword and set isEnum in local codegen to avoid conflict with other codegen

* update README mustache

* added object header and body mustache
@wing328
Copy link
Member

wing328 commented Mar 19, 2019

I've not tried 3.0 myself. Is that very different when compared with the 2.x version?

For other generators (e.g. Swift), we deal with major version upgrade with a new generator to make it easier to maintain.

For ASP.NET CORE, I do not have a preference as I'm not familiar with the framework.

@A-Joshi
Copy link
Contributor Author

A-Joshi commented Mar 19, 2019 via email

@wing328
Copy link
Member

wing328 commented Mar 22, 2019

Looks like a rebase fails and this PR now contains commits not authored by you.

I wonder if you can create a new branch based on the latest master and cherry-pick your commits.

@jimschubert
Copy link
Member

Changes look good. I've rebased onto my own branch to evaluate only the changes related to this PR. Feel free to pull/branch off that and reopen a PR: https://github.com/jimschubert/openapi-generator/tree/ihsmarkitoss-feature/cleanup. Probably best to have @A-Joshi double-check just to make sure I didn't accidentally remove any intended work during the rebase.

@jimschubert
Copy link
Member

I'm closing this in favor of #2506, which is rebased against master and includes original contributor information during the rebase.

@A-Joshi
Copy link
Contributor Author

A-Joshi commented Mar 26, 2019 via email

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.

7 participants