Schema error: constraint "maxLength" is not supported by type "any" #630
Replies: 3 comments 3 replies
-
so this is at minimum a breaking change in behaviour between the different versions, that wasn't part of the release notes. I still think this is a bug, because there is nothing preventing I m not sure why this has been moved to discussion, but didn't warrant a response? Is the documentation outdated and wrong, is the new behaviour intended, or is this an implemementation bug? |
Beta Was this translation helpful? Give feedback.
-
Hi, can you please post the whole Table Schema? Also, the current |
Beta Was this translation helpful? Give feedback.
-
@duncdrum Previously this kind of field (e.g. |
Beta Was this translation helpful? Give feedback.
-
Hi,
after our project failed the automatic validation, according to the properties of constraints on the Table Schema section in Frictionless Data Specs, I replaced "max-length" with "maxLength", "min-length" with "minLength". Then I tried to validate our data again but manually this time with
frictionless validate csv/datapackage.json
, still, got many error messages, for example:I am using the frictionless version
3.45.5
on macOs10.15.4
.It is said
A constraints descriptor MUST be a JSON object and MAY contain one or more of the following properties
with a table including properties likeminLength
,maxLength
,pattern
. Meanwhile, on the same webpage, it is said that forany
,Any type or format is accepted. When converting from physical to logical representation, the behaviour should be similar to String field type.
I have three questions:
type "any"
?constrains
has atype
property? For example,"constraints": {"required": true,"type": "http://www.w3.org/2001/XMLSchema#date"}
.#readchina/ReadAct#447
Beta Was this translation helpful? Give feedback.
All reactions