diff --git a/lexicons/com/atproto/lexicon/schema.json b/lexicons/com/atproto/lexicon/schema.json new file mode 100644 index 0000000..e79337b --- /dev/null +++ b/lexicons/com/atproto/lexicon/schema.json @@ -0,0 +1,21 @@ +{ + "lexicon": 1, + "id": "com.atproto.lexicon.schema", + "defs": { + "main": { + "type": "record", + "description": "Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc).", + "key": "nsid", + "record": { + "type": "object", + "required": ["lexicon"], + "properties": { + "lexicon": { + "type": "integer", + "description": "Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system." + } + } + } + } + } +} diff --git a/spec/api.json b/spec/api.json index c30215e..09f2510 100644 --- a/spec/api.json +++ b/spec/api.json @@ -28257,6 +28257,17 @@ } } }, + "com.atproto.lexicon.schema": { + "type": "object", + "required": [ + "lexicon" + ], + "properties": { + "lexicon": { + "type": "integer" + } + } + }, "com.atproto.moderation.defs.reasonType": { "oneOf": [ { @@ -30281,6 +30292,9 @@ { "name": "com.atproto.label" }, + { + "name": "com.atproto.lexicon" + }, { "name": "com.atproto.moderation" },