Skip to content

Support form#48

Merged
owjs3901 merged 15 commits intomainfrom
support-form
Feb 13, 2026
Merged

Support form#48
owjs3901 merged 15 commits intomainfrom
support-form

Conversation

@owjs3901
Copy link
Contributor

No description provided.

- Add optional bodyType?: 'json' | 'form' | 'multipart' field to UrlMapValue
- Field is optional for backward compatibility
- Enables runtime to determine request body serialization strategy
…rmat

- Add CONTENT_TYPE_PRIORITY constant with json, urlencoded, multipart
- Add getRequestBodyContent() helper to find schema across content types
- Update extractRequestBody() to use helper in both  and inline branches
- Add format: binary → File | Blob type mapping in getTypeFromSchema()
- Add 12 new test cases covering form, multipart, and binary content
- All 108 tests pass with 7 new snapshots
- Update getRequestBodySchemaName() to iterate all 3 content types
- Update schema collection to check form and multipart content
- Add format: binary → z.instanceof(File) in runtime schemas
- Add format: binary → z.ZodType<File> in type declarations
- Update existing multipart test to expect schema processing
- Add 5 new test cases for binary and multi-content-type support
- All 126 tests pass with 100% coverage
- Import getRequestBodyContent helper from generate-schema
- Update schema collection pass to use helper for all content types
- Update body extraction pass to use helper for all content types
- Add raw multipart handling: empty object schema → FormData | Record<string, unknown>
- Add 6 new test cases for form/multipart endpoints
- All 52 tests pass with 54 snapshots
@github-actions
Copy link

github-actions bot commented Feb 13, 2026

Changepacks

@devup-api/core@0.1.12 → 0.1.13 - packages/core/package.json

Patch

  • Support form and Refactor

@devup-api/fetch@0.1.15 → 0.1.16 - packages/fetch/package.json

Patch

  • Support form and Refactor

@devup-api/generator@0.1.16 → 0.1.17 - packages/generator/package.json

Patch

  • Support form and Refactor

@devup-api/hookform@0.1.0 → 0.1.1 - packages/hookform/package.json

Patch

  • Support form and Refactor

@devup-api/next-plugin@0.1.9 → 0.1.10 - packages/next-plugin/package.json

Patch

  • Support form and Refactor

@devup-api/react-query@0.1.8 → 0.1.9 - packages/react-query/package.json

Patch

  • Support form and Refactor

@devup-api/rsbuild-plugin@0.1.9 → 0.1.10 - packages/rsbuild-plugin/package.json

Patch

  • Support form and Refactor

@devup-api/ui@0.1.0 → 0.1.1 - packages/ui/package.json

Patch

  • Support form and Refactor

@devup-api/utils@0.1.7 → 0.1.8 - packages/utils/package.json

Patch

  • Support form and Refactor

@devup-api/vite-plugin@0.1.9 → 0.1.10 - packages/vite-plugin/package.json

Patch

  • Support form and Refactor

@devup-api/webpack-plugin@0.1.9 → 0.1.10 - packages/webpack-plugin/package.json

Patch

  • Support form and Refactor

@devup-api/zod@0.1.0 → 0.1.1 - packages/zod/package.json

Patch

  • Support form and Refactor

@owjs3901 owjs3901 merged commit c9afeaf into main Feb 13, 2026
3 checks passed
@owjs3901 owjs3901 deleted the support-form branch February 13, 2026 18:21
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