33
33
SCHEMA_UPLOAD_FILENAME = "schema.json"
34
34
OVERRIDES_FILENAME = "overrides.json"
35
35
INPUTS_FOLDER = "inputs"
36
+ EXAMPLE_INPUTS_FOLDER = "example_inputs"
36
37
ROLE_TEMPLATE_FILENAME = "resource-role.yaml"
37
38
TYPE_NAME_REGEX = "^[a-zA-Z0-9]{2,64}::[a-zA-Z0-9]{2,64}::[a-zA-Z0-9]{2,64}$"
38
39
@@ -147,6 +148,10 @@ def overrides_path(self):
147
148
def inputs_path (self ):
148
149
return self .root / INPUTS_FOLDER
149
150
151
+ @property
152
+ def example_inputs_path (self ):
153
+ return self .root / EXAMPLE_INPUTS_FOLDER
154
+
150
155
@staticmethod
151
156
def _raise_invalid_project (msg , e ):
152
157
LOG .debug (msg , exc_info = e )
@@ -191,8 +196,8 @@ def _write(f):
191
196
192
197
def _write_example_inputs (self ):
193
198
194
- shutil .rmtree (self .inputs_path , ignore_errors = True )
195
- self .inputs_path .mkdir (exist_ok = True )
199
+ shutil .rmtree (self .example_inputs_path , ignore_errors = True )
200
+ self .example_inputs_path .mkdir (exist_ok = True )
196
201
197
202
template = self .env .get_template ("inputs.json" )
198
203
properties = list (self .schema ["properties" ].keys ())
@@ -203,7 +208,7 @@ def _write_example_inputs(self):
203
208
"inputs_1_invalid.json" ,
204
209
):
205
210
self .safewrite (
206
- self .inputs_path / inputs_file ,
211
+ self .example_inputs_path / inputs_file ,
207
212
template .render (
208
213
properties = properties [:- 1 ], last_property = properties [- 1 ]
209
214
),
0 commit comments