Skip to content

Service

This page documents the core Service class used to define service metadata and configuration.

Service

Bases: BaseModel

Source code in ivcap_service/service.py
class Service(BaseModel):
    name: str = Field(description="name of the service")
    version: str | None = Field(
        default=os.environ.get("VERSION", "???"), description="version of the service"
    )
    contact: ServiceContact = Field(description="contact details of the service")
    license: ServiceLicense | None = Field(
        default=None, description="license of the service"
    )