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

[Typescript][Fetch] Fix bugs with new typescript-fetch generator #1545

Merged
merged 6 commits into from
Dec 6, 2018

Conversation

someone1
Copy link
Contributor

@someone1 someone1 commented Nov 26, 2018

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 and ./bin/security/{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

Fixes multiple issue with the update typescript-fetch generator

@TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10)

- Add `readonly` modifier to readOnly parameters.
- Omit readOnly parameters from requests when serializing models
- Use allVars in models template when serializing/deserializing requests
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.

looks good to me, although I haven't tested it

@wing328
Copy link
Member

wing328 commented Nov 27, 2018

LGTM

cc @Place1

@someone1 someone1 changed the title [Typescript][Fetch] Always initialize queryParameters [Typescript][Fetch] Fix bugs with new typescript-fetch generator Nov 27, 2018
@someone1
Copy link
Contributor Author

May as well leave this open for a few days - I'm running into more issues as I try and update my application using the new generator.

@someone1
Copy link
Contributor Author

someone1 commented Nov 29, 2018

I've finished converting my internal application using the new generator and so I think this PR is done. There is one remaining issue regarding allOf compositions (mentioned in #1563) which I think is being handled in #1360 that I wrote a post-processing script to fix until it gets resolved.

If there are any issues with the changes I made, please let me know if I can adjust them to meet the roadmap/goals/direction of the project!

Travis is failing due to a timeout issue, I don't think it's due to anything I've done in this PR.

@wing328 wing328 merged commit 1e023f3 into OpenAPITools:4.0.x Dec 6, 2018
@wing328
Copy link
Member

wing328 commented Jan 2, 2019

@someone1 thanks for the contribution, which has been included in the 4.0.0-beta release: https://twitter.com/oas_generator/status/1079727020374806529.

Happy New Year and looking forward to more collaboration and contributions in 2019!

A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
…nAPITools#1545)

* [Typescript][Fetch] Always initialize queryParameters

* [Typescript][Fetch] Resolve date and date-time formats to parameter type Date

* [Typescript][Fetch] Update models template

- Add `readonly` modifier to readOnly parameters.
- Omit readOnly parameters from requests when serializing models
- Use allVars in models template when serializing/deserializing requests

* [Typescript][Fetch] Omit time component when parameter format: date

* [Typescript][Fetch] Add moduleResolution: node option to tsconfig.json

* [Typescript][Fetch] Added non-model enums
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.

3 participants