Skip to content

Commit

Permalink
lint: make codacy happy
Browse files Browse the repository at this point in the history
jy95 committed Dec 31, 2023
1 parent 917bd20 commit 3ee7ccc
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@ export default function CreateItems(props: Props): JSX.Element {
<ul>
{itemsAsArray.map((item, idx) => (
<SchemaHierarchyContextProvider
key={`array_items_${idx}`}
value={{
level: currentLevel + 1,
jsonPointer: `${currentJsonPointer}/items${
@@ -72,7 +73,6 @@ export default function CreateItems(props: Props): JSX.Element {
}}
>
<CreateEdge
key={`array_items_${idx}`}
name={<ItemsLabel index={startingIndex + idx} isArray={isArray} />}
schema={item}
required={
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ export default function CreatePatternProperties(props: Props): JSX.Element {
<ul>
{Object.entries(patternProperties).map(([key, value]) => (
<SchemaHierarchyContextProvider
key={`object_patternProperties_${key}`}
value={{
level: currentLevel + 1,
jsonPointer: `${currentJsonPointer}/patternProperties/${encodeStringForJSONPointer(
@@ -39,7 +40,6 @@ export default function CreatePatternProperties(props: Props): JSX.Element {
}}
>
<CreateEdge
key={`object_patternProperties_${key}`}
name={<code>{key}</code>}
schema={value}
required={false}
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ export default function CreateProperties(props: Props): JSX.Element {
{Object.entries(properties).map(([key, value]) => {
return (
<SchemaHierarchyContextProvider
key={`object_properties_${key}`}
value={{
level: currentLevel + 1,
jsonPointer: `${currentJsonPointer}/properties/${encodeStringForJSONPointer(
@@ -40,7 +41,6 @@ export default function CreateProperties(props: Props): JSX.Element {
}}
>
<CreateEdge
key={`object_properties_${key}`}
name={<strong>{key}</strong>}
schema={value}
required={
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ export default function CreateUnlistedProperties(props: Props): JSX.Element {
<ul>
{unlistedProperties.map((prop, idx) => (
<SchemaHierarchyContextProvider
key={`object_unlisted_properties_${idx}`}
value={{
level: currentLevel + 1,
jsonPointer: `${currentJsonPointer}/properties/${encodeStringForJSONPointer(
@@ -46,7 +47,6 @@ export default function CreateUnlistedProperties(props: Props): JSX.Element {
}}
>
<CreateEdge
key={`object_unlisted_properties_${idx}`}
name={<strong>{prop}</strong>}
schema={true}
required={true}

0 comments on commit 3ee7ccc

Please sign in to comment.