mightstone.services.wotc.models.Ruleset

pydantic model mightstone.services.wotc.models.Ruleset

Show JSON schema
{
   "title": "Ruleset",
   "type": "object",
   "properties": {
      "rules": {
         "additionalProperties": {
            "$ref": "#/$defs/Rule"
         },
         "default": {},
         "title": "Rules",
         "type": "object"
      },
      "last_rule": {
         "anyOf": [
            {
               "$ref": "#/$defs/Rule"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "Rule": {
         "properties": {
            "ref": {
               "title": "Ref",
               "type": "string"
            },
            "text": {
               "title": "Text",
               "type": "string"
            },
            "examples": {
               "default": [],
               "items": {
                  "type": "string"
               },
               "title": "Examples",
               "type": "array"
            }
         },
         "required": [
            "ref",
            "text"
         ],
         "title": "Rule",
         "type": "object"
      }
   }
}

Fields:
field last_rule: Rule | None = None
field rules: Dict[str, Rule] = {}
index()
parse_text(value: str)
range(low: str, up: str | None = None)
search(string: str)