Repository navigation
Commit 5becad1
REST: Require metadata-location in view responses (#4152)
Require metadata-location in REST view responses
The REST spec marks metadata-location as required in LoadViewResult, and
Java's LoadViewResponseParser rejects responses without it. Make
ViewResponse.metadata_location required to match.
Behavior change: create_view, load_view, and register_view now raise a
pydantic ValidationError for non-compliant servers that omit
metadata-location, instead of silently accepting the response.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent e6eb6a9 commit 5becad1
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
1856 | 1857 | | |
1857 | 1858 | | |
1858 | 1859 | | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1859 | 1873 | | |
1860 | 1874 | | |
1861 | 1875 | | |
| |||
0 commit comments