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

Add flag to command to generate routes without the server #24

Open
carnage opened this issue Oct 6, 2024 · 0 comments
Open

Add flag to command to generate routes without the server #24

carnage opened this issue Oct 6, 2024 · 0 comments

Comments

@carnage
Copy link
Contributor

carnage commented Oct 6, 2024

We generate hosted and hostless routes based solely on the data in the openapi file, quite often this comes with servers that are either wrong or only applicable for a production environment.

It would be useful to be able to override this at route generation time, using a flag on the command.

After this is implemented, there will be three possible behaviours:

  1. Generate using only servers/paths from the openapi spec file (current behaviour)
  2. Ignore servers entirely and only generate the hostless version
  3. Generate using the servers in the openapi spec file but also add a fallback hostless option to the router
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

No branches or pull requests

1 participant