GitHub
01/15/2025, 9:27 PMdeprecated keyword to mark deprecated settings
Issue created by edgarrmondragon
Feature scope
Configuration (settings parsing, validation, etc.)
Description
sdk/singer_sdk/typing.py
Lines 520 to 530 in</meltano/sdk/commit/40b633385b3ec5462d90042213bfb236c57ccbab|40b6333>
| def __init__( |
| ------------------------------------------------------ |
| self, |
| name: str, |
| wrapped: JSONTypeHelper[T] \| type[JSONTypeHelper[T]], |
| required: bool = False, # noqa: FBT001, FBT002 |
| default: T \| None = None, |
| description: str \| None = None, |
| secret: bool \| None = False, # noqa: FBT002 |
| allowed_values: list[T] \| None = None, |
| examples: list[T] \| None = None, |
| ) -> None: |
is the place where this change would need to be applied. Also, this would be a great opportunity to add kwargs to that init method that are directly passed to the generated type dict.
This would be even better if paired with python-jsonschema/jsonschema#1170, as well as Hub and Meltano support.
Related
• meltano/meltano#9023
• #2830
References
• https://json-schema.org/draft/2020-12/json-schema-validation#name-deprecated
meltano/sdkGitHub
01/15/2025, 9:27 PMdeprecated keyword to mark deprecated settings
Issue closed as completed by edgarrmondragon
meltano/sdk