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