openapi-police
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -10,3 +10,3 @@ import { Schema, ValidationOptions } from 'jsonpolice'; | ||
abstract spec(): Promise<OpenAPIV3.SchemaObject>; | ||
protected readonly validators: Set<string>; | ||
protected get validators(): Set<string>; | ||
protected coerceToType(data: string, type: string): any; | ||
@@ -13,0 +13,0 @@ validate(data: any, opts?: SchemaObjectOptions, path?: string): Promise<any>; |
export declare namespace OpenAPIV3 { | ||
interface Document { | ||
export interface Document { | ||
openapi: string; | ||
@@ -14,3 +14,3 @@ info: InfoObject; | ||
} | ||
interface InfoObject { | ||
export interface InfoObject { | ||
title: string; | ||
@@ -23,3 +23,3 @@ description?: string; | ||
} | ||
interface ContactObject { | ||
export interface ContactObject { | ||
name?: string; | ||
@@ -29,7 +29,7 @@ url?: string; | ||
} | ||
interface LicenseObject { | ||
export interface LicenseObject { | ||
name: string; | ||
url?: string; | ||
} | ||
interface ServerObject { | ||
export interface ServerObject { | ||
url: string; | ||
@@ -41,3 +41,3 @@ description?: string; | ||
} | ||
interface ServerVariableObject { | ||
export interface ServerVariableObject { | ||
enum?: string[]; | ||
@@ -47,6 +47,6 @@ default: string; | ||
} | ||
interface PathObject { | ||
export interface PathObject { | ||
[pattern: string]: PathItemObject; | ||
} | ||
interface PathItemObject { | ||
export interface PathItemObject { | ||
$ref?: string; | ||
@@ -66,3 +66,3 @@ summary?: string; | ||
} | ||
interface OperationObject { | ||
export interface OperationObject { | ||
tags?: string[]; | ||
@@ -83,11 +83,11 @@ summary?: string; | ||
} | ||
interface ExternalDocumentationObject { | ||
export interface ExternalDocumentationObject { | ||
description?: string; | ||
url: string; | ||
} | ||
interface ParameterObject extends ParameterBaseObject { | ||
export interface ParameterObject extends ParameterBaseObject { | ||
name: string; | ||
in: string; | ||
} | ||
interface HeaderObject extends ParameterBaseObject { | ||
export interface HeaderObject extends ParameterBaseObject { | ||
} | ||
@@ -111,3 +111,3 @@ interface ParameterBaseObject { | ||
} | ||
type SchemaObject = boolean | BaseSchemaObject; | ||
export type SchemaObject = boolean | BaseSchemaObject; | ||
interface BaseSchemaObject { | ||
@@ -152,3 +152,3 @@ type?: 'null' | 'boolean' | 'array' | 'object' | 'number' | 'string' | 'integer'; | ||
} | ||
interface DiscriminatorObject { | ||
export interface DiscriminatorObject { | ||
propertyName: string; | ||
@@ -159,3 +159,3 @@ mapping?: { | ||
} | ||
interface XMLObject { | ||
export interface XMLObject { | ||
name?: string; | ||
@@ -167,6 +167,6 @@ namespace?: string; | ||
} | ||
interface ReferenceObject { | ||
export interface ReferenceObject { | ||
$ref: string; | ||
} | ||
interface ExampleObject { | ||
export interface ExampleObject { | ||
summary?: string; | ||
@@ -177,3 +177,3 @@ description?: string; | ||
} | ||
interface MediaTypeObject { | ||
export interface MediaTypeObject { | ||
schema?: ReferenceObject | SchemaObject; | ||
@@ -188,3 +188,3 @@ example?: any; | ||
} | ||
interface EncodingObject { | ||
export interface EncodingObject { | ||
contentType?: string; | ||
@@ -198,3 +198,3 @@ headers?: { | ||
} | ||
interface RequestBodyObject { | ||
export interface RequestBodyObject { | ||
description?: string; | ||
@@ -206,6 +206,6 @@ content: { | ||
} | ||
interface ResponsesObject { | ||
export interface ResponsesObject { | ||
[code: string]: ReferenceObject | ResponseObject; | ||
} | ||
interface ResponseObject { | ||
export interface ResponseObject { | ||
description: string; | ||
@@ -222,3 +222,3 @@ headers?: { | ||
} | ||
interface LinkObject { | ||
export interface LinkObject { | ||
operationRef?: string; | ||
@@ -233,9 +233,9 @@ operationId?: string; | ||
} | ||
interface CallbackObject { | ||
export interface CallbackObject { | ||
[url: string]: PathItemObject; | ||
} | ||
interface SecurityRequirementObject { | ||
export interface SecurityRequirementObject { | ||
[name: string]: string[]; | ||
} | ||
interface ComponentsObject { | ||
export interface ComponentsObject { | ||
schemas?: { | ||
@@ -269,4 +269,4 @@ [key: string]: ReferenceObject | SchemaObject; | ||
} | ||
type SecuritySchemeObject = HttpSecurityScheme | ApiKeySecurityScheme | OAuth2SecurityScheme | OpenIdSecurityScheme; | ||
interface HttpSecurityScheme { | ||
export type SecuritySchemeObject = HttpSecurityScheme | ApiKeySecurityScheme | OAuth2SecurityScheme | OpenIdSecurityScheme; | ||
export interface HttpSecurityScheme { | ||
type: 'http'; | ||
@@ -277,3 +277,3 @@ description?: string; | ||
} | ||
interface ApiKeySecurityScheme { | ||
export interface ApiKeySecurityScheme { | ||
type: 'apiKey'; | ||
@@ -284,6 +284,6 @@ description?: string; | ||
} | ||
interface OAuth2SecurityScopes { | ||
export interface OAuth2SecurityScopes { | ||
[scope: string]: string; | ||
} | ||
interface OAuth2SecurityScheme { | ||
export interface OAuth2SecurityScheme { | ||
type: 'oauth2'; | ||
@@ -314,3 +314,3 @@ flows: { | ||
} | ||
interface OpenIdSecurityScheme { | ||
export interface OpenIdSecurityScheme { | ||
type: 'openIdConnect'; | ||
@@ -320,3 +320,3 @@ description?: string; | ||
} | ||
interface TagObject { | ||
export interface TagObject { | ||
name: string; | ||
@@ -326,2 +326,3 @@ description?: string; | ||
} | ||
export {}; | ||
} |
{ | ||
"name": "openapi-police", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "OpenAPI v3 validators and utilities", | ||
@@ -73,4 +73,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"jsonpolice": "^8.0.5", | ||
"jsonref": "^5.2.0" | ||
"jsonpolice": "^8.1.0", | ||
"jsonref": "^5.2.1" | ||
}, | ||
@@ -77,0 +77,0 @@ "config": { |
30802
788
Updatedjsonpolice@^8.1.0
Updatedjsonref@^5.2.1