Skip to content

Commit bb362df

Browse files
committed
fix: fix admin settings json schema
1 parent 0136c68 commit bb362df

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

functions/ecom.config.js

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -144,32 +144,37 @@ const app = {
144144
type: 'array',
145145
maxItems: 300,
146146
items: {
147-
webhook_uri: {
148-
schema: {
149-
type: 'string',
150-
maxLength: 255,
151-
format: 'uri',
152-
title: 'Webhook URI',
153-
description: 'URL de destino para os webhooks',
147+
title: 'Opções do webhook',
148+
type: 'object',
149+
additionalProperties: false,
150+
properties: {
151+
webhook_uri: {
152+
schema: {
153+
type: 'string',
154+
maxLength: 255,
155+
format: 'uri',
156+
title: 'Webhook URI',
157+
description: 'URL de destino para os webhooks',
158+
},
159+
hide: true
154160
},
155-
hide: true
156-
},
157-
webhook_token: {
158-
schema: {
159-
type: 'string',
160-
maxLength: 50,
161-
title: 'Token',
162-
description: 'Bearer token opcional para o cabeçalho Authorization',
161+
webhook_token: {
162+
schema: {
163+
type: 'string',
164+
maxLength: 50,
165+
title: 'Token',
166+
description: 'Bearer token opcional para o cabeçalho Authorization',
167+
},
168+
hide: true
163169
},
164-
hide: true
165-
},
166-
skip_pending: {
167-
schema: {
168-
type: 'boolean',
169-
default: false,
170-
title: 'Ignorar pedidos pendentes',
171-
},
172-
hide: true
170+
skip_pending: {
171+
schema: {
172+
type: 'boolean',
173+
default: false,
174+
title: 'Ignorar pedidos pendentes',
175+
},
176+
hide: true
177+
}
173178
}
174179
}
175180
},

0 commit comments

Comments
 (0)