Tags: flexiblepower/s2-python
Tags
Fix missing message id override in PPBC classes (#134) * message_id should be available in all ppbc messages, split up type of messages with a message id vs without and ensure that to_dict is json serializable. * Write S2Message and S2MessageWithID as type aliases. * Ensure that setuptools-scm and typing-extensions are available. * to_dict should take a mode and add some unit tests. * json.dumps should work for to_dict if mode is set to json * Split to_dict with json and python modes into separate functions. * Fix typo.
Leverage str, enum capability of Python for any generated enums (#133) * str_enum: Change generation of S2 specification to include the subclass of an enum. * str_enum: Exclude generated files from pyright check. * str_enum: ombc classes should be explicitely exported in init. * str_enum: add missing Any to dict type in S2Parser.
131: Move wrapping of pydantic exceptions for model validate, setattr… …, and model_validate_json to the S2MessageComponent mixin instead of wrapping it using the decorator to preserve classmethod on inheritence for model_validate. (#132) * 131: Move wrapping of pydantic exceptions for model validate, setattr, and model_validate_json to the S2MessageComponent mixin instead of wrapping it using the decorator to preserve classmethod on inheritence for model_validate. * 131: Add unit test case for inheritance of message.
fix: update pydantic requirement to allow higher versions (#76) * fix: update pydantic requirement to allow higher versions Signed-off-by: F.N. Claessen <[email protected]> * chore: release v0.4.1 Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]>
fix: correct version number Signed-off-by: F.N. Claessen <[email protected]>
PreviousNext