Kind: Class
Source: atloria-monorepo/libs/parser-core/src/openapi/schema-resolver.ts
Methods
| Method | Signature | Returns |
|---|---|---|
fromTsConfig | fromTsConfig(tsConfigFilePath: string) | OpenApiSchemaResolver |
getComponents | getComponents() | Record<string, Record<string, unknown>> |
resolveMethod | resolveMethod(method: MethodDeclaration, opts: { httpMethod?: string }) | ResolvedOperation |
resolveQueryParameters | resolveQueryParameters(method: MethodDeclaration) | Array<Record<string, unknown>> |
Where it refuses work
OpenApiSchemaResolverstops the work with an early return when!knownModels.OpenApiSchemaResolverstops the work with an early return when!schema.OpenApiSchemaResolverstops the work with an early return whentypeof ref !== 'string'.OpenApiSchemaResolverstops the work with an early return when!this.knownModels.size.OpenApiSchemaResolverstops the work with an early return when!text.OpenApiSchemaResolverstops the work with an early return when!/^[A-Za-z_$][\w$]*$/.test(inner).
Was this page helpful?