Merged
Conversation
- 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
Changepacks@devup-api/core@0.1.12 → 0.1.13 - packages/core/package.jsonPatch
@devup-api/fetch@0.1.15 → 0.1.16 - packages/fetch/package.jsonPatch
@devup-api/generator@0.1.16 → 0.1.17 - packages/generator/package.jsonPatch
@devup-api/hookform@0.1.0 → 0.1.1 - packages/hookform/package.jsonPatch
@devup-api/next-plugin@0.1.9 → 0.1.10 - packages/next-plugin/package.jsonPatch
@devup-api/react-query@0.1.8 → 0.1.9 - packages/react-query/package.jsonPatch
@devup-api/rsbuild-plugin@0.1.9 → 0.1.10 - packages/rsbuild-plugin/package.jsonPatch
@devup-api/ui@0.1.0 → 0.1.1 - packages/ui/package.jsonPatch
@devup-api/utils@0.1.7 → 0.1.8 - packages/utils/package.jsonPatch
@devup-api/vite-plugin@0.1.9 → 0.1.10 - packages/vite-plugin/package.jsonPatch
@devup-api/webpack-plugin@0.1.9 → 0.1.10 - packages/webpack-plugin/package.jsonPatch
@devup-api/zod@0.1.0 → 0.1.1 - packages/zod/package.jsonPatch
|
…ils and content extraction helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.