question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to use validate in frictionless 5

See original GitHub issue

Hi, using frictionless 4 if I run

frictionless validate ./info.yml --path input.csv

I have right validation output.

If I use the same command using the 5 version, it validates not the csv file, it validates the yml one.

# -----
# valid: ./info.yml (non-tabular)
# -----

## Summary

+--------------+---------------+
| Name         | Value         |
+==============+===============+
| File Place   | ./info.yml    |
+--------------+---------------+
| File Size    | 1.4 kB        |
+--------------+---------------+
| Total Time   | 0.414 Seconds |
+--------------+---------------+
| Rows Checked |               |
+--------------+---------------+

Am I doing something wrong? How to validate a file using an yml descriptor file?

Thank you

Files

id,Comune,temperatura_corporea,area,email,data
1,Cefalu',36.26,,info@email.it,12/27/2022
7,Santa Flavia,-28,,posta@emailit,12/2/2022
path: input_01_fd.csv
encoding: utf-8
name: input
profile: tabular-data-resource
format: csv
hashing: md5
dialect:
  delimiter: ","
schema:
  missingValues: ["NaN","-",""]
  fields:
    - name: id
      title: "Identificativo"
      description: "Codice univoco identificativo"
      type: integer
      constraints:
        required: true
        unique: true
      example: 1
    - name: Comune
      title: "Comune"
      description: "Nome del Comune in cui si è svolta la misurazione"
      type: string
      example: "Trieste"
    - name: temperatura_corporea
      title: "Temperatura corporea"
      description: "Valore in grado Celsius della temperatura corporea"
      type: number
      constraints:
        minimum: 34
      example: 36.12
    - name: area
      title: "Area"
      description: "Area geografica in una delle seguenti categorie: Nord, Centro, Sud"
      type: any
      constraints:
        enum:
          - Nord
          - Centro
          - Sud
      example: "Nord"
    - name: email
      title: "Indirizzo email"
      description: "Indirizzo email del soggetto"
      type: string
      format: email
      example: "esempio@tin.it"
    - name: data
      title: "Data misurazione"
      description: "Data in cui è stata effettuata la misurazione, nel formato YYYY-MM-DD"
      type: date
      format: default
      example: "2022-12-31"

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aborrusocommented, Nov 17, 2022

Can you please try this:

frictionless validate info.yaml --path input.csv

this works. In v5 ‘yml’ extension is not supported.

Ok, it works, thank you very much. Wouldn’t it be better to also enable the three-character extension, since that’s the more standard way to save a file?

1reaction
aborrusocommented, Nov 16, 2022

Sorry for not being able to reply quickly. I will check and reply asap, hopefully by tomorrow.

You don’t have to apologize. I would like to switch to version 5, but if I can’t validate, I have to stay on 4. It also seems to me a problem that - if confirmed - is important.

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validating Data - Frictionless Framework
Tabular data validation is a process of identifying problems that have occured in your data so you can correct them.
Read more >
Validate against external profile · Issue #618 - GitHub
Overview I want to validate my package against an external profile that is an extension of tabular-data-package.
Read more >
goodtables - PyPI
goodtables-py ... Goodtables is a framework to validate tabular data. It can check the structure of your data (e.g. all rows have the...
Read more >
A Short Case Study Involving Table Schema Frictionless ...
Using simple JSON objects, Frictionless specifications allowed the ITB to enforce data validation in multiple ways as can be observed from ...
Read more >
Announcing the New Frictionless Framework
If your project is using this code, these changes are not breaking and there is no ... Frictionless generates a unified validation report, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found