Skip to content

Commit acb6928

Browse files
feat: test wildcard JSONPath to deprecate connector schemas by name prefix
Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent ad179fe commit acb6928

1 file changed

Lines changed: 23 additions & 9 deletions

File tree

overlays/python_speakeasy.yaml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,32 @@
55
overlay: 1.0.0
66
info:
77
title: Python SDK Overlay
8-
version: 0.0.1
8+
version: 0.0.2
99
actions:
1010
# Workaround for Speakeasy circular-ref model_rebuild() bug.
1111
# 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.
2012
- target: "$.components.schemas.RowFilteringOperationNot.properties.conditions.items"
2113
update:
2214
$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

Comments
 (0)