-
-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
Would a PR be accepted that modified fastjsonschema to validate a tuple object as an array? Possible as an optional behavior?
The array validation function here https://github.com/horejsek/python-fastjsonschema/blob/master/fastjsonschema/generator.py#L275 only accepts a list, and I have a situation where I have data structures coming in from httpapi endpoints and custom RPC endpoints; and the RPC endpoints have all their array objects deserialized as tuples; so currently i'm having to wrap the fastjsonschema callable objects with a function that will recursively list-ify all values I pass in for validation.
This is similar to python-jsonschema/jsonschema#148
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels