Allow more than one parse operation in schema.
This commit is contained in:
@@ -24,6 +24,22 @@ $defs:
|
|||||||
The file extension to save files with. The value of `name` is used if
|
The file extension to save files with. The value of `name` is used if
|
||||||
`extension` is not provided.
|
`extension` is not provided.
|
||||||
type: string
|
type: string
|
||||||
|
insertRow:
|
||||||
|
description: >-
|
||||||
|
A row of data to insert into the dataframe at the specified location.
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- location
|
||||||
|
- value
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
location:
|
||||||
|
type: integer
|
||||||
|
value:
|
||||||
|
oneOf:
|
||||||
|
- $ref: "#/$defs/scalar"
|
||||||
|
- type: object
|
||||||
|
- type: array
|
||||||
operation:
|
operation:
|
||||||
description: >-
|
description: >-
|
||||||
An operation to perform on a value to convert it from one format to
|
An operation to perform on a value to convert it from one format to
|
||||||
@@ -165,6 +181,15 @@ $defs:
|
|||||||
type: string
|
type: string
|
||||||
string:
|
string:
|
||||||
type: string
|
type: string
|
||||||
|
operations:
|
||||||
|
description: >-
|
||||||
|
One or more operations to perform on a value.
|
||||||
|
oneOf:
|
||||||
|
- $ref: "#/$defs/operation"
|
||||||
|
- type: array
|
||||||
|
minItems: 1
|
||||||
|
items:
|
||||||
|
$ref: "#/$defs/operation"
|
||||||
scalar:
|
scalar:
|
||||||
anyOf:
|
anyOf:
|
||||||
- type: boolean
|
- type: boolean
|
||||||
@@ -192,28 +217,7 @@ $defs:
|
|||||||
description: >-
|
description: >-
|
||||||
Operations to perform on the raw value(s) to generate the value
|
Operations to perform on the raw value(s) to generate the value
|
||||||
for this column.
|
for this column.
|
||||||
oneOf:
|
$ref: "#/$defs/operations"
|
||||||
- $ref: "#/$defs/operation"
|
|
||||||
- type: array
|
|
||||||
minItems: 1
|
|
||||||
items:
|
|
||||||
$ref: "#/$defs/operation"
|
|
||||||
insertRow:
|
|
||||||
description: >-
|
|
||||||
A row of data to insert into the dataframe at the specified location.
|
|
||||||
type: object
|
|
||||||
required:
|
|
||||||
- location
|
|
||||||
- value
|
|
||||||
additionalProperties: false
|
|
||||||
properties:
|
|
||||||
location:
|
|
||||||
type: integer
|
|
||||||
value:
|
|
||||||
oneOf:
|
|
||||||
- $ref: "#/$defs/scalar"
|
|
||||||
- type: object
|
|
||||||
- type: array
|
|
||||||
|
|
||||||
# Schema
|
# Schema
|
||||||
type: object
|
type: object
|
||||||
@@ -334,9 +338,9 @@ properties:
|
|||||||
$ref: "#/$defs/scalar"
|
$ref: "#/$defs/scalar"
|
||||||
parse:
|
parse:
|
||||||
description: >-
|
description: >-
|
||||||
Operation to process data for this column when reading from a
|
Operation(s) to process data for this column when reading from a
|
||||||
file.
|
file.
|
||||||
$ref: "#/$defs/operation"
|
$ref: "#/$defs/operations"
|
||||||
const:
|
const:
|
||||||
$ref: "#/$defs/scalar"
|
$ref: "#/$defs/scalar"
|
||||||
translate:
|
translate:
|
||||||
|
|||||||
Reference in New Issue
Block a user