Skip to content

Commit

Permalink
codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Faeka Ansari <faeka6@gmail.com>
  • Loading branch information
fykaa committed Jan 21, 2025
1 parent 609d379 commit 3787aaf
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
19 changes: 19 additions & 0 deletions internal/directives/zz_config_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions ui/src/gen/directives/parse-file-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ParseFileConfig",
"type": "object",
"additionalProperties": false,
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string",
"minLength": 1,
"description": "The path to the file to be parsed."
},
"outputs": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "The name of the output variable to store the result."
},
"fromExpression": {
"type": "string",
"minLength": 1,
"description": "The expression used to extract data from the file."
}
}
},
"description": "An array of outputs to extract from the file."
}
}
},
"description": "An array of file configurations to parse."
}
}
}

0 comments on commit 3787aaf

Please sign in to comment.