Skip to content

Update module github.com/oasdiff/yaml to v0.1.1 - autoclosed#307

Closed
red-hat-konflux[bot] wants to merge 1 commit into
masterfrom
konflux/mintmaker/master/github.com-oasdiff-yaml-0.x
Closed

Update module github.com/oasdiff/yaml to v0.1.1 - autoclosed#307
red-hat-konflux[bot] wants to merge 1 commit into
masterfrom
konflux/mintmaker/master/github.com-oasdiff-yaml-0.x

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037v0.1.1 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

oasdiff/yaml (github.com/oasdiff/yaml)

v0.1.1

Compare Source

Bump oasdiff/yaml3 to v0.0.14 (node end positions + origin block-end span). Forwards the new origin end entries to consumers; no API change.

v0.1.0: — Single Unmarshal API + DisableTimestamps (BREAKING)

Compare Source

⚠ BREAKING CHANGE

This release collapses three unmarshal entry points (Unmarshal, UnmarshalWithOriginTree, UnmarshalWithDecodeOpts) into a single Unmarshal that takes a DecodeOpts struct. It also adds DisableTimestamps to DecodeOpts so callers can opt out of YAML 1.1 implicit-timestamp resolution.

Any external caller of the package needs to update call sites. Migration is mechanical.

Final API

func Unmarshal(y []byte, o interface{}, decode DecodeOpts, opts ...JSONOpt) (*OriginTree, error)

type DecodeOpts struct {
    Origin            OriginOpt // opt into origin tracking
    DisableTimestamps bool      // opt out of YAML 1.1 implicit timestamps
}

type OriginOpt struct {
    Enabled bool
    File    string
}

The *OriginTree return is nil when Origin.Enabled is false. The variadic JSONOpt list still configures the JSON unmarshal step.

Why one entry point

UnmarshalWithDecodeOpts already covered every case Unmarshal and UnmarshalWithOriginTree did, and the only public consumer (getkin/kin-openapi) migrates cleanly in a few sites. Maintaining three near-identical wrappers added godoc surface and naming overhead without ergonomic benefit. Folding to one signature also exposes DisableTimestamps to every caller uniformly, which is the right shape now that real-world OpenAPI specs need it (date-shaped strings as map keys are otherwise silently resolved to time.Time and break string-keyed lookup).

Migration cheatsheet

// Plain decode
- err := yaml.Unmarshal(y, &v)
+ _, err := yaml.Unmarshal(y, &v, yaml.DecodeOpts{})

// Origin tracking
- tree, err := yaml.UnmarshalWithOriginTree(y, &v, yaml.OriginOpt{Enabled: true, File: f})
+ tree, err := yaml.Unmarshal(y, &v, yaml.DecodeOpts{Origin: yaml.OriginOpt{Enabled: true, File: f}})

// New: opt out of YAML 1.1 timestamp resolution
+ _, err := yaml.Unmarshal(y, &v, yaml.DecodeOpts{DisableTimestamps: true})

Dependencies

Bumps the underlying oasdiff/yaml3 to v0.0.13, which adds the Decoder.DisableTimestamps(bool) decoder option this release exposes.

PR

#​9

v0.0.9

Compare Source

v0.0.8

Compare Source

v0.0.7

Compare Source

fix: convert non-string map keys to string in OriginTree (integer HTTP status codes)

v0.0.6

Compare Source

fix: handle map[interface{}]interface{} in extractOrigins for integer YAML keys (e.g. HTTP status codes)

v0.0.5-beta.1

Compare Source

v0.0.4

Compare Source

v0.0.3

Compare Source

v0.0.2

Compare Source


Configuration

📅 Schedule: (in timezone Asia/Kolkata)

  • Branch creation
    • "on sunday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

@red-hat-konflux

red-hat-konflux Bot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.23.6 -> 1.25
github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 -> v0.0.14

@red-hat-konflux red-hat-konflux Bot changed the title chore(deps): update module github.com/oasdiff/yaml to v0.0.9 chore(deps): update module github.com/oasdiff/yaml to v0.0.9 - autoclosed Apr 20, 2026
@red-hat-konflux red-hat-konflux Bot closed this Apr 20, 2026
@red-hat-konflux red-hat-konflux Bot deleted the konflux/mintmaker/master/github.com-oasdiff-yaml-0.x branch April 20, 2026 10:32
@red-hat-konflux red-hat-konflux Bot changed the title chore(deps): update module github.com/oasdiff/yaml to v0.0.9 - autoclosed chore(deps): update module github.com/oasdiff/yaml to v0.0.9 Apr 25, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Apr 25, 2026
@red-hat-konflux red-hat-konflux Bot force-pushed the konflux/mintmaker/master/github.com-oasdiff-yaml-0.x branch 2 times, most recently from acb2aa1 to fef33da Compare April 25, 2026 22:18
@red-hat-konflux red-hat-konflux Bot force-pushed the konflux/mintmaker/master/github.com-oasdiff-yaml-0.x branch from fef33da to edd9123 Compare May 16, 2026 22:12
@red-hat-konflux red-hat-konflux Bot changed the title chore(deps): update module github.com/oasdiff/yaml to v0.0.9 chore(deps): update module github.com/oasdiff/yaml to v0.1.0 May 16, 2026
@red-hat-konflux red-hat-konflux Bot changed the title chore(deps): update module github.com/oasdiff/yaml to v0.1.0 chore(deps): update module github.com/oasdiff/yaml to v0.1.0 - autoclosed Jun 24, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jun 24, 2026
@red-hat-konflux red-hat-konflux Bot changed the title chore(deps): update module github.com/oasdiff/yaml to v0.1.0 - autoclosed Update module github.com/oasdiff/yaml to v0.1.0 Jun 27, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jun 27, 2026
@red-hat-konflux red-hat-konflux Bot force-pushed the konflux/mintmaker/master/github.com-oasdiff-yaml-0.x branch 2 times, most recently from edd9123 to 04defe1 Compare June 27, 2026 21:46
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/oasdiff/yaml to v0.1.0 Update module github.com/oasdiff/yaml to v0.1.0 - autoclosed Jul 4, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 4, 2026
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/oasdiff/yaml to v0.1.0 - autoclosed Update module github.com/oasdiff/yaml to v0.1.1 Jul 4, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jul 4, 2026
@red-hat-konflux red-hat-konflux Bot force-pushed the konflux/mintmaker/master/github.com-oasdiff-yaml-0.x branch 2 times, most recently from 04defe1 to 14e020d Compare July 4, 2026 21:42
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/oasdiff/yaml to v0.1.1 Update module github.com/oasdiff/yaml to v0.1.1 - autoclosed Jul 5, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 5, 2026
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/oasdiff/yaml to v0.1.1 - autoclosed Update module github.com/oasdiff/yaml to v0.1.1 Jul 5, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jul 5, 2026
@red-hat-konflux red-hat-konflux Bot force-pushed the konflux/mintmaker/master/github.com-oasdiff-yaml-0.x branch 2 times, most recently from 14e020d to 8c492c6 Compare July 5, 2026 17:29
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/oasdiff/yaml to v0.1.1 Update module github.com/oasdiff/yaml to v0.1.1 - autoclosed Jul 7, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 7, 2026
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.

0 participants