Skip to content

Commit

Permalink
Added _id and _cid to the schema (catalog) (#14647)
Browse files Browse the repository at this point in the history
Thanks for approving!
  • Loading branch information
alexander-marquardt authored Jul 13, 2022
1 parent 47d41ee commit f412716
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ def get_json_schema(self) -> Mapping[str, Any]:
for schema_property in schema_records:
json_schema.update(schema_property)

# Manually add in _cid and _id, which are not included in the list of fields sent back from Webflow,
# but which are necessary for joining data in the database
extra_fields = {
"_id": {"type": ["null", "string"]},
"_cid": {"type": ["null", "string"]},
}
json_schema.update(extra_fields)

return {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": True,
Expand Down

0 comments on commit f412716

Please sign in to comment.