feat(oas31): add support for Schema Object xml keyword (#8657)

Refs #8513
This commit is contained in:
Vladimír Gorej
2023-05-11 16:28:02 +02:00
committed by GitHub
parent f74ff82897
commit 9bb5a210c0
6 changed files with 131 additions and 10 deletions

View File

@@ -44,7 +44,8 @@ import Accordion from "./components/Accordion/Accordion"
import ExpandDeepButton from "./components/ExpandDeepButton/ExpandDeepButton"
import ChevronRightIcon from "./components/icons/ChevronRight"
import { upperFirst, hasKeyword, isExpandable } from "./fn"
import { useFn } from "./hooks"
import { JSONSchemaDeepExpansionContext } from "./context"
import { useFn, useComponent, useIsExpandedDeeply } from "./hooks"
import { withJSONSchemaContext } from "./hoc"
const JSONSchema202012Plugin = () => ({
@@ -92,6 +93,7 @@ const JSONSchema202012Plugin = () => ({
JSONSchema202012ExpandDeepButton: ExpandDeepButton,
JSONSchema202012ChevronRightIcon: ChevronRightIcon,
withJSONSchema202012Context: withJSONSchemaContext,
JSONSchema202012DeepExpansionContext: () => JSONSchemaDeepExpansionContext,
},
fn: {
upperFirst,
@@ -99,6 +101,8 @@ const JSONSchema202012Plugin = () => ({
isExpandable,
hasKeyword,
useFn,
useComponent,
useIsExpandedDeeply,
},
},
})