Skip to content

Commit

Permalink
make schematic options nested in config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Nov 16, 2023
1 parent fd20c4e commit 4a40807
Showing 1 changed file with 53 additions and 30 deletions.
83 changes: 53 additions & 30 deletions schemas/dca_config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,37 +79,60 @@
"schematic": {
"description": "Schematic configuration options",
"type": "object",
"requires": [ "manifest_generate", "model_validate", "model submit" ],
"properties": {
"output_format": {
"description": "Output type for downloaded manifests. excel or google_sheet",
"type": "string",
"enum": [ "excel", "google_sheet" ]
},
"use_annotations": {
"description": "Schematic manifest get option",
"type": "boolean"
},
"restrict_rules": {
"description": "Schematic model validate option",
"type": "boolean"
},
"use_schema_labels": {
"description": "Schematic model submit option",
"type": "boolean"
},
"table_manipulation": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "replace", "upsert" ]
},
"manifest_record_type": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "file_only", "table_and_file", "table_file_and_entities", "file_and_entities" ]
},
"hide_blanks": {
"description": "Schematic model submit option",
"type": "boolean"
"manifest_generate": {
"description": "Parameters to pass to Schematic manifest generate",
"type": "object",
"requires": [ "output_format", "use_annotations" ],
"properties": {
"output_format": {
"description": "Output type for downloaded manifests. excel or google_sheet",
"type": "string",
"enum": [ "excel", "google_sheet" ]
},
"use_annotations": {
"description": "Schematic manifest get option",
"type": "boolean"
},
}
},
"model_validate": {
"description": "Parameteres to pass to Schematic model validate",
"type": "object",
"requires": [ "restrict_rules" ],
"properties": {
"restrict_rules": {
"description": "Schematic model validate option",
"type": "boolean"
}
}
},
"model_submit": {
"description": "Parameters to pass Schematic model submit",
"type": "object",
"requires": [ "use_schema_labels", "table_manipulation",
"manifest_record_type", "hide_blanks" ],
"properties": {
"use_schema_labels": {
"description": "Schematic model submit option",
"type": "boolean"
},
"table_manipulation": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "replace", "upsert" ]
},
"manifest_record_type": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "file_only", "table_and_file", "table_file_and_entities", "file_and_entities" ]
},
"hide_blanks": {
"description": "Schematic model submit option",
"type": "boolean"
}
}
}
}
}
Expand Down

0 comments on commit 4a40807

Please sign in to comment.