diff --git a/src/components/openapi/OperationInputValue.tsx b/src/components/openapi/OperationInputValue.tsx
index b5e484e8..cc7708c4 100644
--- a/src/components/openapi/OperationInputValue.tsx
+++ b/src/components/openapi/OperationInputValue.tsx
@@ -34,7 +34,7 @@ export function ArrayValue({ schema }: { schema: OpenAPIV3.SchemaObject }) {
Array[
{body}
-
+
]
@@ -58,6 +58,8 @@ export function PropertyValue({
body = {schema.description};
}
+ const hasSubSchema = schema.properties || schema.additionalProperties || schema.items;
+
return (
@@ -67,7 +69,7 @@ export function PropertyValue({
{requiredOrOptional}
{body}
-
+ {hasSubSchema && }
);
}
diff --git a/src/components/openapi/Schema.tsx b/src/components/openapi/Schema.tsx
index d8010582..845e24b3 100644
--- a/src/components/openapi/Schema.tsx
+++ b/src/components/openapi/Schema.tsx
@@ -92,4 +92,6 @@ export default function Schema({ schema }: Props) {
if (schema.type === "array") {
return ;
}
+
+ return ;
}