attrs#
- class litestar.plugins.attrs.AttrsSchemaPlugin#
Bases:
OpenAPISchemaPluginProtocol
- static is_plugin_supported_type(value: Any) bool #
Given a value of indeterminate type, determine if this value is supported by the plugin.
- Parameters:
value¶ – An arbitrary value.
- Returns:
A typeguard dictating whether the value is supported by the plugin.
- to_openapi_schema(field_definition: FieldDefinition, schema_creator: SchemaCreator) Schema #
Given a type annotation, transform it into an OpenAPI schema class.