feat(validation): implement framework-independent SDK response schema… - #483
feat(validation): implement framework-independent SDK response schema…#483Code-Paragon wants to merge 2 commits into
Conversation
|
This PR cannot be merged automatically because it has merge conflicts. Please update the branch with the latest base branch and resolve the conflicts. After the conflicts are resolved and checks pass, the automation can review it again. |
|
This PR cannot be merged automatically because one or more workflow checks failed. Please review the failed checks, push a fix, and wait for the workflows to pass. After the checks pass and there are no merge conflicts, the automation can review it again. |
|
This PR cannot be merged automatically because it has merge conflicts and one or more workflow checks failed. Please update the branch with the latest base branch, resolve the conflicts, and fix the failing workflow checks. After the conflicts are resolved and checks pass, the automation can review it again. |
Description
Implements a lightweight, framework-independent SDK response schema guard system to verify unknown runtime API payloads before exposing them as typed public data.
string,number,boolean,nullType,literal,optional,array,object,union).ValidationResult<T>objects.data.members[2].id) for descriptive validation failures.max depth 20) to protect against pathological payloads and stack overflows.Closes #451.
Type of Change
fix(scope): message)feat(scope): message)docs(scope): message)refactor(scope): message)ci(scope): message)PR Title Format
This PR follows Conventional Commits:
Testing
pnpm test/pnpm typecheck/pnpm build)Checklist
type(scope): messageformat