Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Address empty field schema in for SDK-based type conforming
Browse files Browse the repository at this point in the history
edgarrmondragon committed Nov 28, 2023
1 parent f7bea2b commit af91bed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tap_postgres/client.py
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
This includes PostgresStream and PostgresConnector.
"""

from __future__ import annotations

import datetime
@@ -123,7 +124,17 @@ def to_jsonschema_type(
type_name = type(sql_type).__name__

if type_name is not None and type_name in ("JSONB", "JSON"):
return {}
return {
"examples": [
"A JSON string",
1.23,
123,
{"key": "value"},
["list", "of", "values"],
True,
None,
],
}

if (
type_name is not None

0 comments on commit af91bed

Please sign in to comment.