halogen icon indicating copy to clipboard operation
halogen copied to clipboard

Python HAL generation/parsing library

Results 6 halogen issues
Sort by recently updated
recently updated
newest added

Looking through the code it appears curies are initially constructed as a set() but subsequently converted to a plain list(). Therefore the order of curies is randomised. This not only...

Schema's are hierarchical, but we need to come up with somewhat more usable data structure than what ValidationError.to_dict() returns. It should be easy to associate the error with the field...

Added new: Enum type for python enum.Enum. OneOfValidator for validating value is in given set. Updated: All types, now more strict not accepting None's. (needs Nullable)

After dropping python 2 support in https://github.com/paylogic/halogen/pull/30 there is no more need for six and python 2 compatibility.

Validators `validate` mixed `validate` and `is_valid` approach and returned `True` if valid or raised an `Validation` exception. This PR refactors the validation code to just raising an exception and throwing...

An exception raised from [this line](https://github.com/paylogic/halogen/blob/master/halogen/types.py#L317) is not properly handled. In my particular case, this is `decimal.InvalidOperation` but I guess we should be prepared to handle anything as the amount...