Skip to content

Add zod schemas - #17

Merged
yaroslav8765 merged 4 commits into
mainfrom
add-zod-schemas
Jul 1, 2026
Merged

Add zod schemas#17
yaroslav8765 merged 4 commits into
mainfrom
add-zod-schemas

Conversation

@yaroslav8765

Copy link
Copy Markdown
Contributor

No description provided.

Add zod schemas and a parseBody helper that returns HTTP 422 on invalid
request bodies, matching the adminforth-agent plugin pattern. Adds zod to
dependencies.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

AdminForth/1781/image
Validation failures now respond with HTTP 400 and a JSON body
{ error: 'Request body validation failed', details: [...] }, matching
the format used by the AdminForth core express server.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

AdminForth/1782/generated-with-cli-dockerfile-
AdminForth/1777/image
Use the shared parseBody helper exported from adminforth core rather than
duplicating the same function in every plugin.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

AdminForth/1777/image
@yaroslav8765
yaroslav8765 merged commit 40492ba into main Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant