UNPKG

@appsemble/lang-sdk

Version:

Language SDK for Appsemble

14 lines (13 loc) 615 B
import { type OpenAPIV3 } from 'openapi-types'; /** * Extend a JSON schema by copying its properties. * * This creates a new schema based on the input schema, where `required` and `properties` are * inherited from the `base` schema. * * @param base The base schema whose properties to inherit. * @param schema The schema overriding the base schema. * @param omit Properties to omit from the base schema. * @returns The schema which extends the base schema. */ export declare function extendJSONSchema(base: OpenAPIV3.SchemaObject, schema: OpenAPIV3.SchemaObject, omit?: string[]): OpenAPIV3.SchemaObject;