-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Labels
kind/featureNew feature.New feature.status/triageCollecting information required to triage the issue.Collecting information required to triage the issue.
Description
Motivation
The generator currently only creates one big OpenAPI Handler protocol.
This makes it hard to organize the routes.
Proposed solution
Create a different OpenAPI Handler for each "tag" so we have something close to Vapor "controllers".
These are quite useful for decluttering the code.
The generator could also generate each tag's "controller protocol" in it's own file. There are known issues in the Swift compiler where it struggles to handle one big file, or makes builds potentially extremely slower.
Alternatives considered
Manually handling this by different methods, including manually creating controllers and redirecting the routes in the main openapi handler to those controllers, or using multiple targets and filtering a shared openapi file based on tag in each controller.
Additional information
No response
Metadata
Metadata
Assignees
Labels
kind/featureNew feature.New feature.status/triageCollecting information required to triage the issue.Collecting information required to triage the issue.