Skip to content

build(deps): bump libopenapi to v0.43.2 and go-yaml to v0.2.0 - #347

Merged
daveshanley merged 2 commits into
mainfrom
bump-go-yaml-v0.2.0
Nov 19, 2026
Merged

daveshanley merged 2 commits into
mainfrom
bump-go-yaml-v0.2.0

Conversation

@daveshanley

@daveshanley daveshanley commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Moves the validator to libopenapi v0.43.2 and go-yaml v0.2.0, the fork's merge of upstream go-yaml v4.0.0. It also updates five tests whose inputs relied on behaviour that changed. There are no production code changes.

Dependencies

  • github.com/pb33f/libopenapi moves from v0.42.3 to v0.43.2
  • github.com/pb33f/go-yaml moves from v0.1.1 to v0.2.0, which v0.43.2 requires
  • golang.org/x/sync moves from v0.24.0 to v0.25.0 (indirect)

Test changes

  • ":\n" is no longer invalid YAML. go-yaml v0.2.0 reads it as a mapping with an omitted key, so TestRenderSchemaBytesForValidation_Errors and TestSchemaResourceHelpers_EdgeCases now use an unterminated flow sequence.
  • A bare post: no longer builds an operation. libopenapi ignores non-mapping values since 1cc5a761, so TestParamValidator_ValidateSecurity_PresetPath, TestValidateBody_SchemaHasNoRequestBody and TestValidateBody_NoBodyNoNothing now declare post: {}.

Testing

go build and go vet ./... are clean, and go test ./... passes all 22 packages on Go 1.27.4 and Go 1.26.0.

🤖 Generated with Claude Code

Two test inputs rely on behavior that is changing upstream:

- ":\n" is no longer invalid YAML, because go-yaml v0.2.0 reads it as a
  mapping with an omitted key. Use an unterminated flow sequence.
- A bare "post:" no longer builds an operation in libopenapi, which
  ignores non-mapping values. Declare an empty operation with "post: {}".

Both inputs pass with the current dependencies and the upcoming ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.76%. Comparing base (1c28a60) to head (22f9177).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #347   +/-   ##
=======================================
  Coverage   98.76%   98.76%           
=======================================
  Files          95       95           
  Lines       12428    12428           
=======================================
  Hits        12274    12274           
  Misses        129      129           
  Partials       25       25           
Flag Coverage Δ
unittests 98.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

libopenapi v0.43.2 requires go-yaml v0.2.0, the fork's merge of upstream
go-yaml v4.0.0, so both move together. golang.org/x/sync follows to
v0.25.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@daveshanley daveshanley changed the title test: prepare for go-yaml v0.2.0 and latest libopenapi build(deps): bump libopenapi to v0.43.2 and go-yaml to v0.2.0 Nov 19, 2026
@daveshanley
daveshanley merged commit dad8fd9 into main Nov 19, 2026
4 checks passed
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