You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if self.allowed_values:
if type is array: # pseudocode
type_dict["items"].update({"enum": self.allowed_values}) # just a concept
else:
type_dict.update({"enum": self.allowed_values})
The text was updated successfully, but these errors were encountered:
Feature scope
Taps (catalog, state, stream maps, etc.)
Description
Currently it's not possible to set allowed_values for Property(ArrayType) since it generates schema like following:
And checks only types like Integer, String, etc, not arrays.
In order to validate array's allowed values the schema should look like following:
Looks like the changes should be implemented here:
sdk/singer_sdk/typing.py
Line 479 in 0948c77
Something like:
The text was updated successfully, but these errors were encountered: