etalab / schema-irve

TableSchema pour les Infrastructures de Recharge de Véhicules Electriques (IRVE)
10 stars 10 forks source link

Assouplissement du schéma sur le formatage des identifiants #51

Closed thbar closed 7 months ago

thbar commented 7 months ago

Voir:

Tâches

Logs de reproduction du bug

# -------
# invalid: statique/exemple-valide-statique.csv 
# -------

## Summary 

+-------------------------------------+--------------------------------------+
| Description                         | Size/Name/Count                      |
+=====================================+======================================+
| File name                           | statique/exemple-valide-statique.csv |
+-------------------------------------+--------------------------------------+
| File size (KB)                      | 1648                                 |
+-------------------------------------+--------------------------------------+
| Total Time Taken (sec)              | 0.027                                |
+-------------------------------------+--------------------------------------+
| Total Errors                        | 2                                    |
+-------------------------------------+--------------------------------------+
| Constraint Error (constraint-error) | 2                                    |
+-------------------------------------+--------------------------------------+

## Errors 

+-------+---------+------------+---------------------------------------------------+
|   row |   field | code       | message                                           |
+=======+=========+============+===================================================+
|     3 |       8 | constraint | The cell "ESZUNP395912133460086982" in row at     |
|       |         | -error     | position "3" and field "id_station_itinerance" at |
|       |         |            | position "8" does not conform to a constraint:    |
|       |         |            | constraint "pattern" is                           |
|       |         |            | "(?:(?:^|,)(^FR[A-Z0-9]{4,33}$|Non concerné))+$"  |
+-------+---------+------------+---------------------------------------------------+
|     3 |      16 | constraint | The cell "ESZUNE1111ER7" in row at position "3"   |
|       |         | -error     | and field "id_pdc_itinerance" at position "16"    |
|       |         |            | does not conform to a constraint: constraint      |
|       |         |            | "pattern" is "(?:(?:^|,)(^FR[A-Z0-9]{4,33}$|Non   |
|       |         |            | concerné))+$"                                     |
+-------+---------+------------+---------------------------------------------------+

# -------
# invalid: dynamique/exemple-valide-dynamique.csv 
# -------

## Summary 

+-------------------------------------+----------------------------------------+
| Description                         | Size/Name/Count                        |
+=====================================+========================================+
| File name                           | dynamique/exemple-valide-dynamique.csv |
+-------------------------------------+----------------------------------------+
| File size (bytes)                   | 327                                    |
+-------------------------------------+----------------------------------------+
| Total Time Taken (sec)              | 0.008                                  |
+-------------------------------------+----------------------------------------+
| Total Errors                        | 1                                      |
+-------------------------------------+----------------------------------------+
| Constraint Error (constraint-error) | 1                                      |
+-------------------------------------+----------------------------------------+

## Errors 

+-------+---------+------------+----------------------------------------------------+
|   row |   field | code       | message                                            |
+=======+=========+============+====================================================+
|     3 |       1 | constraint | The cell "ESZUNE1111ER7" in row at position "3"    |
|       |         | -error     | and field "id_pdc_itinerance" at position "1" does |
|       |         |            | not conform to a constraint: constraint "pattern"  |
|       |         |            | is "^FR[A-Z0-9]{4,33}$"                            |
+-------+---------+------------+----------------------------------------------------+
thbar commented 7 months ago

Comme souvent sur ce projet, je bypass la review pour aller faire la livraison.