Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge 72ae40c into 2a2c0e6
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Feb 4, 2020
2 parents 2a2c0e6 + 72ae40c commit e1d265c
Show file tree
Hide file tree
Showing 16 changed files with 720 additions and 394 deletions.
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100
}
73 changes: 73 additions & 0 deletions data/report-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"error-count": 7,
"preset": "table",
"table-count": 1,
"tables": [
{
"encoding": null,
"error-count": 7,
"errors": [
{
"code": "schema-error",
"column-number": null,
"message": "Table Schema error: Descriptor validation error: {'name': None, 'type': 'integer', 'format': 'default'} is not valid under any of the given schemas at \"fields/1\" in descriptor and at \"properties/fields/items/anyOf\" in profile",
"row": null,
"row-number": null
},
{
"code": "schema-error",
"column-number": null,
"message": "Table Schema error: Descriptor validation error: {'name': None, 'type': 'number', 'format': 'default'} is not valid under any of the given schemas at \"fields/2\" in descriptor and at \"properties/fields/items/anyOf\" in profile",
"row": null,
"row-number": null
},
{
"code": "schema-error",
"column-number": null,
"message": "Table Schema error: Descriptor validation error: {'name': None, 'type': 'number', 'format': 'default'} is not valid under any of the given schemas at \"fields/3\" in descriptor and at \"properties/fields/items/anyOf\" in profile",
"row": null,
"row-number": null
},
{
"code": "schema-error",
"column-number": null,
"message": "Table Schema error: Descriptor validation error: {'name': None, 'type': 'string', 'format': 'default'} is not valid under any of the given schemas at \"fields/4\" in descriptor and at \"properties/fields/items/anyOf\" in profile",
"row": null,
"row-number": null
},
{
"code": "schema-error",
"column-number": null,
"message": "Table Schema error: Descriptor validation error: {'name': None, 'type': 'string', 'format': 'default'} is not valid under any of the given schemas at \"fields/5\" in descriptor and at \"properties/fields/items/anyOf\" in profile",
"row": null,
"row-number": null
},
{
"code": "schema-error",
"column-number": null,
"message": "Table Schema error: Descriptor validation error: {'name': None, 'type': 'any', 'format': 'default'} is not valid under any of the given schemas at \"fields/6\" in descriptor and at \"properties/fields/items/anyOf\" in profile",
"row": null,
"row-number": null
},
{
"code": "schema-error",
"column-number": null,
"message": "Table Schema error: Descriptor validation error: {'name': None, 'type': 'any', 'format': 'default'} is not valid under any of the given schemas at \"fields/7\" in descriptor and at \"properties/fields/items/anyOf\" in profile",
"row": null,
"row-number": null
}
],
"format": "xlsx",
"headers": null,
"row-count": 0,
"schema": "table-schema",
"scheme": "s3",
"source": "s3://submissions/test1/files/substrate.xlsx",
"time": 0.092,
"valid": false
}
],
"time": 0.093,
"valid": false,
"warnings": null
}
44 changes: 44 additions & 0 deletions data/report-short.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"error-count": 2,
"preset": "table",
"table-count": 1,
"tables": [
{
"encoding": "utf-8",
"error-count": 2,
"errors": [
{
"code": "blank-header",
"column-number": 5,
"message": "Header in column 5 is blank",
"message-data": {}
},
{
"code": "duplicate-row",
"message": "Row 6 is duplicated to row(s) 2",
"message-data": {
"row_numbers": "2"
},
"row-number": 6
}
],
"format": "csv",
"headers": [
"col1",
"col2",
"col3",
"col4",
""
],
"row-count": 8,
"schema": "table-schema",
"scheme": "s3",
"source": "test_errors.csv",
"time": 0.044,
"valid": false
}
],
"time": 0.102,
"valid": false,
"warnings": null
}
103 changes: 0 additions & 103 deletions data/report.json

This file was deleted.

103 changes: 103 additions & 0 deletions data/report1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"valid": false,
"time": 0.027,
"warnings": [
"Dataset inspection has reached 100 table(s) limit"
],
"tables": [
{
"valid": false,
"time": 0.02,
"errors": [
{
"message": "Header in column 3 is blank",
"column-number": 3,
"row": null,
"code": "blank-header",
"row-number": null
},
{
"message": "Header in column 4 is duplicated to header in column(s) 2",
"column-number": 4,
"row": null,
"code": "duplicate-header",
"row-number": null
},
{
"message": "Row 2 has a missing value in column 3",
"column-number": 3,
"row": [
"1",
"english"
],
"code": "missing-value",
"row-number": 2
},
{
"message": "Row 2 has a missing value in column 4",
"column-number": 4,
"row": [
"1",
"english"
],
"code": "missing-value",
"row-number": 2
},
{
"message": "Row 3 is duplicated to row(s) 2",
"column-number": null,
"row": [
"1",
"english"
],
"code": "duplicate-row",
"row-number": 3
},
{
"message": "Row 4 is completely blank",
"column-number": null,
"row": [],
"code": "blank-row",
"row-number": 4
},
{
"message": "Row 5 has an extra value in column 5",
"column-number": 5,
"row": [
"2",
"german",
"1",
"2",
"3"
],
"code": "extra-value",
"row-number": 5
}
],
"row-count": 5,
"headers": [
"id",
"name",
"",
"name"
],
"error-count": 7,
"source": "data/invalid.csv"
},
{
"valid": true,
"time": 0.01,
"errors": [],
"row-count": 20,
"headers": [
"a",
"b",
"c"
],
"error-count": 0,
"source": "https://raw.githubusercontent.com/frictionlessdata/ADB-User-Study/3ca0be9be25de1b3a7110ada06c84fa49b7cff96/_enrich_node1592.csv"
}
],
"table-count": 2,
"error-count": 7
}

0 comments on commit e1d265c

Please sign in to comment.