Skip to content

Can split the generated Swagger Spec into multiple smaller files #3406

@ArthurMa1978

Description

@ArthurMa1978

Currently, the AutoRest emitter generates a single Swagger Spec JSON file regardless of how many .tsp files exist. This becomes problematic when a service definition is highly complex, the resulting file can exceed 10,000 lines, making it difficult to review and potentially causing issues with GitHub handling such large files.

To improve the experience for reviewing and other use cases, we should introduce a mechanism to split the generated Swagger Spec into multiple smaller files.

This approach would also help meet documentation site requirements, where multiple files are needed to organize the structure effectively.

Metadata

Metadata

Assignees

Labels

design:neededA design request has been raised that needs a proposalemitter:autorestIssues for @azure-tools/typespec-autorest emittertriaged:core

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions