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
parent ce78a4265d
commit c103202ad5
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(