Add missing parenthesis to wrap array examples

This commit is contained in:
Vincent (Wen Yu) Ge
2024-03-22 13:40:56 -04:00
parent 8dc69022b5
commit 5f51a9106d

View File

@@ -373,7 +373,7 @@ export const generateExample = (schema: OpenAPIV3.SchemaObject, api: OpenAPIV3.D
return {
...carry,
[property.name]: generateExample(schema, api)
[property.name]: [generateExample(schema, api)]
};
}