From f59efb75785c706f307c2438b4f727384b406e91 Mon Sep 17 00:00:00 2001 From: rdmurphy Date: Wed, 15 Jan 2025 08:03:50 +0000 Subject: [PATCH] spec/api.json updated --- lexicons/com/atproto/lexicon/schema.json | 21 +++++++++++++++++++++ spec/api.json | 14 ++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 lexicons/com/atproto/lexicon/schema.json 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" },