Skip to content

Commit

Permalink
Fix: Make _airtable_id not nullable, since it's a primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
jshearer committed Jan 18, 2024
1 parent 0db88f7 commit c0fc9ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def clean_name(name_str: str) -> str:
@staticmethod
def get_json_schema(table: Dict[str, Any]) -> Dict[str, str]:
properties: Dict = {
"_airtable_id": SchemaTypes.string,
# This is primary key, shouldn't be null
"_airtable_id": {"type": "string"},
"_airtable_created_time": SchemaTypes.string,
"_airtable_table_name": SchemaTypes.string,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
"additionalProperties": true,
"properties": {
"_airtable_id": {
"type": [
"null",
"string"
]
"type": "string"
},
"_airtable_created_time": {
"type": [
Expand Down

0 comments on commit c0fc9ea

Please sign in to comment.