{
  "version": 1,
  "format": "json",
  "kind": "generation",
  "output": "<OUTPUT_DIR>",
  "files": [
    {
      "path": "__init__.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom ._internal import DifferentTea, Error, Id, Optional, Result, Source\n\n__all__ = [\"DifferentTea\", \"Error\", \"Id\", \"Optional\", \"Result\", \"Source\"]\n"
    },
    {
      "path": "_internal.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  _internal\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom __future__ import annotations\n\nfrom pydantic import BaseModel, RootModel\n\nfrom . import models\n\n\nclass Optional(RootModel[str]):\n    root: str\n\n\nclass Id(RootModel[str]):\n    root: str\n\n\nclass Error(BaseModel):\n    code: int\n    message: str\n\n\nclass Result(BaseModel):\n    event: models.Event | None = None\n\n\nclass Source(BaseModel):\n    country: str | None = None\n\n\nclass DifferentTea(BaseModel):\n    foo: Tea | None = None\n    nested: Tea_1 | None = None\n\n\nclass Tea(BaseModel):\n    flavour: str | None = None\n    id: Id | None = None\n\n\nclass Cocoa(BaseModel):\n    quality: int | None = None\n\n\nclass Tea_1(BaseModel):\n    flavour: str | None = None\n    id: Id | None = None\n    self: Tea_1 | None = None\n    optional: list[Optional] | None = None\n\n\nclass TeaClone(BaseModel):\n    flavour: str | None = None\n    id: Id | None = None\n    self: Tea_1 | None = None\n    optional: list[Optional] | None = None\n\n\nclass List(RootModel[list[Tea_1]]):\n    root: list[Tea_1]\n\n\nTea_1.model_rebuild()\n"
    },
    {
      "path": "bar.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom __future__ import annotations\n\nfrom pydantic import Field, RootModel\n\n\nclass FieldModel(RootModel[str]):\n    root: str = Field(..., examples=['green'])\n"
    },
    {
      "path": "collections.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom __future__ import annotations\n\nfrom enum import Enum\n\nfrom pydantic import AnyUrl, BaseModel, Field, RootModel\n\nfrom . import models\n\n\nclass Pets(RootModel[list[models.Pet]]):\n    root: list[models.Pet]\n\n\nclass Users(RootModel[list[models.User]]):\n    root: list[models.User]\n\n\nclass Rules(RootModel[list[str]]):\n    root: list[str]\n\n\nclass Stage(Enum):\n    test = 'test'\n    dev = 'dev'\n    stg = 'stg'\n    prod = 'prod'\n\n\nclass Api(BaseModel):\n    apiKey: str | None = Field(\n        None, description='To be used as a dataset parameter value'\n    )\n    apiVersionNumber: str | None = Field(\n        None, description='To be used as a version parameter value'\n    )\n    apiUrl: AnyUrl | None = Field(\n        None, description=\"The URL describing the dataset's fields\"\n    )\n    apiDocumentationUrl: AnyUrl | None = Field(\n        None, description='A URL to the API console for each API'\n    )\n    stage: Stage | None = None\n\n\nclass Apis(RootModel[list[Api]]):\n    root: list[Api]\n"
    },
    {
      "path": "foo/__init__.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom .._internal import Cocoa, Tea\n\n__all__ = [\"Cocoa\", \"Tea\"]\n"
    },
    {
      "path": "foo/bar.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom __future__ import annotations\n\nfrom typing import Any\n\nfrom pydantic import BaseModel\n\n\nclass Thing(BaseModel):\n    attributes: dict[str, Any] | None = None\n\n\nclass Thang(BaseModel):\n    attributes: list[dict[str, Any]] | None = None\n\n\nclass Others(BaseModel):\n    name: str | None = None\n\n\nclass Clone(Thing):\n    others: Others | None = None\n"
    },
    {
      "path": "models.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom __future__ import annotations\n\nfrom enum import Enum\nfrom typing import Any\n\nfrom pydantic import BaseModel\n\n\nclass Species(Enum):\n    dog = 'dog'\n    cat = 'cat'\n    snake = 'snake'\n\n\nclass Pet(BaseModel):\n    id: int\n    name: str\n    tag: str | None = None\n    species: Species | None = None\n\n\nclass User(BaseModel):\n    id: int\n    name: str\n    tag: str | None = None\n\n\nclass Event(BaseModel):\n    name: str | float | int | bool | dict[str, Any] | list[str] | None = None\n"
    },
    {
      "path": "nested/__init__.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n"
    },
    {
      "path": "nested/foo.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom .._internal import List\nfrom .._internal import Tea_1 as Tea\nfrom .._internal import TeaClone\n\n__all__ = [\"List\", \"Tea\", \"TeaClone\"]\n"
    },
    {
      "path": "woo/__init__.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n"
    },
    {
      "path": "woo/boo.py",
      "content": "# generated by datamodel-codegen:\n#   filename:  modular.yaml\n#   timestamp: 1985-10-26T08:21:00+00:00\n\nfrom __future__ import annotations\n\nfrom pydantic import BaseModel\n\nfrom .. import bar\nfrom .._internal import Cocoa, Source\n\n\nclass Chocolate(BaseModel):\n    flavour: str | None = None\n    source: Source | None = None\n    cocoa: Cocoa | None = None\n    field: bar.FieldModel | None = None\n"
    }
  ]
}
