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

Release 1.10.0 #62

Merged
merged 5 commits into from
Jun 26, 2020
Merged

Release 1.10.0 #62

merged 5 commits into from
Jun 26, 2020

Conversation

js2me
Copy link
Member

@js2me js2me commented Jun 26, 2020

Features:

  • --templates CLI option. [feature request]
    Provide custom mustache templates folder which allows to generate custom code (models, Api class, routes)
  • --union-enums CLI option. [feature request]
    Allows to generate all enums as union types.
    For example, schema part:
    "StringEnum": {
      "enum": ["String1", "String2", "String3", "String4"],
      "type": "string"
    }
    
    will be converted into:
    export type StringEnum = "String1" | "String2" | "String3" | "String4";

Closes #54
Closes #58

andrefilimono and others added 3 commits June 27, 2020 00:43
* feat: allow to provide custom templates

* docs: update readme

* internal: add manual test script for custom templates option

* feat: resolving paths to templates

* internal: adjust test for custom templates

Co-authored-by: svolkov <svolkov@everpoint.ru>
Co-authored-by: andrefilimono <andrefilimono@gmail.com>
* feat: add --union-enums cli option which generate all enums as union types

* docs: update README, CHANGELOG

* chore(fix): manual test for union enums option
@js2me js2me merged commit 4b0ace2 into master Jun 26, 2020
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

Successfully merging this pull request may close these issues.

String enums Custom Templates
2 participants