We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 809e098 commit 447473bCopy full SHA for 447473b
src/lib/adapters/simple-schema/index.ts
@@ -15,8 +15,8 @@ export function simpleSchema(value: unknown): JSONSchema {
15
return { type: 'integer', format: 'unix-time' };
16
}
17
18
- const output: JSONSchema = { type: 'array' };
19
if (Array.isArray(value)) {
+ const output: JSONSchema = { type: 'array' };
20
if (value.length) output.items = simpleSchema(value[0]);
21
return output;
22
} else {
0 commit comments