Skip to content

Support for validating tuples as arrays? #87

@vEpiphyte

Description

@vEpiphyte

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions