plus
Combines the current OpenApiDoc instance with a sequence of routes, resulting in a new OpenApiDoc containing the updated paths and components based on the provided routes.
Return
A new OpenApiDoc instance with the combined paths and components from the original instance and the provided routes.
Parameters
A sequence of Routes whose information is used to resolve path items and schemas.
Overload for OpenApiDoc.plus that accepts a Collection of Routes.
Return
A new OpenApiDoc instance with the combined paths and components from the original instance and the provided routes.
Parameters
A collection of Routes whose information is used to resolve path items and schemas.
Combines the current OpenApiDoc instance with a single Route.
Return
A new OpenApiDoc instance with the combined paths and components from the original instance and the provided route.
Parameters
An instance of Route that will be used to resolve path items and schemas.
Combines the current OpenApiDoc instance with additional security schemes.
This method updates the existing security schemes in the components section of the current instance by merging them with the provided securitySchemes. If there are no existing security schemes, the provided securitySchemes will be set as the new security schemes for the components.
Return
A new OpenApiDoc instance with the updated security schemes in the components section.
Parameters
A map of additional security schemes to include, where the keys are the scheme names and the values are references or definitions of SecurityScheme objects.