-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into bugFix-obs-environments
- Loading branch information
Showing
55 changed files
with
3,157 additions
and
1,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { OpenAPIV3 } from 'openapi-types'; | ||
|
||
/** | ||
* CSV validation error object schema | ||
* | ||
*/ | ||
export const CSVErrorSchema: OpenAPIV3.SchemaObject = { | ||
title: 'CSV validation error object', | ||
type: 'object', | ||
additionalProperties: false, | ||
required: ['error', 'solution', 'row'], | ||
properties: { | ||
error: { | ||
description: 'The error message', | ||
type: 'string' | ||
}, | ||
solution: { | ||
description: 'The error solution or instructions to resolve', | ||
type: 'string' | ||
}, | ||
values: { | ||
description: 'The list of allowed values if applicable', | ||
type: 'array', | ||
items: { | ||
oneOf: [{ type: 'string' }, { type: 'number' }] | ||
} | ||
}, | ||
cell: { | ||
description: 'The CSV cell value', | ||
oneOf: [{ type: 'string' }, { type: 'number' }] | ||
}, | ||
header: { | ||
description: 'The header name used in the CSV file', | ||
type: 'string' | ||
}, | ||
row: { | ||
description: 'The row index the error occurred. Header row index 0. First data row index 1.', | ||
type: 'number' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.