Skip to content

Version Packages - #82

Merged
MathiasWP merged 1 commit into
mainfrom
changeset-release/main
Aug 24, 2026
Merged

Version Packages#82
MathiasWP merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

fiber@0.14.6

Patch Changes

  • #81 a7def54 Thanks @MathiasWP! - Read const when building a body from a schema.

    OpenAPI 3.1 uses JSON Schema 2020-12, where a literal is written as const and a literal union as anyOf: [{const: "once"}, {const: "always"}]. That is what 3.1 generators emit where 3.0 would have written an enum. Fiber read example, default and enum, but not const — so it walked into the first branch, found nothing to go on, and printed the string placeholder for a field whose only legal values were named right there. Sending that body back got it rejected by the very document it came from.

    One real spec this was found against writes 543 consts and not a single enum, so the existing enum handling never fired once across 658 paths. A const is now taken as the value it names, in request skeletons and in form fields alike.

@MathiasWP
MathiasWP merged commit 2a7edd8 into main Aug 24, 2026
@MathiasWP
MathiasWP deleted the changeset-release/main branch August 24, 2026 14:23
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