25 lines
910 B
TypeScript
25 lines
910 B
TypeScript
import { Swagger, Tsoa } from '@tsoa/runtime';
|
|
import { ExtendedSpecConfig } from '../cli';
|
|
import { SpecGenerator3 } from './specGenerator3';
|
|
/**
|
|
* OpenAPI 3.1 Spec Generator
|
|
*
|
|
* Extends SpecGenerator3 with OpenAPI 3.1 specific features:
|
|
* - Tuple support via prefixItems
|
|
* - OpenAPI version 3.1.0
|
|
*
|
|
* Uses inheritance to reuse all building logic from SpecGenerator3,
|
|
* only overriding the version and adding tuple type support.
|
|
*/
|
|
export declare class SpecGenerator31 extends SpecGenerator3 {
|
|
protected readonly metadata: Tsoa.Metadata;
|
|
protected readonly config: ExtendedSpecConfig;
|
|
constructor(metadata: Tsoa.Metadata, config: ExtendedSpecConfig);
|
|
GetSpec(): Swagger.Spec31;
|
|
/**
|
|
* Override to add tuple type support (OpenAPI 3.1 feature via prefixItems)
|
|
*/
|
|
protected getSwaggerType(type: Tsoa.Type, title?: string): Swagger.BaseSchema;
|
|
private isTupleType;
|
|
}
|