{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "What Jeff offers, the /services/ page, and what clients said. One record, key 'self'.",
      "key": "literal:self",
      "record": {
        "properties": {
          "services": {
            "description": "In the order they're shown.",
            "items": {
              "ref": "#service",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "testimonials": {
            "items": {
              "ref": "#testimonial",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "services",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "service": {
      "properties": {
        "category": {
          "description": "Picks the service's icon, e.g. 'infrastructure'.",
          "knownValues": [
            "infrastructure",
            "devops",
            "automation",
            "consulting",
            "web",
            "observability"
          ],
          "maxGraphemes": 50,
          "maxLength": 500,
          "type": "string"
        },
        "description": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "features": {
          "description": "Shown as bullet points.",
          "items": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "maxLength": 10,
          "type": "array"
        },
        "name": {
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "name",
        "description"
      ],
      "type": "object"
    },
    "testimonial": {
      "properties": {
        "author": {
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        },
        "quote": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "rating": {
          "maximum": 5,
          "minimum": 1,
          "type": "integer"
        },
        "role": {
          "description": "e.g. 'CTO, Kwikku Interactive'.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        },
        "service": {
          "description": "The name of the service it's about.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "quote",
        "author",
        "rating"
      ],
      "type": "object"
    }
  },
  "id": "id.skiddle.services",
  "lexicon": 1
}
