xyz.flatshcards.cards

Repository @flatshcards.xyz did:plc:5g5vtukf37g77dhfbvbrzrgy namespace authority
Details · defs
Kinddefs
Authorityflatshcards.xyz
Indexed
cid bafyreib4jvawxmweec2rjp2eyrcslbq4kdinm46qzemimftd5bxq6dkv7u

Checks

  • defs.card: a record can only be the main def
  • defs.stack: a record can only be the main def
  • Invalid schema structure: primary type definition 'card' must be named 'main'
  • missing-primary-description defs.cardThe record has no description.
  • missing-primary-description defs.stackThe record has no description.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "card": {
      "key": "tid",
      "record": {
        "description": "a single flashcard",
        "properties": {
          "backLang": {
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "backText": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "frontLang": {
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "frontText": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "stackId": {
            "format": "record-key",
            "type": "string"
          }
        },
        "required": [
          "backLang",
          "backText",
          "createdAt",
          "frontLang",
          "frontText",
          "stackId"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "stack": {
      "key": "tid",
      "record": {
        "description": "a stack of flashcards",
        "properties": {
          "backLang": {
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "frontLang": {
            "default": "en",
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "label": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "label"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "xyz.flatshcards.cards",
  "lexicon": 1
}