You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 actionsThe linter is failing because
properties[property]['type']
which is expected to be astr
is alist
and cannot be concatenated to print the error.The text was updated successfully, but these errors were encountered: