MarketSquare / roboswag

Apache License 2.0
26 stars 2 forks source link

Add validate schema utils #46

Closed bhirsz closed 2 years ago

bhirsz commented 2 years ago

Moved validate schema to separate class. It's starting point to having all validations done in respective classes.

Also added unit tests - we're kind of testing not only our validate schema method but also jsonschema validate functionality as well (if they broke something, we should be able to catch it).

Partly implements #41

bhirsz commented 2 years ago

self.validate.schema accepts also path to the file - I will describe this in the documentation so the users could replace our embedded schemas with files if they want to (it will be done automatically once #41 is completed but that's in the future).