redoc
Version:
21 lines (20 loc) • 812 B
TypeScript
import type { OpenAPIMediaType } from '../../types';
import type { RedocNormalizedOptions } from '../RedocNormalizedOptions';
import { SchemaModel } from './Schema';
import type { OpenAPIParser } from '../OpenAPIParser';
import { ExampleModel } from './Example';
export declare class MediaTypeModel {
examples?: {
[name: string]: ExampleModel;
};
schema?: SchemaModel;
name: string;
isRequestType: boolean;
onlyRequiredInSamples: boolean;
generatedSamplesMaxDepth: number;
/**
* @param isRequestType needed to know if skipe RO/RW fields in objects
*/
constructor(parser: OpenAPIParser, name: string, isRequestType: boolean, info: OpenAPIMediaType, options: RedocNormalizedOptions);
generateExample(parser: OpenAPIParser, info: OpenAPIMediaType): void;
}