Skip to content

Commit

Permalink
lock key is just type string
Browse files Browse the repository at this point in the history
  • Loading branch information
standielpls committed Aug 22, 2023
1 parent 8f4d2b1 commit 37a0452
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions packages/schema/exported-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,8 @@
"properties": {
"key": {
"description": "The key to use for locking. This should be unique to the operation.",
"$ref": "/KeySchema"
"type": "string",
"minLength": 1
},
"scope": {
"description": "The level at which an app's access is restricted to. \n 'user' - Locks based on user ids. \n 'auth' - Locks based on unique auth ids\n 'account' - Locks for all users under a single account. \n You may also combine scopes.",
Expand Down Expand Up @@ -939,7 +940,8 @@
"properties": {
"key": {
"description": "The key to use for locking. This should be unique to the operation.",
"$ref": "/KeySchema"
"type": "string",
"minLength": 1
},
"scope": {
"description": "The level at which an app's access is restricted to. \n 'user' - Locks based on user ids. \n 'auth' - Locks based on unique auth ids\n 'account' - Locks for all users under a single account. \n You may also combine scopes.",
Expand Down Expand Up @@ -1321,7 +1323,8 @@
"properties": {
"key": {
"description": "The key to use for locking. This should be unique to the operation.",
"$ref": "/KeySchema"
"type": "string",
"minLength": 1
},
"scope": {
"description": "The level at which an app's access is restricted to. \n 'user' - Locks based on user ids. \n 'auth' - Locks based on unique auth ids\n 'account' - Locks for all users under a single account. \n You may also combine scopes.",
Expand Down
3 changes: 2 additions & 1 deletion packages/schema/lib/schemas/BasicOperationSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ module.exports = makeSchema(
key: {
description:
'The key to use for locking. This should be unique to the operation.',
$ref: KeySchema.id,
type: 'string',
minLength: 1,
},
scope: {
description: `The level at which an app's access is restricted to.
Expand Down

0 comments on commit 37a0452

Please sign in to comment.