Define and validate restored-session setup state
This commit is contained in:
@@ -16,3 +16,11 @@ than in a URL query parameter. The server closes the connection when the frame
|
||||
is missing, malformed, or invalid, and sends `connection.ready` only after
|
||||
successful validation.
|
||||
|
||||
The restored-session contract has Draft 2020-12 validation for both credential
|
||||
replacement states, missing fields, wrong types, and unexpected properties:
|
||||
|
||||
```sh
|
||||
uv run --with jsonschema==4.26.0 python tests/session_contract.py
|
||||
```
|
||||
|
||||
This isolated validation dependency is tooling only, not an application dependency.
|
||||
|
||||
Reference in New Issue
Block a user