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

[Idea] OpenAPI Generation #958

Open
3 of 4 tasks
ChuckMoe opened this issue Dec 15, 2023 · 0 comments
Open
3 of 4 tasks

[Idea] OpenAPI Generation #958

ChuckMoe opened this issue Dec 15, 2023 · 0 comments

Comments

@ChuckMoe
Copy link
Contributor

ChuckMoe commented Dec 15, 2023

The OpenAPI definition allows to automatically generate clients for different languages. We could publish them with every release. On top of that, we can use these generated clients to test if the OpenAPI definition matches the internal implementation.

Steps

  1. Save the OpenAPI definition as a json file
  2. Generate clients with the just generated json file
  3. Write tests for at least one generated client and run them against the scicat-backend
  4. Publish the generated clients

Questions

  • Save json file with every startup or only when, for example, an environment variable is set?
  • Which clients should we generate?
  • Which language to choose for the tests? Typescript, Python, ...?

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant