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

additionalProperties interpolation, primitive enums #266

Merged
merged 9 commits into from
Aug 8, 2020

Conversation

skh-
Copy link
Contributor

@skh- skh- commented Jun 3, 2020

if additionalProperties is not of a primitive type, the generated file will contain things like ref or array instead of interpolating that ref or array. this PR should fix that and #265.

not aware of any side effects, let me know if you can think of any.

@skh- skh- changed the title additionalProperties interpolation additionalProperties interpolation, number enums Jun 25, 2020
@skh-
Copy link
Contributor Author

skh- commented Jun 25, 2020

had another problem where:

type: number
enum:
  - -1
  - 0
  - 1

would produce "-1" | "0" | "1" when I needed -1 | 0 | 1.

Added fix to this PR.

@FourF-src
Copy link

#278

@skh- skh- changed the title additionalProperties interpolation, number enums additionalProperties interpolation, primitive enums Aug 5, 2020
Copy link
Owner

@drwpow drwpow left a comment

Choose a reason for hiding this comment

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

Fantastic! Thank you 🎉

@drwpow drwpow merged commit b4eea99 into drwpow:master Aug 8, 2020
@drwpow
Copy link
Owner

drwpow commented Aug 8, 2020

@all-contributors please add @skh- for code, test

@allcontributors
Copy link
Contributor

@drwpow

I've put up a pull request to add @skh! 🎉

@drwpow drwpow mentioned this pull request Aug 8, 2020
@skh-
Copy link
Contributor Author

skh- commented Aug 10, 2020

@drwpow if you would like maintenance help with the repo feel free to tap me 😄 .

@drwpow
Copy link
Owner

drwpow commented Aug 14, 2020

@skh- awesome! Yes I would… as soon as I’m able to get access to the repo again (still locked out of npm deployments and adding contributors at the moment).

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.

None yet

3 participants