ecyrbe / zodios

typescript http client and server with zod validation
https://www.zodios.org/
MIT License
1.59k stars 44 forks source link

Support refs in generated openapi specs #563

Closed tonyxiao closed 5 months ago

tonyxiao commented 7 months ago

Currently, the generated OpenAPI specifications do not support the usage of $ref references. This results in a lack of reusability and maintainability of the specs as it limits the ability to define reusable components and reference them in multiple places. It would be beneficial to enhance the OpenAPI generation tool to support the usage of $ref references, which would allow for better organization, abstraction, and reuse of common components across the specification.

This is especially helpful for things like autogenerated documentation tool. Notably maybe we can make use of https://github.com/samchungy/zod-openapi to generate the openapi spec.

ssijak commented 7 months ago

that would be great

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.