Skip to content

Commit

Permalink
Updated the Spreadsheet plugin's schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Jul 18, 2024
1 parent 1e738f2 commit d06f6e3
Showing 1 changed file with 104 additions and 5 deletions.
109 changes: 104 additions & 5 deletions schema/plugin/spreadsheet.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,108 @@
"$id": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/plugin/spreadsheet.json",
"title": "Spreadsheet plugin for Middleware Satellite",
"description": "A Satellite is a micro-service aimed at managing data pipelines and data processing",
"type": "object",
"additionalProperties": false,
"properties": {
"expression_language": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/definitions.json#/$defs/expression_language" }
}
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"expression_language": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/definitions.json#/$defs/expression_language" },
"extractor": {
"oneOf": [
{
"type": "object",
"properties": {
"file_path": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"excel": {
"type": "object",
"properties": {
"sheet": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"skip_lines": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-number" }
}
}
}
},
{
"type": "object",
"properties": {
"file_path": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"open_document": {
"type": "object",
"properties": {
"sheet": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"skip_lines": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-number" }
}
}
}
},
{
"type": "object",
"properties": {
"file_path": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"csv": {
"type": "object",
"properties": {
"delimiter": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"enclosure": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"skip_lines": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-number" }
}
}
}
}
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"expression_language": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/definitions.json#/$defs/expression_language" },
"loader": {
"oneOf": [
{
"type": "object",
"properties": {
"file_path": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"excel": {
"type": "object",
"properties": {
"sheet": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"max_lines": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-number" }
}
}
}
},
{
"type": "object",
"properties": {
"file_path": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"open_document": {
"type": "object",
"properties": {
"sheet": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"max_lines": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-number" }
}
}
}
},
{
"type": "object",
"properties": {
"file_path": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"csv": {
"type": "object",
"properties": {
"delimiter": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"enclosure": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-string" },
"max_lines": { "$ref": "https://raw.githubusercontent.com/php-etl/satellite/master/schema/expressions.json#/$defs/expression-or-number" }
}
}
}
}
]
}
}
}
]
}

0 comments on commit d06f6e3

Please sign in to comment.