import { AllOfSchema, AnyOfSchema, NotSchema, OneOfSchema, } from "@theme/JSONSchemaViewer/JSONSchemaElements/schemaComposition" import type { JSX } from "react" import type { JSONSchema } from "@theme/JSONSchemaViewer/types" type Props = { schema: Exclude [x: string]: any } // To handle Schema Composition (anyOf, oneOf, not, allOf) export default function SchemaComposition(props: Props): JSX.Element { const { schema } = props return ( <> {schema.oneOf !== undefined && } {schema.anyOf !== undefined && } {schema.allOf !== undefined && } {schema.not !== undefined && } ) }