Search Engine Serilizer Pydantic
search_engine_serializer_pydantic · OCA/search-engine
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module is a technical module that define a new abstract class named
PydandicModelSerializer that inherit from
odoo.addons.connector_search_engine.tools.serializer.ModelSerializer
This new class define a new abstract method get_model_class. This method is used by
the index to get the Pydantic model class to use to generate the json schema.
On the index form, if the serializer is a PydanticModelSerializer, a field is
displayed to display the related json schema and therefore provide documentation about
the fields exported and their characteristics.
Dependencies
- Odoo dependencies
- Python dependencies
- pydantic, typing-extensions, unidecode, requests, contextvars, pydantic>=2.0.0
- System dependencies
- None
- Required by
- oca_search_engine
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
se_index_form_view |
se.index.form | se.index | form | Inherits connector_search_engine.se_index_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
-
is_pydantic_serializerBooleancompute='_compute_is_pydantic_serializer'store=Falsestring='Is a Serializer based on Pydantic Model?' -
record_json_schemaSerializedcompute='_compute_record_json_schema'store=Falsestring='JSON Schema of a record stored in this index (as dict)' -
record_json_schema_strCharcompute='_compute_record_json_schema'store=Falsestring='JSON Schema of a record stored in this index'
No public methods.
Loading…