Info
This class provides metadata about the API, including its title, version, and contact information. It supports optional fields for a summary, detailed description, terms of service, and licensing details to ensure comprehensive documentation. The class inherits from a base model configuration to facilitate structured data validation and serialization.
Attributes
| Attribute | Type | Description |
|---|---|---|
| title | str | The title of the API application. |
| summary | `str | None` = null |
| description | `str | None` = null |
| termsOfService | `str | None` = null |
| contact | `Contact | None` = null |
| license | `License | None` = null |
| version | str | The version of the OpenAPI document. |
Constructor
Signature
def Info(
title: str,
summary: str | None = None,
description: str | None = None,
termsOfService: str | None = None,
contact: Contact | None = None,
license: License | None = None,
version: str
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| title | str | The title of the application. |
| summary | `str | None` = None |
| description | `str | None` = None |
| termsOfService | `str | None` = None |
| contact | `Contact | None` = None |
| license | `License | None` = None |
| version | str | The version of the OpenAPI document. |