frictionlessdata / frictionless-py

Data management framework for Python that provides functionality to describe, extract, validate, and transform tabular data
https://framework.frictionlessdata.io
MIT License
710 stars 148 forks source link

Which JSON Schema Validation Properties Are Supported by Frictionless? #1700

Open megin1989 opened 4 days ago

megin1989 commented 4 days ago

Hello Frictionless Team,

I'm exploring schema validation in frictionless and would like to know more about the JSON Schema validation properties it currently supports. Specifically, could you confirm if the following properties are supported, or if there are additional ones beyond this list?

Type Validation (type) - e.g., string, integer, etc. Required Fields (required) - specifying fields that must be present Enum (enum) - restricting fields to specific, predefined values Pattern (pattern) - regular expression matching for string fields Format (format) - e.g., date, time, email Minimum and Maximum (minimum and maximum) - range constraints for numeric values Min and Max Length (minLength and maxLength) - string length constraints Unique Items (uniqueItems) - ensuring array items are unique Multiple Of (multipleOf) - enforcing values as multiples of a specified number Dependencies (dependencies) - requiring fields based on the presence or values of others Properties (properties) - defining nested structures for JSON objects AllOf, AnyOf, OneOf (allOf, anyOf, oneOf) - complex conditional validations Const (const) - enforcing a constant value for a field If-Then-Else (if, then, else) - conditional logic based on field values

If there are other JSON Schema validation properties supported beyond those listed here, or if there are limitations for certain properties, could you please provide details?

Thank you for your guidance and support!

megin1989 commented 19 hours ago

Hello, I wanted to kindly follow up on this ticket. Please let me know if any updates or additional information are needed from me. Thank you for your time and support!

pierrecamilleri commented 8 hours ago

To be sure, is your question concerning the conversion of a JSON Schema to a Table Schema ?

For validating JSON data, frictionless supports the validation of JSON tables, with table schema, not with json schema.