Skip to content

Commit 11be43e

Browse files
committed
fix(api): replace additionalProperties: true with \$ref in push.get response schema
Use \$ref: '#/components/schemas/IMessage' and \$ref: '#/components/schemas/IPushNotificationConfig' for the push.get 200 response data fields per maintainer review requirement.
1 parent 20aa60a commit 11be43e

File tree

1 file changed

+2
-2
lines changed
  • apps/meteor/app/api/server/v1

1 file changed

+2
-2
lines changed

apps/meteor/app/api/server/v1/push.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ const pushTokenEndpoints = API.v1
233233
data: {
234234
type: 'object',
235235
properties: {
236-
message: { type: 'object', additionalProperties: true },
237-
notification: { type: 'object', additionalProperties: true },
236+
message: { $ref: '#/components/schemas/IMessage' },
237+
notification: { $ref: '#/components/schemas/IPushNotificationConfig' },
238238
},
239239
required: ['message', 'notification'],
240240
additionalProperties: false,

0 commit comments

Comments
 (0)