Skip to content

Commit

Permalink
fix: /locks/*: use device schema ref (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Nov 8, 2023
1 parent 8cc9575 commit 0560c04
Show file tree
Hide file tree
Showing 2 changed files with 2,328 additions and 10 deletions.
22 changes: 16 additions & 6 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5885,6 +5885,8 @@ export default {
'device.salto.privacy_mode_deactivated',
'device.connection_became_flaky',
'device.connection_stabilized',
'device.error.subscription_required',
'device.error.subscription_required.resolved',
'access_code.created',
'access_code.changed',
'access_code.scheduled_on_device',
Expand Down Expand Up @@ -5933,6 +5935,8 @@ export default {
'device.salto.privacy_mode_deactivated',
'device.connection_became_flaky',
'device.connection_stabilized',
'device.error.subscription_required',
'device.error.subscription_required.resolved',
'access_code.created',
'access_code.changed',
'access_code.scheduled_on_device',
Expand Down Expand Up @@ -6191,11 +6195,11 @@ export default {
'application/json': {
schema: {
properties: {
device: { nullable: true },
lock: { nullable: true },
device: { $ref: '#/components/schemas/device' },
lock: { $ref: '#/components/schemas/device' },
ok: { type: 'boolean' },
},
required: ['ok'],
required: ['lock', 'device', 'ok'],
type: 'object',
},
},
Expand Down Expand Up @@ -6383,11 +6387,17 @@ export default {
'application/json': {
schema: {
properties: {
devices: { nullable: true },
locks: { nullable: true },
devices: {
items: { $ref: '#/components/schemas/device' },
type: 'array',
},
locks: {
items: { $ref: '#/components/schemas/device' },
type: 'array',
},
ok: { type: 'boolean' },
},
required: ['ok'],
required: ['locks', 'devices', 'ok'],
type: 'object',
},
},
Expand Down
Loading

0 comments on commit 0560c04

Please sign in to comment.