Commit 4b52cd3
Add explicit validation for server names with multiple slashes
The publish endpoint now validates that server names contain exactly
one forward slash before processing. This provides a clearer error
message (400 Bad Request with "server name cannot contain multiple
slashes") instead of the generic 422 schema validation error.
This fixes test failures where server names like:
- com.example/server/path (2 slashes)
- org.company/dept/team/project (3 slashes)
- com.example//double-slash (consecutive slashes)
- com.example/server/ (trailing slash)
Should now properly return 400 with the expected error message.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent e23d4e2 commit 4b52cd3
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments