3
3
*/
4
4
import { Oas2 } from './types/oas2' ;
5
5
import { Operation } from './types/operation' ;
6
- import { Oas3 , ServerObject , ParameterObject , SchemaObject , OperationObject , ReferenceObject , LinkObject , SecuritySchemeObject } from './types/oas3' ;
6
+ import { Oas3 , ServerObject , ParameterObject , SchemaObject , OperationObject , ResponseObject , RequestBodyObject , ReferenceObject , LinkObject , SecuritySchemeObject } from './types/oas3' ;
7
7
import { PreprocessingData , ProcessedSecurityScheme } from './types/preprocessing_data' ;
8
8
import { InternalOptions } from './types/options' ;
9
9
export declare type SchemaNames = {
@@ -95,9 +95,9 @@ export declare function inferResourceNameFromPath(path: string): string;
95
95
* Returns JSON-compatible schema required by the given endpoint - or null if it
96
96
* does not exist.
97
97
*/
98
- export declare function getRequestSchema ( endpoint : OperationObject , oas : Oas3 ) : {
98
+ export declare function getRequestBodyObject ( endpoint : OperationObject , oas : Oas3 ) : {
99
99
payloadContentType : string ;
100
- payloadSchema : SchemaObject ;
100
+ requestBodyObject : RequestBodyObject ;
101
101
} | null ;
102
102
/**
103
103
* Returns the request schema (if any) for an endpoint at given path and method,
@@ -109,9 +109,9 @@ export declare function getRequestSchemaAndNames(path: string, method: string, o
109
109
* Returns JSON-compatible schema produced by the given endpoint - or null if it
110
110
* does not exist.
111
111
*/
112
- export declare function getResponseSchema ( endpoint : OperationObject , statusCode : string , oas : Oas3 ) : {
112
+ export declare function getResponseObject ( endpoint : OperationObject , statusCode : string , oas : Oas3 ) : {
113
113
responseContentType : string ;
114
- responseSchema : SchemaObject ;
114
+ responseObject : ResponseObject ;
115
115
} | null ;
116
116
/**
117
117
* Returns the response schema for endpoint at given path and method and with
0 commit comments