|
798af31064
|
Merge pull request #1548 from dmach/xml-edit-comments
Add comments with attributes/elements to edited XML
|
2024-05-09 21:56:35 +02:00 |
|
|
3c096b82c9
|
Update XmlModel.xml_request() to accept also headers argument
|
2024-04-26 22:14:16 +02:00 |
|
|
7a67786ba4
|
Add comments with attributes/elements to edited XML
|
2024-04-25 13:14:03 +02:00 |
|
|
eb2678e0c7
|
Fix XmlModel to load an empty string in an int field as None
|
2024-04-17 10:57:59 +02:00 |
|
|
3cfeda45ba
|
Remove now unused 'retry_on_400' http_request() option from XmlModel
|
2024-03-12 17:33:41 +01:00 |
|
|
9004d5a5ba
|
Replace invalid 'if' with 'elif' in BaseModel.dict()
|
2024-03-05 16:45:52 +01:00 |
|
|
36dd0401ee
|
Remove a debug print
|
2024-03-05 15:50:44 +01:00 |
|
|
cd95478ac8
|
Implement total ordering on BaseModel
|
2024-03-04 15:00:12 +01:00 |
|
|
747eb0ec52
|
Allow storing apiurl in the XmlModel instances
|
2024-03-04 14:58:40 +01:00 |
|
|
9cce6dbb8e
|
Allow retrieving default field value from top-level model
|
2024-03-04 14:58:40 +01:00 |
|
|
4e928a4505
|
Fix processed node check in XmlModel
|
2024-02-29 09:26:28 +01:00 |
|
|
7768684461
|
Fix BaseModel to convert dictionaries to objects on retrieving a model list
|
2024-02-23 13:14:04 +01:00 |
|
|
acc54919fc
|
Fix BaseModel to always deepcopy mutable defaults on first use
|
2024-02-23 13:14:04 +01:00 |
|
|
ab36108871
|
Implement do_snapshot() and has_changed() methods to determine changes in BaseModel
|
2024-02-21 09:46:53 +01:00 |
|
|
e5774a5730
|
Add XmlModel class that encapsulates manipulation with XML
|
2024-02-21 09:46:53 +01:00 |
|
|
8a38a9da82
|
Implement get_callback that allows modifying returned value to the Field class
|
2024-01-24 15:47:37 +01:00 |
|
|
7903ade2b4
|
Add support for List[BaseModel] type to Field class
|
2024-01-23 20:05:38 +01:00 |
|
|
ea0bf1bb60
|
Report class name when reporting an error during instantiating BaseModel object
|
2024-01-23 20:05:33 +01:00 |
|
|
b4a1b29f57
|
Fix exporting an empty model field in BaseModel.dict()
|
2024-01-23 20:05:28 +01:00 |
|
|
3baeb4b64e
|
Fix initializing a sub-model instance from a dictionary
|
2024-01-23 20:05:24 +01:00 |
|
|
35433fc341
|
Implement 'Enum' support in models
|
2024-01-23 20:05:17 +01:00 |
|
|
86e06a341f
|
Fix Field.origin_type for Optional types
|
2024-01-23 20:05:11 +01:00 |
|
|
b8d6c949c9
|
Drop unused 'exclude_unset' argument from BaseModel.dict() method
|
2024-01-04 10:20:58 +01:00 |
|
|
16cdc067a5
|
Store cached model defaults in self._defaults, avoid sharing references to mutable defaults
|
2024-01-03 21:22:30 +01:00 |
|
|
587c094f61
|
Limit model attributes to predefined fields by forbidding creating new attributes on fly
|
2024-01-03 21:21:38 +01:00 |
|
|
3c733387af
|
Store model values in self._values dict instead of private attributes
|
2024-01-03 21:21:29 +01:00 |
|
|
608fc76cd2
|
docs: Update models to avoid including lazy defaults in the rendered man pages
Lazy defaults may return different results under different circumstances
and we always want man pages rendered consistently.
|
2023-12-01 16:22:13 +01:00 |
|
|
930b7a8a4e
|
Add 'osc.util.models' module implementing an alternative pydantic-like data validation
|
2023-09-11 21:11:05 +02:00 |
|