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

Enable unsafe keep a json specification when compeller is invoked #19

Merged
merged 4 commits into from
Jan 27, 2022

Conversation

simonireilly
Copy link
Owner

@simonireilly simonireilly commented Jan 27, 2022

closes: #15

This will ensure that when the compeller is invoked it will create a JSON specification file.

This could be a seriously dangerous side effect that would make testing an awful experience and honestly needs a better solution.

One thing could be to add a command to the CLI that can find the typescript file, but it would mean that we need to have a compeller.js configuration to point at the file location, and I think we have all got enough configuration files in our project.

Another option would be to somehow bind to the usage of compeller and find it with the CLI.

TODO

  • Require node env to generate not be production
  • Require file system to not be readonly

@simonireilly simonireilly merged commit 412ecba into main Jan 27, 2022
@simonireilly simonireilly deleted the issue/15-api-specification-as-json branch January 27, 2022 08:19
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.

feat: OpenAPI specification as json
1 participant