-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Since #1575 PR in json_schema/system/file_descriptor.json where a new property dri_uri was introduced, we get an error in schema linter script triggered by github actions
Run python ./src/schema_linter.py
Traceback (most recent call last):
Linting 89 schemas
File "/home/runner/work/metadata-schema/metadata-schema/./src/schema_linter.py", line 355, in
return_msg = linter.lintSchema(s, ols_api)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/metadata-schema/metadata-schema/./src/schema_linter.py", line 168, in lintSchema
errors.append(schema_filename + ".json: Type" + properties[property]['type'] + "is not a valid JSON type.")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "list") to str
Error: Process completed with exit code 1.
The linter is failing because properties[property]['type'] which is expected to be a str is a list and cannot be concatenated to print the error.