Skip to content

Commit 4ac38d8

Browse files
feat: use RFC 9535 JSONPath with @~ property name extension for wildcard matching
Enable x-speakeasy-jsonpath: rfc9535 and use match(@~, '^source-') to regex-match schema names by prefix. The @~ extension accesses the property name of the current node in filter expressions. Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent 2158e3c commit 4ac38d8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

overlays/python_speakeasy.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# See: https://www.speakeasy.com/docs/customize-sdks/overlays
44

55
overlay: 1.0.0
6+
x-speakeasy-jsonpath: rfc9535
67
info:
78
title: Python SDK Overlay
89
version: 0.0.2
@@ -14,21 +15,20 @@ actions:
1415
$ref: "#/components/schemas/RowFilteringOperationEqual"
1516

1617
# -----------------------------------------------------------------------
17-
# Test: wildcard JSONPath to mark connector schemas as deprecated.
18-
# Strategy: filter by content — source connectors have a sourceType
19-
# property, destination connectors have a destinationType property.
18+
# Test: RFC 9535 JSONPath with PropertyNameExtension (@~) to match
19+
# connector schemas by name prefix and mark them deprecated.
2020
# -----------------------------------------------------------------------
2121

22-
# Attempt: filter schemas that have a sourceType property
23-
- target: "$.components.schemas[?(@.properties.sourceType)]"
22+
# Mark all source-* connector schemas as deprecated
23+
- target: "$.components.schemas[?match(@~, '^source-')]"
2424
update:
2525
deprecated: true
2626
x-speakeasy-deprecation-message: >-
2727
Typed connector configuration models are deprecated and will be removed in v1.1.0.
2828
Pass configuration as a plain dict with a required 'sourceType' key instead.
2929
30-
# Attempt: filter schemas that have a destinationType property
31-
- target: "$.components.schemas[?(@.properties.destinationType)]"
30+
# Mark all destination-* connector schemas as deprecated
31+
- target: "$.components.schemas[?match(@~, '^destination-')]"
3232
update:
3333
deprecated: true
3434
x-speakeasy-deprecation-message: >-

0 commit comments

Comments
 (0)