Adds Docs for Array, Bool and Numeric

This commit is contained in:
2025-06-20 23:12:33 -03:00
parent 249195ff26
commit b92cf37145
4 changed files with 242 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
Bool Types
=================
The Bool type has no specific properties, it has only the generic properties:
- default: Default value for the string.
- description: Description of the string field.
Examples
-----------------
.. code-block:: python
from jambo import SchemaConverter
schema = {
"title": "BoolExample",
"type": "object",
"properties": {
"is_active": {
"type": "boolean",
},
},
"required": ["is_active"],
}
Model = SchemaConverter.build(schema)
obj = Model(is_active=True)
print(obj) # Output: BoolExample(is_active=True)