File tree Expand file tree Collapse file tree 2 files changed +27
-8
lines changed
Expand file tree Collapse file tree 2 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,33 @@ tasks:
1111 cmds :
1212 - pip install {{.COMMAND}}
1313
14- check-schema :
15- desc : Executes a strict JSON schema check
14+ check_schema :
15+ desc : Executes a strict check of a configuration over the JSON schema
1616 deps :
1717 - task : conditional-pip-install
1818 vars :
1919 COMMAND : check-jsonschema
20+ ignore_error : true
2021 cmds :
21- - for : ["./files/hub/config.yml"]
22- cmd : check-jsonschema --schemafile ./schemas/config.schema.yaml {{.ITEM}}
22+ - check-jsonschema --schemafile ./schemas/config.schema.yaml {{.CONFIG}}
2323
24- create-models :
24+ check_schemas :
25+ desc : Executes a strict check of a configurations set over the JSON schema
26+ vars :
27+ CONFIGS :
28+ - ' ./eoepca-demo/config.yml'
29+ - ' ./files/hub/config.yml'
30+ cmds :
31+ - for :
32+ var : CONFIGS
33+ as : CONFIG
34+ task : check_schema
35+ vars :
36+ CONFIG : " {{.CONFIG}}"
37+
38+ # Python models
39+
40+ create_models :
2541 desc : Generates the Pydantic models with field aliases
2642 deps :
2743 - task : conditional-pip-install
3349 --input-file-type jsonschema \
3450 --output-model-type pydantic_v2.BaseModel \
3551 --base-class pydantic.BaseModel \
52+ --snake-case-field \
3653 --output ./application_hub_context/models.py
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ $defs:
104104 extra_resource_limits :
105105 type : object
106106 additionalProperties : true
107+ default : {}
107108 extra_resource_guarantees :
108109 type : object
109110 additionalProperties : true
@@ -231,6 +232,7 @@ $defs:
231232 type : array
232233 items :
233234 type : string
235+ default : [""]
234236 required :
235237 - name
236238 - resources
@@ -302,7 +304,7 @@ $defs:
302304 properties :
303305 name :
304306 type : string
305- claimName :
307+ claim_name :
306308 type : string
307309 size :
308310 type : string
@@ -330,9 +332,9 @@ $defs:
330332 properties :
331333 name :
332334 type : string
333- mount_path :
335+ mountPath :
334336 type : string
335- sub_path :
337+ subPath :
336338 type : string
337339 required :
338340 - name
You can’t perform that action at this time.
0 commit comments