-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Schema warning with AnyType
#2519
Comments
This seems to be the intended behaviour when using sdk/tests/core/test_jsonschema_helpers.py Lines 183 to 186 in 2874a15
Not sure why this is the case. The main issue here is the amount of times this warning message seems to get thrown out in the logs. For example:
|
Looking at the code, my first guess is that it's because the |
Thanks, that reduces the amount of warnings significantly (once for each stream with a schema referencing
I guess this is then more a matter of should the SDK throw that warning message for explicit usage of |
Problem is Property("name", StringType(nullable=True)) # {"properties": {"name": {"type": ["string", "null"]}}, "required": []} instead of Property("name", StringType, required=False) # {"properties": {"name": {"type": ["string", "null"]}}, "required": []} That'd allow us to refactor these lines Lines 688 to 689 in dfdbdde
and get rid of most of the instances of that warning. |
Singer SDK Version
0.34.1
Is this a regression?
Python Version
3.7 (EOL)
Bug scope
Taps (catalog, state, etc.)
Operating System
Ubuntu 22.04
Description
Unsure if I am using this correctly, but my understanding is that
AnyType
should represent a value of any JSON type (i.e. string, integer, object, array ornull
). Maybe this has been fixed in a later version, but0.34.1
is the latest compatible version available since we haven't yet dropped Python 3.7 support for the tap.Code
The text was updated successfully, but these errors were encountered: