-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export declare const formats: { | ||
int32: { | ||
validate: (i: any) => boolean; | ||
type: string; | ||
}; | ||
int64: { | ||
validate: (i: any) => boolean; | ||
type: string; | ||
}; | ||
float: { | ||
validate: (i: any) => boolean; | ||
type: string; | ||
}; | ||
double: { | ||
validate: (i: any) => boolean; | ||
type: string; | ||
}; | ||
byte: (b: any) => boolean; | ||
binary: () => boolean; | ||
password: () => boolean; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as Ajv from 'ajv'; | ||
import { OpenAPIV3, Options } from '../types'; | ||
export declare function createRequestAjv(openApiSpec: OpenAPIV3.Document, options?: Options): Ajv.Ajv; | ||
export declare function createResponseAjv(openApiSpec: OpenAPIV3.Document, options?: Options): Ajv.Ajv; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import ajv = require('ajv'); | ||
import { OpenApiValidatorOpts, Options, RequestValidatorOptions } from '../types'; | ||
export declare class AjvOptions { | ||
private options; | ||
constructor(options: OpenApiValidatorOpts); | ||
get preprocessor(): ajv.Options; | ||
get response(): ajv.Options; | ||
get request(): RequestValidatorOptions; | ||
get multipart(): Options; | ||
private baseOptions; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { OpenAPIV3 } from './types'; | ||
interface ServerUrlVariables { | ||
[key: string]: ServerUrlValues; | ||
} | ||
interface ServerUrlValues { | ||
enum: string[]; | ||
default?: string; | ||
} | ||
export declare class BasePath { | ||
readonly variables: ServerUrlVariables; | ||
readonly expressPath: string; | ||
private allPaths; | ||
constructor(server: OpenAPIV3.ServerObject); | ||
static fromServers(servers: OpenAPIV3.ServerObject[]): BasePath[]; | ||
hasVariables(): boolean; | ||
all(): string[]; | ||
private findUrlPath; | ||
} | ||
export {}; |