Commit b1dc19c
committed
fix: align with gts-spec v0.7.0
- Prohibit single-segment instance IDs (Issue #37)
- Add is_wildcard field to validate-id and parse-id responses
- Add is_schema field to parse-id response
- Fix schema_id priority: chained ID takes precedence over type field
- Validate $$id prefix (reject 'gts.' without 'gts://')
- Validate wildcard patterns in candidates
- Skip $id for non-schemas in schema_id extraction
All 211 e2e tests pass.1 parent dbbb04d commit b1dc19c
4 files changed
Lines changed: 94 additions & 24 deletions
- README.md+32-8
- tests/requirements.txt+12
- tests/test_op10_query_execution.py+2-2
- tests/test_op11_attribute_access.py+2-2
- tests/test_op1_id_validation.py+171-3
- tests/test_op2_id_extraction.py-92
- tests/test_op2_schema_id_priority.py+297
- tests/test_op3_id_parsing.py+115
- tests/test_op4_id_match_pattern.py+254
- tests/test_op6_schema_validation.py+136
- tests/test_op7_relationship_resolution.py+70-8
- tests/test_op9_version_casting.py+4-4
- tests/test_refimpl_x_gts_ref.py+1-1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
353 | 376 | | |
354 | 377 | | |
355 | 378 | | |
| |||
362 | 385 | | |
363 | 386 | | |
364 | 387 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | 388 | | |
380 | | - | |
381 | 389 | | |
382 | 390 | | |
383 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| |||
331 | 341 | | |
332 | 342 | | |
333 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
334 | 356 | | |
335 | 357 | | |
336 | 358 | | |
| |||
376 | 398 | | |
377 | 399 | | |
378 | 400 | | |
| 401 | + | |
| 402 | + | |
379 | 403 | | |
380 | | - | |
381 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
382 | 410 | | |
383 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
384 | 414 | | |
385 | 415 | | |
| 416 | + | |
| 417 | + | |
386 | 418 | | |
387 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
388 | 424 | | |
389 | 425 | | |
390 | 426 | | |
| |||
397 | 433 | | |
398 | 434 | | |
399 | 435 | | |
400 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
401 | 445 | | |
402 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
403 | 449 | | |
404 | 450 | | |
405 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
406 | 457 | | |
407 | 458 | | |
408 | 459 | | |
| |||
0 commit comments