We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When encoding this Datatable:
Datatable
{ "type": "Datatable", "columns": [ { "type": "DatatableColumn", "name": "species", "schema": { "items": { "type": "string", "enum": ["A", "B"] } }, "values": ["A", "B", "A"] }, { "type": "DatatableColumn", "name": "weight", "schema": { "items": { "type": "number", "minimum": 0, "maximum": 10 } }, "values": [1.2, 0.9, 1.4] } ] }
as tdp, the generated datapackage.json is missing the minimum constraint:
tdp
datapackage.json
minimum
{ "profile": "tabular-data-package", "name": "Unnamed", "resources": [ { "profile": "tabular-data-resource", "name": "Unnamed", "data": "species,weight\nA,1.2\nB,0.9\nA,1.4\n", "format": "csv", "mediatype": "text/csv", "encoding": "utf-8", "schema": { "fields": [ { "name": "species", "type": "string", "format": "default", "constraints": { "required": true, "enum": [ "A", "B" ] } }, { "name": "weight", "type": "number", "format": "default", "constraints": { "required": true, "maximum": 10 } } ], "missingValues": [ "" ] } } ] }
That is because we are using a non-boolean expression in the if here:
if
encoda/src/codecs/tdp/index.ts
Line 353 in 937e462
A good example of where @typescript-eslint/strict-boolean-expressions are useful, see stencila/dev-config#4.
@typescript-eslint/strict-boolean-expressions
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When encoding this
Datatable
:as
tdp
, the generateddatapackage.json
is missing theminimum
constraint:That is because we are using a non-boolean expression in the
if
here:encoda/src/codecs/tdp/index.ts
Line 353 in 937e462
A good example of where
@typescript-eslint/strict-boolean-expressions
are useful, see stencila/dev-config#4.The text was updated successfully, but these errors were encountered: