Add insertRows option to schema.
This commit is contained in:
@@ -32,8 +32,8 @@ $defs:
|
|||||||
# Mapping
|
# Mapping
|
||||||
- description: >-
|
- description: >-
|
||||||
Map one set of values to another. Returns the value of the `default`
|
Map one set of values to another. Returns the value of the `default`
|
||||||
property if no other key matches. For `rregexmapping`, the mapping keys
|
property if no other key matches. For `rregexmapping`, the mapping
|
||||||
are treated as regular expressions.
|
keys are treated as regular expressions.
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- operation
|
- operation
|
||||||
@@ -193,12 +193,27 @@ $defs:
|
|||||||
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:
|
oneOf:
|
||||||
- type: object
|
- $ref: "#/$defs/operation"
|
||||||
$ref: "#/$defs/operation"
|
|
||||||
- type: array
|
- type: array
|
||||||
minItems: 1
|
minItems: 1
|
||||||
items:
|
items:
|
||||||
$ref: "#/$defs/operation"
|
$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
|
||||||
@@ -225,13 +240,12 @@ properties:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
description: >-
|
description: >-
|
||||||
The name of the file format. Must be one of: [csv, xslx, xml].
|
The name of the file format.
|
||||||
$ref: "#/$defs/formatNames"
|
$ref: "#/$defs/formatNames"
|
||||||
# CSV with options.
|
# CSV with options.
|
||||||
- type: object
|
- type: object
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
# additionalProperties: false
|
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
description: >-
|
description: >-
|
||||||
@@ -285,7 +299,7 @@ properties:
|
|||||||
type: string
|
type: string
|
||||||
import:
|
import:
|
||||||
description: >-
|
description: >-
|
||||||
Import configuration.
|
Configuration for translating from AuDaGeFrame.
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- columns
|
- columns
|
||||||
@@ -329,6 +343,13 @@ properties:
|
|||||||
description: >-
|
description: >-
|
||||||
Translate object for generating this column from an AuDaGeFrame.
|
Translate object for generating this column from an AuDaGeFrame.
|
||||||
$ref: "#/$defs/translate"
|
$ref: "#/$defs/translate"
|
||||||
|
insertRows:
|
||||||
|
description: Insert custom data into the dataframe.
|
||||||
|
oneOf:
|
||||||
|
- $ref: "#/$defs/insertRow"
|
||||||
|
- type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/$defs/insertRow"
|
||||||
export:
|
export:
|
||||||
description: >-
|
description: >-
|
||||||
Translate objects for converting this format to the standard AuDaGeFrame
|
Translate objects for converting this format to the standard AuDaGeFrame
|
||||||
|
|||||||
Reference in New Issue
Block a user