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 0a1af45 commit 820a6ecCopy full SHA for 820a6ec
packages/payload/src/utilities/configToJSONSchema.ts
@@ -1156,14 +1156,13 @@ export function configToJSONSchema(
1156
)
1157
: {}
1158
1159
- let blocksDefinition: JSONSchema4 | undefined = undefined
+ const blocksDefinition: JSONSchema4 | undefined = {
1160
+ type: 'object',
1161
+ additionalProperties: false,
1162
+ properties: {},
1163
+ required: [],
1164
+ }
1165
if (config?.blocks?.length) {
- blocksDefinition = {
- type: 'object',
- additionalProperties: false,
- properties: {},
- required: [],
1166
- }
1167
for (const block of config.blocks) {
1168
const blockFieldSchemas = fieldsToJSONSchema(
1169
collectionIDFieldTypes,
0 commit comments