Commit e1de336
refactor: Replace schema pattern test with SSE template validation example
Instead of adding a new test pattern (schema_pattern_test.go), add a
simple SSE transport example with template variables to the documentation
which gets validated by the existing validate-examples tool.
Changes:
- Add SSE remote transport example with {tenant_id} template variable
to generic-server-json.md
- Update expectedServerJSONCount from 14 to 15 in validate-examples tool
- Remove internal/validators/schema_pattern_test.go (new test pattern)
This follows the existing testing patterns where schema validation
happens through documentation examples rather than dedicated unit tests.
The new SSE example proves that template variables work correctly with
the pattern validation added in the previous commit.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 9f127fe commit e1de336
File tree
3 files changed
+24
-196
lines changed- docs/reference/server-json
- internal/validators
- tools/validate-examples
3 files changed
+24
-196
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
704 | 727 | | |
705 | 728 | | |
706 | 729 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments