<#2930 bug: Can't override schema of REST streams ...
# meltano-repo-activity
g
#2930 bug: Can't override schema of REST streams for record conforming Issue created by edgarrmondragon ### Singer SDK Version 0.45.1 ### Is this a regression? • Yes ### Python Version NA ### Bug scope Taps (catalog, state, etc.) ### Operating System No response ### Description At the moment, the catalog cannot be used to override the schema of REST and GraphQL. It can be used to override metadata: sdk/singer_sdk/streams/core.py Lines 1284 to 1304 in</meltano/sdk/commit/c6672eb70002c7430f5db30fba05bb21cf9f0c11|c6672eb> | if catalog_entry: | | -------------------------------------------------------------------------------- | | stream_metadata: StreamMetadata \| None | | if stream_metadata := catalog_entry.metadata.get(()): # type: ignore[assignment] | | table_key_properties = stream_metadata.table_key_properties | | table_replication_key = stream_metadata.replication_key | | table_replication_method = stream_metadata.forced_replication_method | | else: | | table_key_properties = None | | table_replication_key = None | | table_replication_method = None | | | | self.primary_keys = catalog_entry.key_properties or table_key_properties | | self.replication_key = ( | | catalog_entry.replication_key or table_replication_key | | ) | | | | replication_method = ( | | catalog_entry.replication_method or table_replication_method | | ) | | if replication_method: | | self.forced_replication_method = replication_method | so it should be easy to also override the schema, which would also require adding a setter to the
schema
attribute. ### Link to Slack/Linen No response meltano/sdk