|
5 | 5 | overlay: 1.0.0 |
6 | 6 | info: |
7 | 7 | title: Python SDK Overlay |
8 | | - version: 0.0.1 |
| 8 | + version: 0.0.2 |
9 | 9 | actions: |
10 | 10 | # Workaround for Speakeasy circular-ref model_rebuild() bug. |
11 | 11 | # See: https://github.com/airbytehq/airbyte-api-python-sdk/issues/186 |
12 | | - # |
13 | | - # Break the circular $ref: RowFilteringOperationNot.conditions references |
14 | | - # RowFilteringOperation, which references RowFilteringOperationNot again. |
15 | | - # This causes Speakeasy to use TYPE_CHECKING imports and miss model_rebuild() |
16 | | - # calls for dependent models (ConnectionResponse, StreamConfigurations, etc.). |
17 | | - # |
18 | | - # Fix: point conditions.items directly at RowFilteringOperationEqual, |
19 | | - # removing the recursion. NOT(NOT(x)) = x, so nested NOT is redundant. |
20 | 12 | - target: "$.components.schemas.RowFilteringOperationNot.properties.conditions.items" |
21 | 13 | update: |
22 | 14 | $ref: "#/components/schemas/RowFilteringOperationEqual" |
| 15 | + |
| 16 | + # ----------------------------------------------------------------------- |
| 17 | + # Test: wildcard JSONPath to mark all source-* schemas as deprecated. |
| 18 | + # Trying several JSONPath filter syntaxes to see which (if any) Speakeasy |
| 19 | + # supports for matching schema names by prefix. |
| 20 | + # ----------------------------------------------------------------------- |
| 21 | + |
| 22 | + # Attempt 1: RFC 9535 match() on property name via filter |
| 23 | + - target: "$.components.schemas[?match(@, '^source-')]" |
| 24 | + update: |
| 25 | + deprecated: true |
| 26 | + x-speakeasy-deprecation-message: >- |
| 27 | + Typed connector configuration models are deprecated and will be removed in v1.1.0. |
| 28 | + Pass configuration as a plain dict with a required 'sourceType' key instead. |
| 29 | +
|
| 30 | + # Attempt 2: Same for destination-* |
| 31 | + - target: "$.components.schemas[?match(@, '^destination-')]" |
| 32 | + update: |
| 33 | + deprecated: true |
| 34 | + x-speakeasy-deprecation-message: >- |
| 35 | + Typed connector configuration models are deprecated and will be removed in v1.1.0. |
| 36 | + Pass configuration as a plain dict with a required 'destinationType' key instead. |
0 commit comments