{
  "$defs": {
    "__schema0": {
      "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
      "title": "EntityId",
      "type": "string"
    },
    "__schema1": {
      "minLength": 1,
      "type": "string"
    },
    "__schema10": {
      "anyOf": [
        {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "type": "string"
            }
          ]
        },
        {
          "additionalProperties": false,
          "properties": {
            "$message": {
              "pattern": "^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)+$",
              "title": "NamedMessageKey",
              "type": "string"
            }
          },
          "required": [
            "$message"
          ],
          "type": "object"
        }
      ]
    },
    "__schema11": {
      "items": {
        "minLength": 1,
        "type": "string"
      },
      "type": "array"
    },
    "__schema2": {
      "type": "string"
    },
    "__schema3": {
      "items": {
        "$ref": "#/$defs/__schema4"
      },
      "minItems": 1,
      "type": "array"
    },
    "__schema4": {
      "enum": [
        "room",
        "character",
        "interactable",
        "feature"
      ],
      "type": "string"
    },
    "__schema5": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "defaultValue": {
            "$ref": "#/$defs/__schema10"
          },
          "description": {
            "$ref": "#/$defs/__schema7"
          },
          "enumValues": {
            "$ref": "#/$defs/__schema11"
          },
          "id": {
            "$ref": "#/$defs/__schema0"
          },
          "label": {
            "$ref": "#/$defs/__schema6"
          },
          "nullable": {
            "$ref": "#/$defs/__schema9"
          },
          "type": {
            "$ref": "#/$defs/__schema8"
          }
        },
        "required": [
          "id",
          "type",
          "nullable"
        ],
        "type": "object",
        "x-noveltea-documentation": {
          "notes": [
            "Omitting defaultValue leaves a Property requirement. Reusable configuration may leave that requirement unresolved, but a concrete gameplay owner or Interactable Instance must resolve an effective compatible value before publication."
          ]
        }
      },
      "type": "array"
    },
    "__schema6": {
      "minLength": 1,
      "type": "string"
    },
    "__schema7": {
      "type": "string"
    },
    "__schema8": {
      "enum": [
        "boolean",
        "integer",
        "number",
        "string",
        "enum",
        "message"
      ],
      "type": "string"
    },
    "__schema9": {
      "type": "boolean"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {
    "additionalProperties": false,
    "properties": {
      "description": {
        "$ref": "#/$defs/__schema2"
      },
      "id": {
        "$ref": "#/$defs/__schema0"
      },
      "label": {
        "$ref": "#/$defs/__schema1"
      },
      "ownerKinds": {
        "$ref": "#/$defs/__schema3"
      },
      "properties": {
        "$ref": "#/$defs/__schema5"
      }
    },
    "required": [
      "id",
      "label",
      "ownerKinds",
      "properties"
    ],
    "type": "object",
    "x-noveltea-documentation": {
      "constraints": [
        "When multiple attached Traits contribute the same Property ID, their Property schemas must be compatible.",
        "When multiple attached Traits provide a Default for the same Property ID, those Defaults must agree exactly.",
        "Reusable definitions and Archetypes may leave no-Default Trait requirements unresolved; concrete gameplay owners and Interactable Instances must resolve every required Property before publication."
      ]
    }
  },
  "default": {},
  "propertyNames": {
    "$ref": "#/$defs/__schema0"
  },
  "type": "object"
}
