chore!: Deprecate connector schemas#188
chore!: Deprecate connector schemas#188Aaron ("AJ") Steers (aaronsteers) wants to merge 15 commits into
Conversation
…refix Co-Authored-By: AJ Steers <aj@airbyte.io>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
…tion Try filtering schemas by content (existence of sourceType/destinationType properties) instead of by name prefix, since match() is not supported. Co-Authored-By: AJ Steers <aj@airbyte.io>
|
Generated Code Drift Detected The committed code does not match what the generation pipeline produces. To fix: Comment |
|
…ard 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>
|
…hema names match() does full-string match per RFC 9535, so match(@~, '^source-') requires the entire name to be '^source-'. search() does substring match, so search(@~, '^source-') correctly finds names starting with 'source-'. Co-Authored-By: AJ Steers <aj@airbyte.io>
|
|
Co-Authored-By: AJ Steers <aj@airbyte.io>
|
Co-Authored-By: AJ Steers <aj@airbyte.io>
|
Co-Authored-By: AJ Steers <aj@airbyte.io>
|
|
Co-Authored-By: AJ Steers <aj@airbyte.io>
Co-Authored-By: AJ Steers <aj@airbyte.io>
Co-Authored-By: AJ Steers <aj@airbyte.io>
Co-Authored-By: AJ Steers <aj@airbyte.io>
Co-Authored-By: AJ Steers <aj@airbyte.io>
…ero-diff Co-Authored-By: AJ Steers <aj@airbyte.io>
Summary
Research PR — confirms that Speakeasy overlays support wildcard JSONPath for bulk-deprecating all 600 connector schemas with just 2 overlay actions.
Working syntax:
Where
@~is Speakeasy's PropertyNameExtension (accesses the schema key name) andsearch()does substring regex matching per RFC 9535.Result: Speakeasy generates
@deprecatedfromtyping_extensionson bothBaseModelandTypedDictconnector classes — producing realDeprecationWarningat runtime, not just docstring annotations. 600 connector model files annotated, 0 core models affected.Key pitfalls discovered:
match()does full-string match (match(@~, '^source-')matches nothing) — usesearch()insteadx-speakeasy-jsonpath: rfc9535is required — overlay1.0.0defaults to legacy VMware Labs parser which lacksmatch()/search()/@~Link to Devin session: https://app.devin.ai/sessions/1a9172f7c32f4aa2852da2423f44101a
Requested by: Aaron ("AJ") Steers (@aaronsteers)