Skip to content

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
Contributor

@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 openapi-ts:master Aug 8, 2020
@drwpow
Copy link
Contributor

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
Contributor

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.

3 participants