Skip to content

refactor(payloadModifier): use SchemaOptional to wrapper the optional schema#165

Merged
JOU-amjs merged 2 commits into
mainfrom
fix/v0.2.1
Jul 17, 2026
Merged

refactor(payloadModifier): use SchemaOptional to wrapper the optional schema#165
JOU-amjs merged 2 commits into
mainfrom
fix/v0.2.1

Conversation

@JOU-amjs

Copy link
Copy Markdown
Contributor

No description provided.

@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d884761

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wormajs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the worma label Jul 16, 2026
…ling

- Fix non-SchemaOptional return defaulting to required:true
- Propagate required:false to clear object-level required array
- Move schema validation into toSchemaObject (zero extra traversal)
- Remove legacy '?' suffix for optional keys
- Simplify payloadModifierApiDescriptor with shared helpers
- Replace Chinese comments with English
@JOU-amjs
JOU-amjs merged commit d006912 into main Jul 17, 2026
6 checks passed
@JOU-amjs JOU-amjs mentioned this pull request Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant