Commit 61e9648
refactor: use URL-based schema loading instead of vendored YAML files
Replace vendored YAML schema files with URL-based schema loading from the
monorepo. This removes the dependency on vendoring schemas and allows the
CDK to fetch the latest schema from a canonical source.
Changes:
- Remove vendored YAML files from airbyte_cdk/models/connector_metadata/resources/
- Remove bin/generate_connector_metadata_files.py schema generation script
- Add get_metadata_schema() utility function to fetch schema from URL or file path
- Refactor validate_metadata_file() to use JSON schema validation via jsonschema library
- Add --schema flag to CLI for custom schema path/URL (defaults to monorepo URL)
- Add comprehensive unit tests with local schema (no network dependency)
- Add TODO comment to update URL to master branch after associated PR merges
The default schema URL points to a specific commit in the monorepo:
https://raw.githubusercontent.com/airbytehq/airbyte/61048d88732df93c50bd3da490de8d3cc1aa66b0/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/generated/ConnectorMetadataDefinitionV0.json
This will be updated to use the master branch URL after the associated PR merges.
Co-Authored-By: AJ Steers <[email protected]>1 parent f58eec1 commit 61e9648
File tree
36 files changed
+254
-1122
lines changed- airbyte_cdk
- cli/airbyte_cdk
- models/connector_metadata
- resources
- bin
- unit_tests/models/connector_metadata
36 files changed
+254
-1122
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | | - | |
| 43 | + | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| |||
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| 52 | + | |
44 | 53 | | |
45 | | - | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
126 | | - | |
127 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
128 | 163 | | |
129 | 164 | | |
130 | 165 | | |
| 166 | + | |
131 | 167 | | |
132 | 168 | | |
133 | 169 | | |
| |||
169 | 205 | | |
170 | 206 | | |
171 | 207 | | |
172 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
173 | 218 | | |
174 | 219 | | |
175 | 220 | | |
176 | 221 | | |
177 | 222 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
188 | 231 | | |
189 | 232 | | |
190 | 233 | | |
191 | 234 | | |
192 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
193 | 242 | | |
194 | 243 | | |
195 | 244 | | |
| |||
Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 29 deletions
This file was deleted.
0 commit comments