{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CharacterCard",
  "type": "object",
  "required": [
    "header",
    "name",
    "identity",
    "personality",
    "values",
    "boundaries",
    "style",
    "initial_relationship",
    "judgment_rules",
    "skills",
    "default_expression"
  ],
  "properties": {
    "header": {
      "$ref": "resource-header.schema.json"
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "identity": {
      "type": "string",
      "minLength": 1
    },
    "personality": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "values": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "boundaries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "style": {
      "type": "object"
    },
    "initial_relationship": {
      "type": "object"
    },
    "judgment_rules": {
      "type": "array"
    },
    "skills": {
      "type": "array"
    },
    "default_expression": {
      "type": "string"
    }
  }
}
