-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Since upgrading to v1.26.0, our project_items extractor is failing with this error:
jsonschema.exceptions.ValidationError: 455704776 is not of type 'string', 'null'
Failed validating 'type' in schema['properties']['title']['properties']['id']:
{'type': ['string', 'null']}
On instance['title']['id']:
455704776
Taking a look at the changes to tap-github that were shipped in v1.26.0, some of them are type check changes. I believe that instead of ignoring the type of the returned JSON object, we now explicitly expect a string. This seems to be a bug that always existed in the project_items tap (an organizations stream), we are just less lenient with type checking now.
I think that a change needs to be made to these lines to convert the type, perhaps something like:
for key in ["node_id", "id", "created_at", "updated_at"]:
if key in field_value_data:
value = field_value_data[key]
# Convert databaseId (id) to string to match schema
if key == "id" and value is not None:
value = str(value)
entry[key] = value
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers