mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-08 22:10:33 +03:00
15 lines
387 B
TypeScript
15 lines
387 B
TypeScript
import { OpenAPIExample, Referenced } from '../../types';
|
|
import { OpenAPIParser } from '../OpenAPIParser';
|
|
|
|
export class ExampleModel {
|
|
value: any;
|
|
summary?: string;
|
|
description?: string;
|
|
externalValue?: string;
|
|
|
|
constructor(parser: OpenAPIParser, infoOrRef: Referenced<OpenAPIExample>) {
|
|
Object.assign(this, parser.deref(infoOrRef));
|
|
parser.exitRef(infoOrRef);
|
|
}
|
|
}
|