-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1610 unexpected field-error related to a well-formatted value ex…
…ample of a schema's boolean field using frictionless validate (#1615) - fixes #1610 This PR fixes the `field-error` which occured doing `frictionless validate data.csv --schema schema.json` with a `TableSchema` `schema` containing a `BooleanField` customised with 'trueValues' or 'falseValues' and 'example' value , for example: ``` schema.json ---- { "$schema": "https://frictionlessdata.io/schemas/table-schema.json", "fields": [ { "name": "IsTrue", "type": "boolean", "trueValues": ["yes"], "falseValues": ["no"], "example": "yes" } ] } ``` ``` data.csv ---- isTrue yes no ``` This PR add tests cases to ensure that example value is correctly evaluated according to customized 'trueValues' or 'falseValues', as expected. --------- Co-authored-by: Pierre Camilleri <[email protected]>
- Loading branch information
1 parent
7861f0e
commit 8b17d59
Showing
2 changed files
with
78 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters