test(httpapi): cover session json parity (#24682)

This commit is contained in:
Kit Langton 2026-04-27 19:48:57 -04:00 committed by GitHub
commit c103202ad5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 153 additions and 3 deletions

View file

@ -12,8 +12,8 @@ export const PositiveInt = Schema.Int.check(Schema.isGreaterThan(0))
export const NonNegativeInt = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))
/**
* Optional public JSON field that accepts explicit `undefined` internally but
* encodes it as an omitted key, matching `JSON.stringify` legacy responses.
* Optional public JSON field that can hold explicit `undefined` on the type
* side but encodes it as an omitted key, matching legacy `JSON.stringify`.
*/
export const optionalOmitUndefined = <S extends Schema.Top>(schema: S) =>
Schema.optionalKey(schema).pipe(