committed by
Vladimír Gorej
parent
a9dc6b0b05
commit
66d55034b8
@@ -7,7 +7,7 @@ import { schema } from "../../prop-types"
|
|||||||
import { useComponent } from "../../hooks"
|
import { useComponent } from "../../hooks"
|
||||||
|
|
||||||
const Contains = ({ schema }) => {
|
const Contains = ({ schema }) => {
|
||||||
if (!schema?.contains) return null
|
if (!Object.hasOwn(schema, "contains")) return null
|
||||||
|
|
||||||
const JSONSchema = useComponent("JSONSchema")
|
const JSONSchema = useComponent("JSONSchema")
|
||||||
const name = (
|
const name = (
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { schema } from "../../prop-types"
|
|||||||
import { useComponent } from "../../hooks"
|
import { useComponent } from "../../hooks"
|
||||||
|
|
||||||
const Else = ({ schema }) => {
|
const Else = ({ schema }) => {
|
||||||
if (!schema?.else) return null
|
if (!Object.hasOwn(schema, "contains")) return null
|
||||||
|
|
||||||
const JSONSchema = useComponent("JSONSchema")
|
const JSONSchema = useComponent("JSONSchema")
|
||||||
const name = (
|
const name = (
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { schema } from "../../prop-types"
|
|||||||
import { useComponent } from "../../hooks"
|
import { useComponent } from "../../hooks"
|
||||||
|
|
||||||
const If = ({ schema }) => {
|
const If = ({ schema }) => {
|
||||||
if (!schema?.if) return null
|
if (!Object.hasOwn(schema, "if")) return null
|
||||||
|
|
||||||
const JSONSchema = useComponent("JSONSchema")
|
const JSONSchema = useComponent("JSONSchema")
|
||||||
const name = (
|
const name = (
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { schema } from "../../prop-types"
|
|||||||
import { useComponent } from "../../hooks"
|
import { useComponent } from "../../hooks"
|
||||||
|
|
||||||
const Not = ({ schema }) => {
|
const Not = ({ schema }) => {
|
||||||
if (!schema?.not) return null
|
if (!Object.hasOwn(schema, "contains")) return null
|
||||||
|
|
||||||
const JSONSchema = useComponent("JSONSchema")
|
const JSONSchema = useComponent("JSONSchema")
|
||||||
const name = (
|
const name = (
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { schema } from "../../prop-types"
|
|||||||
import { useComponent } from "../../hooks"
|
import { useComponent } from "../../hooks"
|
||||||
|
|
||||||
const Then = ({ schema }) => {
|
const Then = ({ schema }) => {
|
||||||
if (!schema?.then) return null
|
if (!Object.hasOwn(schema, "then")) return null
|
||||||
|
|
||||||
const JSONSchema = useComponent("JSONSchema")
|
const JSONSchema = useComponent("JSONSchema")
|
||||||
const name = (
|
const name = (
|
||||||
|
|||||||
@@ -136,14 +136,14 @@ export const isExpandable = (schema) => {
|
|||||||
schema?.allOf ||
|
schema?.allOf ||
|
||||||
schema?.anyOf ||
|
schema?.anyOf ||
|
||||||
schema?.oneOf ||
|
schema?.oneOf ||
|
||||||
schema?.not ||
|
Object.hasOwn(schema, "not") ||
|
||||||
schema?.if ||
|
Object.hasOwn(schema, "if") ||
|
||||||
schema?.then ||
|
Object.hasOwn(schema, "then") ||
|
||||||
schema?.else ||
|
Object.hasOwn(schema, "else") ||
|
||||||
schema?.dependentSchemas ||
|
schema?.dependentSchemas ||
|
||||||
schema?.prefixItems ||
|
schema?.prefixItems ||
|
||||||
schema?.items ||
|
schema?.items ||
|
||||||
schema?.contains ||
|
Object.hasOwn(schema, "contains") ||
|
||||||
schema?.properties ||
|
schema?.properties ||
|
||||||
schema?.patternProperties ||
|
schema?.patternProperties ||
|
||||||
schema?.description
|
schema?.description
|
||||||
|
|||||||
Reference in New Issue
Block a user