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