feat(oas31): add support for JSON Schema 2020-12 example keyword (#8652)

Refs #8513
This commit is contained in:
Vladimír Gorej
2023-05-11 13:26:21 +02:00
committed by GitHub
parent 091d6cbdad
commit 7d14577523
8 changed files with 134 additions and 34 deletions

View File

@@ -43,7 +43,8 @@ import KeywordWriteOnly from "./components/keywords/WriteOnly/WriteOnly"
import Accordion from "./components/Accordion/Accordion"
import ExpandDeepButton from "./components/ExpandDeepButton/ExpandDeepButton"
import ChevronRightIcon from "./components/icons/ChevronRight"
import { upperFirst } from "./fn"
import { upperFirst, hasKeyword, isExpandable } from "./fn"
import { useFn } from "./hooks"
import { withJSONSchemaContext } from "./hoc"
const JSONSchema202012Plugin = () => ({
@@ -94,6 +95,11 @@ const JSONSchema202012Plugin = () => ({
},
fn: {
upperFirst,
jsonSchema202012: {
isExpandable,
hasKeyword,
useFn,
},
},
})