Skip to content

Commit

Permalink
com.atproto lexicions: longer rkey length (bluesky-social#2949)
Browse files Browse the repository at this point in the history
* bump lexicon rkey limits to match specs

* codegen
  • Loading branch information
bnewbold authored Nov 8, 2024
1 parent b6eeb81 commit cdc0bbf
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lexicons/com/atproto/repo/applyWrites.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"required": ["collection", "value"],
"properties": {
"collection": { "type": "string", "format": "nsid" },
"rkey": { "type": "string", "maxLength": 15 },
"rkey": { "type": "string", "maxLength": 512 },
"value": { "type": "unknown" }
}
},
Expand Down
2 changes: 1 addition & 1 deletion lexicons/com/atproto/repo/createRecord.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"rkey": {
"type": "string",
"description": "The Record Key.",
"maxLength": 15
"maxLength": 512
},
"validate": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion lexicons/com/atproto/repo/putRecord.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"rkey": {
"type": "string",
"description": "The Record Key.",
"maxLength": 15
"maxLength": 512
},
"validate": {
"type": "boolean",
Expand Down
6 changes: 3 additions & 3 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ export const schemaDict = {
},
rkey: {
type: 'string',
maxLength: 15,
maxLength: 512,
},
value: {
type: 'unknown',
Expand Down Expand Up @@ -1450,7 +1450,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down Expand Up @@ -1901,7 +1901,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down
6 changes: 3 additions & 3 deletions packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ export const schemaDict = {
},
rkey: {
type: 'string',
maxLength: 15,
maxLength: 512,
},
value: {
type: 'unknown',
Expand Down Expand Up @@ -1450,7 +1450,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down Expand Up @@ -1901,7 +1901,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down
6 changes: 3 additions & 3 deletions packages/ozone/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ export const schemaDict = {
},
rkey: {
type: 'string',
maxLength: 15,
maxLength: 512,
},
value: {
type: 'unknown',
Expand Down Expand Up @@ -1450,7 +1450,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down Expand Up @@ -1901,7 +1901,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down
6 changes: 3 additions & 3 deletions packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ export const schemaDict = {
},
rkey: {
type: 'string',
maxLength: 15,
maxLength: 512,
},
value: {
type: 'unknown',
Expand Down Expand Up @@ -1450,7 +1450,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down Expand Up @@ -1901,7 +1901,7 @@ export const schemaDict = {
rkey: {
type: 'string',
description: 'The Record Key.',
maxLength: 15,
maxLength: 512,
},
validate: {
type: 'boolean',
Expand Down

0 comments on commit cdc0bbf

Please sign in to comment.