Module userland.web.schema.chat
Chat schema
Classes
class ChatPost (**data: Any)
-
Posted chat message
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Expand source code
class ChatPost(BaseModel): """Posted chat message""" message: str """The message body""" token: str """The client's CSRF token"""
Ancestors
- pydantic.main.BaseModel
Class variables
var message : str
-
The message body
var model_computed_fields
var model_config
var model_fields
var token : str
-
The client's CSRF token
class ChatToken (**data: Any)
-
CSRF token
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Expand source code
class ChatToken(BaseModel): """CSRF token""" token: str """The token value"""
Ancestors
- pydantic.main.BaseModel
Class variables
var model_computed_fields
var model_config
var model_fields
var token : str
-
The token value