Skip to content

Commit 790d717

Browse files
committed
feat(OpenAPI 3.1.0): add spec generator
1 parent 36b21dc commit 790d717

File tree

3 files changed

+778
-2
lines changed

3 files changed

+778
-2
lines changed

packages/cli/src/swagger/specGenerator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ export abstract class SpecGenerator {
103103

104104
protected abstract getSwaggerTypeForIntersectionType(type: Tsoa.IntersectionType, title?: string): Swagger.BaseSchema;
105105

106-
protected abstract buildProperties(properties: Tsoa.Property[]): { [propertyName: string]: Swagger.Schema2 } | { [propertyName: string]: Swagger.Schema3 };
106+
protected abstract buildProperties(
107+
properties: Tsoa.Property[],
108+
): { [propertyName: string]: Swagger.Schema2 } | { [propertyName: string]: Swagger.Schema3 } | { [propertyName: string]: Swagger.Schema31 };
107109

108110
public getSwaggerTypeForObjectLiteral(objectLiteral: Tsoa.NestedObjectLiteralType, title?: string): Swagger.BaseSchema {
109111
const properties = this.buildProperties(objectLiteral.properties);

0 commit comments

Comments
 (0)