Comparing version 6.2.0 to 6.2.1
import { Tsoa } from '@tsoa/runtime'; | ||
import * as ts from 'typescript'; | ||
import { MetadataGenerator } from './metadataGenerator'; | ||
type UsableDeclaration = ts.InterfaceDeclaration | ts.ClassDeclaration | ts.PropertySignature | ts.TypeAliasDeclaration | ts.EnumMember; | ||
interface Context { | ||
@@ -12,15 +13,15 @@ [name: string]: { | ||
private readonly typeNode; | ||
private readonly current; | ||
readonly current: MetadataGenerator; | ||
private readonly parentNode?; | ||
private context; | ||
private readonly referencer?; | ||
context: Context; | ||
readonly referencer?: ts.Type | undefined; | ||
constructor(typeNode: ts.TypeNode, current: MetadataGenerator, parentNode?: ts.Node | undefined, context?: Context, referencer?: ts.Type | undefined); | ||
static clearCache(): void; | ||
resolve(): Tsoa.Type; | ||
private resolveTypeOperatorNode; | ||
private resolveIndexedAccessTypeNode; | ||
private resolveTypeReferenceNode; | ||
private getLiteralValue; | ||
private getPrimitiveType; | ||
private getDateType; | ||
private getDesignatedModels; | ||
private hasFlag; | ||
private getEnumerateType; | ||
private getReferencer; | ||
@@ -33,10 +34,5 @@ private static typeReferenceToEntityName; | ||
private getReferenceType; | ||
private static mergeTwoRefEnumTypes; | ||
private static mergeTwoRefObjectTypes; | ||
private static mergeReferenceTypes; | ||
private addToLocalReferenceTypeCache; | ||
private getTypeAliasReference; | ||
private getModelReference; | ||
private getRefTypeName; | ||
private attemptToResolveKindToPrimitive; | ||
private createCircularDependencyResolver; | ||
@@ -46,18 +42,13 @@ private nodeIsUsable; | ||
private getSymbolAtLocation; | ||
private getModelProperties; | ||
private propertyFromSignature; | ||
private propertyFromDeclaration; | ||
private getModelAdditionalProperties; | ||
private typeArgumentsToContext; | ||
private getModelInheritedProperties; | ||
private hasPublicModifier; | ||
private hasStaticModifier; | ||
private isAccessibleParameter; | ||
private getNodeDescription; | ||
private getNodeFormat; | ||
private getNodeExample; | ||
private getNodeExtension; | ||
getNodeDescription(node: UsableDeclaration | ts.PropertyDeclaration | ts.ParameterDeclaration | ts.EnumDeclaration): string | undefined; | ||
getNodeFormat(node: ts.Node): string | undefined; | ||
getPropertyName(prop: ts.PropertySignature | ts.PropertyDeclaration | ts.ParameterDeclaration): string; | ||
getNodeExample(node: ts.Node): any; | ||
getNodeExtension(node: ts.Node): Tsoa.Extension[]; | ||
private getDecoratorsByIdentifier; | ||
private static getDefault; | ||
static getDefault(node: ts.Node): any; | ||
} | ||
export {}; |
@@ -109,2 +109,5 @@ "use strict"; | ||
} | ||
if (referenceType.example) { | ||
definitions[referenceType.refName].example = referenceType.example; | ||
} | ||
} | ||
@@ -111,0 +114,0 @@ else if (referenceType.dataType === 'refAlias') { |
@@ -186,2 +186,5 @@ "use strict"; | ||
} | ||
if (referenceType.example) { | ||
schema[referenceType.refName].example = referenceType.example; | ||
} | ||
} | ||
@@ -188,0 +191,0 @@ else if (referenceType.dataType === 'refAlias') { |
{ | ||
"name": "@tsoa/cli", | ||
"description": "Build swagger-compliant REST APIs using TypeScript and Node", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"main": "./dist/index.js", | ||
@@ -33,3 +33,3 @@ "typings": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@tsoa/runtime": "^6.2.0", | ||
"@tsoa/runtime": "^6.2.1", | ||
"@types/multer": "^1.4.11", | ||
@@ -71,3 +71,3 @@ "fs-extra": "^11.2.0", | ||
}, | ||
"gitHead": "b0187ed369c7e89f20e51ea30609d9494562fc8f" | ||
"gitHead": "1c4dfbf4e7dd8c3df716989d83c43caa9ff50559" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
540685
118
6445
Updated@tsoa/runtime@^6.2.1