# generated by datamodel-codegen:
#   filename:  Policy.json

from __future__ import annotations

from typing import Any, Literal, Optional

from pydantic import BaseModel, ConfigDict


class Metadata(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    name: str
    intent: str
    category: Optional[str] = None
    severity: Optional[str] = None
    owner: Optional[str] = None


class Policy(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    kind: Literal['Policy']
    schema_version: str
    metadata: Metadata
    enforce: dict[str, Any]
