33 */
44import { Oas2 } from './types/oas2' ;
55import { 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' ;
77import { PreprocessingData , ProcessedSecurityScheme } from './types/preprocessing_data' ;
88import { InternalOptions } from './types/options' ;
99export declare type SchemaNames = {
@@ -95,9 +95,9 @@ export declare function inferResourceNameFromPath(path: string): string;
9595 * Returns JSON-compatible schema required by the given endpoint - or null if it
9696 * does not exist.
9797 */
98- export declare function getRequestSchema ( endpoint : OperationObject , oas : Oas3 ) : {
98+ export declare function getRequestBodyObject ( endpoint : OperationObject , oas : Oas3 ) : {
9999 payloadContentType : string ;
100- payloadSchema : SchemaObject ;
100+ requestBodyObject : RequestBodyObject ;
101101} | null ;
102102/**
103103 * 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
109109 * Returns JSON-compatible schema produced by the given endpoint - or null if it
110110 * does not exist.
111111 */
112- export declare function getResponseSchema ( endpoint : OperationObject , statusCode : string , oas : Oas3 ) : {
112+ export declare function getResponseObject ( endpoint : OperationObject , statusCode : string , oas : Oas3 ) : {
113113 responseContentType : string ;
114- responseSchema : SchemaObject ;
114+ responseObject : ResponseObject ;
115115} | null ;
116116/**
117117 * Returns the response schema for endpoint at given path and method and with
0 commit comments