Skip to content

Add more option for custom config [#503] #504

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

Merged
merged 4 commits into from
Jul 13, 2023
Merged

Conversation

to-long
Copy link
Contributor

@to-long to-long commented Mar 12, 2023

Add more option for custom config [#503]
"gen-api": "swagger-typescript-api --custom-config ./open-api/config.js

My custom config file:

const primitiveTypeConstructs = _struct => ({
  date: () => 'string',
  'date-time': () => 'string',
  string: {
    date: () => 'string',
    'date-time': () => 'string',
  },
})

module.exports = {
  primitiveTypeConstructs,
}

@js2me js2me changed the base branch from master to next July 13, 2023 21:24
@js2me js2me merged commit 9af7d5d into acacode:next Jul 13, 2023
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.

2 participants