mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #52] feat: generate the server OpenAPI specification from template file #22
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fy2462 on GitHub (Jul 28, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/52
Summary
Replace the manually maintained monolithic
src/api/openapi.ymlwith a small template and tag-based YAML fragments undersrc/api/spec/.cargo adev codegen server will first render the fragments into the committed
src/api/openapi.yml, then run OpenAPI Generator to updatesrc/api/generated.The rendered specification remains self-contained and committed to the repository, while the maintainable source is organized by API tag.
Motivation
The server OpenAPI specification is currently maintained as a single
src/api/openapi.ymlfile. As the API grows, this file has become too large to review and maintain safely.Changes to unrelated API categories are mixed together, shared schemas are hard to distinguish from tag-specific schemas, and merge conflicts become more likely.
@LSX-s-Software commented on GitHub (Jul 29, 2026):
Thanks for the proposal. We currently keep the OpenAPI specification as a single document intentionally, because this makes it easier to keep our API definition synchronized with E2B's API documentation.
Splitting the specification would also require us to introduce and maintain additional template-rendering/assembly logic. We do not want to add that complexity solely for the purpose of organizing the OpenAPI document into multiple files.
For now, we would therefore prefer to keep
src/api/openapi.ymlas the single source of truth.