@ehuelsmann/openapi-validator 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.d.mts +149 -0
- package/dist/index.d.ts +149 -14
- package/dist/index.js +521 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +484 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +22 -9
- package/dist/classes/AbstractOpenApiSpec.d.ts +0 -47
- package/dist/classes/AbstractOpenApiSpec.d.ts.map +0 -1
- package/dist/classes/AbstractOpenApiSpec.js +0 -149
- package/dist/classes/AbstractOpenApiSpec.js.map +0 -1
- package/dist/classes/AbstractResponse.d.ts +0 -23
- package/dist/classes/AbstractResponse.d.ts.map +0 -1
- package/dist/classes/AbstractResponse.js +0 -18
- package/dist/classes/AbstractResponse.js.map +0 -1
- package/dist/classes/AxiosResponse.d.ts +0 -9
- package/dist/classes/AxiosResponse.d.ts.map +0 -1
- package/dist/classes/AxiosResponse.js +0 -24
- package/dist/classes/AxiosResponse.js.map +0 -1
- package/dist/classes/OpenApi2Spec.d.ts +0 -19
- package/dist/classes/OpenApi2Spec.d.ts.map +0 -1
- package/dist/classes/OpenApi2Spec.js +0 -81
- package/dist/classes/OpenApi2Spec.js.map +0 -1
- package/dist/classes/OpenApi3Spec.d.ts +0 -24
- package/dist/classes/OpenApi3Spec.d.ts.map +0 -1
- package/dist/classes/OpenApi3Spec.js +0 -99
- package/dist/classes/OpenApi3Spec.js.map +0 -1
- package/dist/classes/RequestPromiseResponse.d.ts +0 -14
- package/dist/classes/RequestPromiseResponse.d.ts.map +0 -1
- package/dist/classes/RequestPromiseResponse.js +0 -34
- package/dist/classes/RequestPromiseResponse.js.map +0 -1
- package/dist/classes/SuperAgentResponse.d.ts +0 -17
- package/dist/classes/SuperAgentResponse.d.ts.map +0 -1
- package/dist/classes/SuperAgentResponse.js +0 -37
- package/dist/classes/SuperAgentResponse.js.map +0 -1
- package/dist/classes/errors/ValidationError.d.ts +0 -15
- package/dist/classes/errors/ValidationError.d.ts.map +0 -1
- package/dist/classes/errors/ValidationError.js +0 -24
- package/dist/classes/errors/ValidationError.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/openApiSpecFactory.d.ts +0 -5
- package/dist/openApiSpecFactory.d.ts.map +0 -1
- package/dist/openApiSpecFactory.js +0 -67
- package/dist/openApiSpecFactory.js.map +0 -1
- package/dist/responseFactory.d.ts +0 -6
- package/dist/responseFactory.d.ts.map +0 -1
- package/dist/responseFactory.js +0 -19
- package/dist/responseFactory.js.map +0 -1
- package/dist/utils/OpenApi3Spec.utils.d.ts +0 -7
- package/dist/utils/OpenApi3Spec.utils.d.ts.map +0 -1
- package/dist/utils/OpenApi3Spec.utils.js +0 -54
- package/dist/utils/OpenApi3Spec.utils.js.map +0 -1
- package/dist/utils/common.utils.d.ts +0 -10
- package/dist/utils/common.utils.d.ts.map +0 -1
- package/dist/utils/common.utils.js +0 -58
- package/dist/utils/common.utils.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# OpenAPI Validator
|
|
2
2
|
|
|
3
|
+
> **Notice:** Support for responses from [`request`](https://github.com/request/request#deprecated) and [`request-promise`](https://github.com/request/request-promise#deprecated) has been removed because both upstream projects are deprecated.
|
|
4
|
+
|
|
3
5
|
[](https://www.npmjs.com/package/@ehuelsmann/openapi-validator)
|
|
4
6
|
[](https://www.npmjs.com/package/@ehuelsmann/openapi-validator)
|
|
5
7
|
|
|
8
|
+
**Note** This project is a fork from the [openapi-library](https://github.com/openapi-library) project because that project is not maintained at the moment. This project contains updates and security fixes, but ideally will be merged back into that project, as soon as it's maintained again.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
6
12
|
Common code for [@ehuelsmann/jest-openapi](https://www.npmjs.com/package/@ehuelsmann/jest-openapi) and [Chai OpenAPI Response Validator](https://www.npmjs.com/package/@ehuelsmann/chai-openapi-response-validator)
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { OpenAPIV2, OpenAPIV3, OpenAPIV3_1, OpenAPI } from 'openapi-types';
|
|
2
|
+
import { AxiosResponse as AxiosResponse$1 } from 'axios';
|
|
3
|
+
import { Response, SuperAgentRequest } from 'superagent';
|
|
4
|
+
|
|
5
|
+
type RawAxiosResponse = AxiosResponse$1;
|
|
6
|
+
declare class AxiosResponse extends AbstractResponse {
|
|
7
|
+
protected res: RawAxiosResponse;
|
|
8
|
+
constructor(res: RawAxiosResponse);
|
|
9
|
+
getBodyForValidation(): AxiosResponse['body'];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type RawSuperAgentResponse = Response & {
|
|
13
|
+
req: SuperAgentRequest & {
|
|
14
|
+
path: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare class SuperAgentResponse extends AbstractResponse {
|
|
18
|
+
protected res: RawSuperAgentResponse;
|
|
19
|
+
private isResTextPopulatedInsteadOfResBody;
|
|
20
|
+
constructor(res: RawSuperAgentResponse);
|
|
21
|
+
getBodyForValidation(): SuperAgentResponse['body'];
|
|
22
|
+
summary(): ReturnType<AbstractResponse['summary']> & {
|
|
23
|
+
text?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type RawResponse = RawAxiosResponse | RawSuperAgentResponse;
|
|
28
|
+
declare abstract class AbstractResponse {
|
|
29
|
+
protected res: RawResponse;
|
|
30
|
+
status: number;
|
|
31
|
+
req: {
|
|
32
|
+
method: string;
|
|
33
|
+
path: string;
|
|
34
|
+
};
|
|
35
|
+
abstract getBodyForValidation(): unknown;
|
|
36
|
+
protected body: unknown;
|
|
37
|
+
protected bodyHasNoContent: boolean;
|
|
38
|
+
constructor(res: RawResponse);
|
|
39
|
+
summary(): {
|
|
40
|
+
body: unknown;
|
|
41
|
+
};
|
|
42
|
+
toString(): string;
|
|
43
|
+
}
|
|
44
|
+
type ActualResponse = AbstractResponse;
|
|
45
|
+
type ActualRequest = AbstractResponse['req'];
|
|
46
|
+
|
|
47
|
+
declare enum ErrorCode {
|
|
48
|
+
ServerNotFound = 0,
|
|
49
|
+
BasePathNotFound = 1,
|
|
50
|
+
PathNotFound = 2,
|
|
51
|
+
MethodNotFound = 3,
|
|
52
|
+
StatusNotFound = 4,
|
|
53
|
+
InvalidBody = 5,
|
|
54
|
+
InvalidObject = 6
|
|
55
|
+
}
|
|
56
|
+
declare class ValidationError extends Error {
|
|
57
|
+
code: ErrorCode;
|
|
58
|
+
constructor(code: ErrorCode, message?: string);
|
|
59
|
+
toString(): string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type Document = OpenAPIV2.Document | OpenAPIV3.Document;
|
|
63
|
+
type Operation = OpenAPIV2.OperationObject | OpenAPIV3.OperationObject;
|
|
64
|
+
type PathItemObject = OpenAPIV2.PathItemObject | OpenAPIV3.PathItemObject;
|
|
65
|
+
type ResponseObjectWithSchema = (OpenAPIV2.ResponseObject & {
|
|
66
|
+
schema: OpenAPIV2.Schema;
|
|
67
|
+
}) | (OpenAPIV3.ResponseObject & {
|
|
68
|
+
content: {
|
|
69
|
+
[media: string]: OpenAPIV3.MediaTypeObject & {
|
|
70
|
+
schema: OpenAPIV3.SchemaObject;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}) | (OpenAPIV3_1.ResponseObject & {
|
|
74
|
+
content: {
|
|
75
|
+
[media: string]: OpenAPIV3_1.MediaTypeObject & {
|
|
76
|
+
schema: OpenAPIV3_1.SchemaObject;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
type Schema = OpenAPIV2.Schema | OpenAPIV3.SchemaObject;
|
|
81
|
+
declare abstract class OpenApiSpec$1 {
|
|
82
|
+
protected spec: Document;
|
|
83
|
+
protected abstract getSchemaObjects(): Record<string, Schema> | undefined;
|
|
84
|
+
protected abstract findResponseDefinition(referenceString: string): ResponseObjectWithSchema | undefined;
|
|
85
|
+
protected abstract findOpenApiPathMatchingPathname(pathname: string): string;
|
|
86
|
+
protected abstract getComponentDefinitionsProperty(): {
|
|
87
|
+
definitions: OpenAPIV2.Document['definitions'];
|
|
88
|
+
} | {
|
|
89
|
+
components: OpenAPIV3.Document['components'];
|
|
90
|
+
};
|
|
91
|
+
constructor(spec: Document);
|
|
92
|
+
pathsObject(): Document['paths'];
|
|
93
|
+
getPathItem(openApiPath: string): PathItemObject;
|
|
94
|
+
paths(): string[];
|
|
95
|
+
getSchemaObject(schemaName: string): Schema | undefined;
|
|
96
|
+
getExpectedResponse(responseOperation: Operation, status: ActualResponse['status']): ResponseObjectWithSchema | undefined;
|
|
97
|
+
findExpectedResponse(actualResponse: ActualResponse): Record<string, ResponseObjectWithSchema>;
|
|
98
|
+
findOpenApiPathMatchingRequest(actualRequest: ActualRequest): string;
|
|
99
|
+
findExpectedPathItem(actualRequest: ActualRequest): PathItemObject;
|
|
100
|
+
findExpectedResponseOperation(actualRequest: ActualRequest): Operation | undefined;
|
|
101
|
+
validateResponse(actualResponse: ActualResponse): ValidationError | null;
|
|
102
|
+
validateObject(actualObject: unknown, schema: Schema): ValidationError | null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare class OpenApi2Spec extends OpenApiSpec$1 {
|
|
106
|
+
spec: OpenAPIV2.Document;
|
|
107
|
+
didUserDefineBasePath: boolean;
|
|
108
|
+
constructor(spec: OpenAPIV2.Document);
|
|
109
|
+
/**
|
|
110
|
+
* "If the basePath property is not provided, the API is served directly under the host
|
|
111
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#fixed-fields
|
|
112
|
+
*/
|
|
113
|
+
findOpenApiPathMatchingPathname(pathname: string): string;
|
|
114
|
+
findResponseDefinition(referenceString: string): ResponseObjectWithSchema | undefined;
|
|
115
|
+
getComponentDefinitionsProperty(): {
|
|
116
|
+
definitions: OpenAPIV2.Document['definitions'];
|
|
117
|
+
};
|
|
118
|
+
getSchemaObjects(): OpenAPIV2.Document['definitions'];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare class OpenApi3Spec extends OpenApiSpec$1 {
|
|
122
|
+
protected spec: OpenAPIV3.Document;
|
|
123
|
+
didUserDefineServers: boolean;
|
|
124
|
+
constructor(spec: OpenAPIV3.Document);
|
|
125
|
+
/**
|
|
126
|
+
* "If the servers property is not provided, or is an empty array, the default value would be a Server Object with a url value of '/'"
|
|
127
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#fixed-fields
|
|
128
|
+
*/
|
|
129
|
+
ensureDefaultServer(): void;
|
|
130
|
+
servers(): OpenAPIV3.ServerObject[];
|
|
131
|
+
getServerUrls(): string[];
|
|
132
|
+
getMatchingServerUrls(pathname: string): string[];
|
|
133
|
+
getMatchingServerBasePaths(pathname: string): string[];
|
|
134
|
+
findOpenApiPathMatchingPathname(pathname: string): string;
|
|
135
|
+
findResponseDefinition(referenceString: string): ResponseObjectWithSchema | undefined;
|
|
136
|
+
getComponentDefinitionsProperty(): {
|
|
137
|
+
components: OpenAPIV3.Document['components'];
|
|
138
|
+
};
|
|
139
|
+
getSchemaObjects(): OpenAPIV3.ComponentsObject['schemas'];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare function makeApiSpec(filepathOrObject: string | OpenAPI.Document): OpenApi2Spec | OpenApi3Spec;
|
|
143
|
+
|
|
144
|
+
declare function makeResponse(res: RawResponse): AxiosResponse | SuperAgentResponse;
|
|
145
|
+
|
|
146
|
+
type OpenApiSpec = OpenApi2Spec | OpenApi3Spec;
|
|
147
|
+
type OpenAPISpecObject = OpenAPI.Document;
|
|
148
|
+
|
|
149
|
+
export { type ActualRequest, type ActualResponse, ErrorCode, type OpenAPISpecObject, OpenApi2Spec, OpenApi3Spec, type OpenApiSpec, type RawResponse, type Schema, ValidationError, makeApiSpec, makeResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,149 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { OpenAPIV2, OpenAPIV3, OpenAPIV3_1, OpenAPI } from 'openapi-types';
|
|
2
|
+
import { AxiosResponse as AxiosResponse$1 } from 'axios';
|
|
3
|
+
import { Response, SuperAgentRequest } from 'superagent';
|
|
4
|
+
|
|
5
|
+
type RawAxiosResponse = AxiosResponse$1;
|
|
6
|
+
declare class AxiosResponse extends AbstractResponse {
|
|
7
|
+
protected res: RawAxiosResponse;
|
|
8
|
+
constructor(res: RawAxiosResponse);
|
|
9
|
+
getBodyForValidation(): AxiosResponse['body'];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type RawSuperAgentResponse = Response & {
|
|
13
|
+
req: SuperAgentRequest & {
|
|
14
|
+
path: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare class SuperAgentResponse extends AbstractResponse {
|
|
18
|
+
protected res: RawSuperAgentResponse;
|
|
19
|
+
private isResTextPopulatedInsteadOfResBody;
|
|
20
|
+
constructor(res: RawSuperAgentResponse);
|
|
21
|
+
getBodyForValidation(): SuperAgentResponse['body'];
|
|
22
|
+
summary(): ReturnType<AbstractResponse['summary']> & {
|
|
23
|
+
text?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type RawResponse = RawAxiosResponse | RawSuperAgentResponse;
|
|
28
|
+
declare abstract class AbstractResponse {
|
|
29
|
+
protected res: RawResponse;
|
|
30
|
+
status: number;
|
|
31
|
+
req: {
|
|
32
|
+
method: string;
|
|
33
|
+
path: string;
|
|
34
|
+
};
|
|
35
|
+
abstract getBodyForValidation(): unknown;
|
|
36
|
+
protected body: unknown;
|
|
37
|
+
protected bodyHasNoContent: boolean;
|
|
38
|
+
constructor(res: RawResponse);
|
|
39
|
+
summary(): {
|
|
40
|
+
body: unknown;
|
|
41
|
+
};
|
|
42
|
+
toString(): string;
|
|
43
|
+
}
|
|
44
|
+
type ActualResponse = AbstractResponse;
|
|
45
|
+
type ActualRequest = AbstractResponse['req'];
|
|
46
|
+
|
|
47
|
+
declare enum ErrorCode {
|
|
48
|
+
ServerNotFound = 0,
|
|
49
|
+
BasePathNotFound = 1,
|
|
50
|
+
PathNotFound = 2,
|
|
51
|
+
MethodNotFound = 3,
|
|
52
|
+
StatusNotFound = 4,
|
|
53
|
+
InvalidBody = 5,
|
|
54
|
+
InvalidObject = 6
|
|
55
|
+
}
|
|
56
|
+
declare class ValidationError extends Error {
|
|
57
|
+
code: ErrorCode;
|
|
58
|
+
constructor(code: ErrorCode, message?: string);
|
|
59
|
+
toString(): string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type Document = OpenAPIV2.Document | OpenAPIV3.Document;
|
|
63
|
+
type Operation = OpenAPIV2.OperationObject | OpenAPIV3.OperationObject;
|
|
64
|
+
type PathItemObject = OpenAPIV2.PathItemObject | OpenAPIV3.PathItemObject;
|
|
65
|
+
type ResponseObjectWithSchema = (OpenAPIV2.ResponseObject & {
|
|
66
|
+
schema: OpenAPIV2.Schema;
|
|
67
|
+
}) | (OpenAPIV3.ResponseObject & {
|
|
68
|
+
content: {
|
|
69
|
+
[media: string]: OpenAPIV3.MediaTypeObject & {
|
|
70
|
+
schema: OpenAPIV3.SchemaObject;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}) | (OpenAPIV3_1.ResponseObject & {
|
|
74
|
+
content: {
|
|
75
|
+
[media: string]: OpenAPIV3_1.MediaTypeObject & {
|
|
76
|
+
schema: OpenAPIV3_1.SchemaObject;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
type Schema = OpenAPIV2.Schema | OpenAPIV3.SchemaObject;
|
|
81
|
+
declare abstract class OpenApiSpec$1 {
|
|
82
|
+
protected spec: Document;
|
|
83
|
+
protected abstract getSchemaObjects(): Record<string, Schema> | undefined;
|
|
84
|
+
protected abstract findResponseDefinition(referenceString: string): ResponseObjectWithSchema | undefined;
|
|
85
|
+
protected abstract findOpenApiPathMatchingPathname(pathname: string): string;
|
|
86
|
+
protected abstract getComponentDefinitionsProperty(): {
|
|
87
|
+
definitions: OpenAPIV2.Document['definitions'];
|
|
88
|
+
} | {
|
|
89
|
+
components: OpenAPIV3.Document['components'];
|
|
90
|
+
};
|
|
91
|
+
constructor(spec: Document);
|
|
92
|
+
pathsObject(): Document['paths'];
|
|
93
|
+
getPathItem(openApiPath: string): PathItemObject;
|
|
94
|
+
paths(): string[];
|
|
95
|
+
getSchemaObject(schemaName: string): Schema | undefined;
|
|
96
|
+
getExpectedResponse(responseOperation: Operation, status: ActualResponse['status']): ResponseObjectWithSchema | undefined;
|
|
97
|
+
findExpectedResponse(actualResponse: ActualResponse): Record<string, ResponseObjectWithSchema>;
|
|
98
|
+
findOpenApiPathMatchingRequest(actualRequest: ActualRequest): string;
|
|
99
|
+
findExpectedPathItem(actualRequest: ActualRequest): PathItemObject;
|
|
100
|
+
findExpectedResponseOperation(actualRequest: ActualRequest): Operation | undefined;
|
|
101
|
+
validateResponse(actualResponse: ActualResponse): ValidationError | null;
|
|
102
|
+
validateObject(actualObject: unknown, schema: Schema): ValidationError | null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare class OpenApi2Spec extends OpenApiSpec$1 {
|
|
106
|
+
spec: OpenAPIV2.Document;
|
|
107
|
+
didUserDefineBasePath: boolean;
|
|
108
|
+
constructor(spec: OpenAPIV2.Document);
|
|
109
|
+
/**
|
|
110
|
+
* "If the basePath property is not provided, the API is served directly under the host
|
|
111
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#fixed-fields
|
|
112
|
+
*/
|
|
113
|
+
findOpenApiPathMatchingPathname(pathname: string): string;
|
|
114
|
+
findResponseDefinition(referenceString: string): ResponseObjectWithSchema | undefined;
|
|
115
|
+
getComponentDefinitionsProperty(): {
|
|
116
|
+
definitions: OpenAPIV2.Document['definitions'];
|
|
117
|
+
};
|
|
118
|
+
getSchemaObjects(): OpenAPIV2.Document['definitions'];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare class OpenApi3Spec extends OpenApiSpec$1 {
|
|
122
|
+
protected spec: OpenAPIV3.Document;
|
|
123
|
+
didUserDefineServers: boolean;
|
|
124
|
+
constructor(spec: OpenAPIV3.Document);
|
|
125
|
+
/**
|
|
126
|
+
* "If the servers property is not provided, or is an empty array, the default value would be a Server Object with a url value of '/'"
|
|
127
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#fixed-fields
|
|
128
|
+
*/
|
|
129
|
+
ensureDefaultServer(): void;
|
|
130
|
+
servers(): OpenAPIV3.ServerObject[];
|
|
131
|
+
getServerUrls(): string[];
|
|
132
|
+
getMatchingServerUrls(pathname: string): string[];
|
|
133
|
+
getMatchingServerBasePaths(pathname: string): string[];
|
|
134
|
+
findOpenApiPathMatchingPathname(pathname: string): string;
|
|
135
|
+
findResponseDefinition(referenceString: string): ResponseObjectWithSchema | undefined;
|
|
136
|
+
getComponentDefinitionsProperty(): {
|
|
137
|
+
components: OpenAPIV3.Document['components'];
|
|
138
|
+
};
|
|
139
|
+
getSchemaObjects(): OpenAPIV3.ComponentsObject['schemas'];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare function makeApiSpec(filepathOrObject: string | OpenAPI.Document): OpenApi2Spec | OpenApi3Spec;
|
|
143
|
+
|
|
144
|
+
declare function makeResponse(res: RawResponse): AxiosResponse | SuperAgentResponse;
|
|
145
|
+
|
|
146
|
+
type OpenApiSpec = OpenApi2Spec | OpenApi3Spec;
|
|
147
|
+
type OpenAPISpecObject = OpenAPI.Document;
|
|
148
|
+
|
|
149
|
+
export { type ActualRequest, type ActualResponse, ErrorCode, type OpenAPISpecObject, OpenApi2Spec, OpenApi3Spec, type OpenApiSpec, type RawResponse, type Schema, ValidationError, makeApiSpec, makeResponse };
|