Skip to content
Snippets Groups Projects
Commit d5c9243c authored by Maja Jablonska's avatar Maja Jablonska
Browse files

Add serialization guide to the docs

parent bb4757a5
Branches
Tags
1 merge request!46Merge COMBO 3.0 into master
# Configuration
Dependency injection is used for configuration using the ```dependency_injector``` package.
Configuration files can be in json or ini format.
\ No newline at end of file
Models can be serialized as a ```json``` file with the following structure:
```json
{
"model": {
"type": <model_type>,
"parameters": {
<parameter_name>: {
"type": <class_name>,
"parameters": {...}
}
}
}
}
```
The ```"type"``` field serves as a dependency-injection like mechanism and
sets which class and constructor is used.
The ```"parameters"``` dictionary is passed to the constructor method. Every
parameter is attempted to be resolved from the class registry and only if that's
not possible they are passed as-is.
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment