Skip to content

Commit 10600c6

Browse files
committed
support object as primitive additional properties
1 parent 4137a5a commit 10600c6

File tree

1 file changed

+2
-1
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/Schema

1 file changed

+2
-1
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/Schema/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ const AdditionalProperties: React.FC<SchemaProps> = ({
334334
additionalProperties.type === "string" ||
335335
additionalProperties.type === "boolean" ||
336336
additionalProperties.type === "integer" ||
337-
additionalProperties.type === "number"
337+
additionalProperties.type === "number" ||
338+
additionalProperties.type === "object"
338339
) {
339340
const schemaName = getSchemaName(additionalProperties);
340341
return (

0 commit comments

Comments
 (0)