UNPKG

openapi-ts-json-schema

Version:

OpenAPI to JSON schema generator with TypeScript in mind

8 lines (7 loc) 439 B
import type { JSONSchema, JSONSchemaWithPlaceholders } from '../../types'; /** * Iterate a JSON schema to replace inlined ref schema objects * (marked with a SCHEMA_ID_SYMBOL property holding the original $ref value) * with a string placeholder with a reference to their internal id ("_OTJS-START_/id/value_OTJS-END_") */ export declare function replaceInlinedRefsWithStringPlaceholder(schema: JSONSchema): JSONSchemaWithPlaceholders;