# generated by datamodel-codegen:
#   filename:  modular.yaml

from __future__ import annotations

from enum import Enum

from pydantic import AnyUrl, BaseModel, Field, RootModel

from . import models


class Pets(RootModel[list[models.Pet]]):
    root: list[models.Pet]


class Users(RootModel[list[models.User]]):
    root: list[models.User]


class Rules(RootModel[list[str]]):
    root: list[str]


class Stage(Enum):
    test = "test"
    dev = "dev"
    stg = "stg"
    prod = "prod"


class Api(BaseModel):
    apiKey: str | None = Field(None, description="To be used as a dataset parameter value")
    apiVersionNumber: str | None = Field(None, description="To be used as a version parameter value")
    apiUrl: AnyUrl | None = Field(None, description="The URL describing the dataset's fields")
    apiDocumentationUrl: AnyUrl | None = Field(None, description="A URL to the API console for each API")
    stage: Stage | None = None


class Apis(RootModel[list[Api]]):
    root: list[Api]