Skip to content

Commit 8dcb9c4

Browse files
update library schema parsing for new check format
1 parent 0f40f53 commit 8dcb9c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/parse-schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def extract_check_records(openapi, version):
158158

159159
entry = {
160160
"id": id,
161-
"path": path,
161+
"evaluationUrl": path,
162162
"method": method,
163163
"name": name,
164164
"module": module,
@@ -223,14 +223,14 @@ def transform_parameters_format(data):
223223
new_parameters = transform_parameters(properties_obj)
224224

225225
# Replace object with the transformed list
226-
check["parameters"] = new_parameters
226+
check["parameterDefinitions"] = new_parameters
227227
return data
228228

229229

230230
def transform_situation_format(data):
231231
"""Transform all `inputs.situation` in the provided list."""
232232
for check in data:
233-
check["situation"] = check["inputs"]["situation"]
233+
check["inputDefinition"] = check["inputs"]["situation"]
234234
return data
235235

236236

0 commit comments

Comments
 (0)