Skip to content

Commit

Permalink
Revert "lexicons: more string limits (#1994)"
Browse files Browse the repository at this point in the history
This reverts commit ad0d976.
  • Loading branch information
devinivy committed Jan 3, 2024
1 parent 5e7b013 commit 5560b7a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 83 deletions.
5 changes: 0 additions & 5 deletions .changeset/odd-kids-warn.md

This file was deleted.

26 changes: 5 additions & 21 deletions lexicons/app/bsky/embed/external.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,8 @@
"required": ["uri", "title", "description"],
"properties": {
"uri": { "type": "string", "format": "uri" },
"title": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"description": {
"type": "string",
"maxGraphemes": 1000,
"maxLength": 10000
},
"title": { "type": "string" },
"description": { "type": "string" },
"thumb": {
"type": "blob",
"accept": ["image/*"],
Expand All @@ -50,17 +42,9 @@
"required": ["uri", "title", "description"],
"properties": {
"uri": { "type": "string", "format": "uri" },
"title": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"description": {
"type": "string",
"maxGraphemes": 1000,
"maxLength": 10000
},
"thumb": { "type": "string", "format": "uri" }
"title": { "type": "string" },
"description": { "type": "string" },
"thumb": { "type": "string" }
}
}
}
Expand Down
16 changes: 4 additions & 12 deletions lexicons/app/bsky/embed/images.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
"accept": ["image/*"],
"maxSize": 1000000
},
"alt": {
"type": "string",
"maxGraphemes": 5000,
"maxLength": 50000
},
"alt": { "type": "string" },
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
}
},
Expand Down Expand Up @@ -55,13 +51,9 @@
"type": "object",
"required": ["thumb", "fullsize", "alt"],
"properties": {
"thumb": { "type": "string", "format": "uri" },
"fullsize": { "type": "string", "format": "uri" },
"alt": {
"type": "string",
"maxGraphemes": 5000,
"maxLength": 50000
},
"thumb": { "type": "string" },
"fullsize": { "type": "string" },
"alt": { "type": "string" },
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
}
}
Expand Down
15 changes: 0 additions & 15 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4775,13 +4775,9 @@ export const schemaDict = {
},
title: {
type: 'string',
maxGraphemes: 300,
maxLength: 3000,
},
description: {
type: 'string',
maxGraphemes: 1000,
maxLength: 10000,
},
thumb: {
type: 'blob',
Expand Down Expand Up @@ -4810,17 +4806,12 @@ export const schemaDict = {
},
title: {
type: 'string',
maxGraphemes: 300,
maxLength: 3000,
},
description: {
type: 'string',
maxGraphemes: 1000,
maxLength: 10000,
},
thumb: {
type: 'string',
format: 'uri',
},
},
},
Expand Down Expand Up @@ -4856,8 +4847,6 @@ export const schemaDict = {
},
alt: {
type: 'string',
maxGraphemes: 5000,
maxLength: 50000,
},
aspectRatio: {
type: 'ref',
Expand Down Expand Up @@ -4901,16 +4890,12 @@ export const schemaDict = {
properties: {
thumb: {
type: 'string',
format: 'uri',
},
fullsize: {
type: 'string',
format: 'uri',
},
alt: {
type: 'string',
maxGraphemes: 5000,
maxLength: 50000,
},
aspectRatio: {
type: 'ref',
Expand Down
15 changes: 0 additions & 15 deletions packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4775,13 +4775,9 @@ export const schemaDict = {
},
title: {
type: 'string',
maxGraphemes: 300,
maxLength: 3000,
},
description: {
type: 'string',
maxGraphemes: 1000,
maxLength: 10000,
},
thumb: {
type: 'blob',
Expand Down Expand Up @@ -4810,17 +4806,12 @@ export const schemaDict = {
},
title: {
type: 'string',
maxGraphemes: 300,
maxLength: 3000,
},
description: {
type: 'string',
maxGraphemes: 1000,
maxLength: 10000,
},
thumb: {
type: 'string',
format: 'uri',
},
},
},
Expand Down Expand Up @@ -4856,8 +4847,6 @@ export const schemaDict = {
},
alt: {
type: 'string',
maxGraphemes: 5000,
maxLength: 50000,
},
aspectRatio: {
type: 'ref',
Expand Down Expand Up @@ -4901,16 +4890,12 @@ export const schemaDict = {
properties: {
thumb: {
type: 'string',
format: 'uri',
},
fullsize: {
type: 'string',
format: 'uri',
},
alt: {
type: 'string',
maxGraphemes: 5000,
maxLength: 50000,
},
aspectRatio: {
type: 'ref',
Expand Down
15 changes: 0 additions & 15 deletions packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4775,13 +4775,9 @@ export const schemaDict = {
},
title: {
type: 'string',
maxGraphemes: 300,
maxLength: 3000,
},
description: {
type: 'string',
maxGraphemes: 1000,
maxLength: 10000,
},
thumb: {
type: 'blob',
Expand Down Expand Up @@ -4810,17 +4806,12 @@ export const schemaDict = {
},
title: {
type: 'string',
maxGraphemes: 300,
maxLength: 3000,
},
description: {
type: 'string',
maxGraphemes: 1000,
maxLength: 10000,
},
thumb: {
type: 'string',
format: 'uri',
},
},
},
Expand Down Expand Up @@ -4856,8 +4847,6 @@ export const schemaDict = {
},
alt: {
type: 'string',
maxGraphemes: 5000,
maxLength: 50000,
},
aspectRatio: {
type: 'ref',
Expand Down Expand Up @@ -4901,16 +4890,12 @@ export const schemaDict = {
properties: {
thumb: {
type: 'string',
format: 'uri',
},
fullsize: {
type: 'string',
format: 'uri',
},
alt: {
type: 'string',
maxGraphemes: 5000,
maxLength: 50000,
},
aspectRatio: {
type: 'ref',
Expand Down

0 comments on commit 5560b7a

Please sign in to comment.