Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
megin1989 opened this issue Nov 1, 2024 · 3 comments
Open

Comments

@megin1989
Copy link

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
Copy link
Author

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
Copy link
Collaborator

pierrecamilleri commented Nov 5, 2024

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.

@megin1989
Copy link
Author

Thank you for the clarification!

To better understand Frictionless validation capabilities, could you please specify which validation rules are supported by the Table Schema? I’m particularly interested in knowing if Table Schema supports validation rules like type, required, enum, pattern, format, and any others available.

If there’s a reference or documentation link that lists all the supported properties and their behavior in Table Schema, I would greatly appreciate it.

Thanks again for your guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants