json_defs.requests package#
Submodules#
json_defs.requests.json_request_body_defs module#
Json request body module.
This module contains class definitions for entities representing json request body content at api endpoints.
- class json_defs.requests.json_request_body_defs.SetUpChatRequestBody(*, chat_title: str, chat_context: str, chat_number_of_users: int)[source]#
Bases:
BaseModel
Class definition for new chat request body contents.
- chat_context: str#
- chat_number_of_users: int#
- chat_title: str#
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'chat_context': FieldInfo(annotation=str, required=True), 'chat_number_of_users': FieldInfo(annotation=int, required=True), 'chat_title': FieldInfo(annotation=str, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.