Repository navigation
Preserve nullable refs and remove unused server-action imports - #83
Merged
owjs3901 merged 3 commits intoNov 5, 2026
Conversation
Changepacks@devup-api/fetch@0.1.25 → 0.1.26 - packages/fetch/package.jsonPatch
@devup-api/generator@0.1.27 → 0.1.28 - packages/generator/package.jsonPatch
@devup-api/hookform@0.1.9 → 0.1.10 - packages/hookform/package.jsonPatch
@devup-api/next-plugin@0.1.16 → 0.1.17 - packages/next-plugin/package.jsonPatch
@devup-api/react-query@0.1.19 → 0.1.20 - packages/react-query/package.jsonPatch
@devup-api/rsbuild-plugin@0.1.16 → 0.1.17 - packages/rsbuild-plugin/package.jsonPatch
@devup-api/ui@0.1.6 → 0.1.7 - packages/ui/package.jsonPatch
@devup-api/utils@0.1.13 → 0.1.14 - packages/utils/package.jsonPatch
@devup-api/vite-plugin@0.1.16 → 0.1.17 - packages/vite-plugin/package.jsonPatch
@devup-api/webpack-plugin@0.1.16 → 0.1.17 - packages/webpack-plugin/package.jsonPatch
@devup-api/zod@0.1.7 → 0.1.8 - packages/zod/package.jsonPatch
|
owjs3901
marked this pull request as ready for review
November 5, 2026 00:13
owjs3901
approved these changes
Nov 5, 2026
owjs3901
deleted the
devfive/3099154426bffbeef8b62999b80bb038/fix-nullable-ref-and-disabled-server-actions
branch
November 5, 2026 00:14
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.
OpenAPI 3.1 nullable
$refproperties losenullafter union normalization, so valid requests such asserviceType: nullfail with TS2322. Preserve nullability when resolving enum aliases, object component references, and inline references. Optional and required properties keep their existing requiredness, and non-nullable references remain strict.Generated server-action modules also fail
noUnusedLocals/noUnusedParameterschecks when actions are disabled or no operation IDs exist. Emit empty modules in those cases, and import only the method scope types used by active actions. Apply the same import selection to generated declarations.Added regression tests for nullable enum/object refs in request, response, and error contexts, plus generated consumers compiled with strict TypeScript checks. The integration fixtures accept valid enum values and null, reject invalid enum values and missing required fields, and verify that the HTTP request JSON preserves null. Includes patch changepacks for the affected generator, fetch, and utils workspaces.
Utility filesystem spies are restored after every test so the generated-client checks work regardless of test file order. Request method defaults, empty-document generation, and referenced enum context handling are also tested with CI's Bun 1.4.4. The 100% coverage requirement is unchanged.
Validation:
bun run lint— passed.bun run build— all workspace packages passed.bunx bun@1.4.4 test --coverage --coverage-reporter=lcov --coverage-reporter=text— 1,184 passed, 158 snapshots, 100% function and line coverage.Submitted via Devfive hub.
Employee Git identity (self-declared): <>
Device:
3099154426bffbeef8b62999b80bb038