Skip to content

Commit

Permalink
normalize body array instead of returning literal (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata authored Jan 22, 2025
1 parent c0eba4b commit 70a61b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const sampleRequestFromSchema = (schema: SchemaObject = {}): any => {
return items?.oneOf.map((item: any) => sampleRequestFromSchema(item));
}

return [sampleRequestFromSchema(items)];
return normalizeArray(sampleRequestFromSchema(items));
}

if (schemaCopy.enum) {
Expand Down

0 comments on commit 70a61b1

Please sign in to comment.