chore: migrate from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3
Merged
AD
10d ago+240+240+012345678901234567890123456789-347-347-012345678901234567890123456789
Migrates imports and go.mod module dependencies from legacy gopkg.in/yaml.v3 to maintained go.yaml.in/yaml/v3 (v3.0.5).
Resolves #201.
Summary of changes:
- Promoted direct module dependency on go.yaml.in/yaml/v3 v3.0.5 across go.mod manifests.
- Migrated package imports across the codebase from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3.
- Bridged external query evaluators (jsonpath, yamlpath) in overlay with zero-copy node casting to maintain compatibility without performance degradation.
- All unit tests and go vet checks pass cleanly.
Summary by cubic
Migrates the YAML library from the unmaintained gopkg.in/yaml.v3 to the maintained go.yaml.in/yaml/v3 fork, resolving #201.
- Updates all YAML imports and
go.moddependencies across the codebase, includingcmd/openapi,openapi/linter/customrules, andjsonschema/oas3/tests, and aligns their root-module pseudo-versions. - Bumps
github.com/speakeasy-api/jsonpathto v0.7.0 and switches the jsonpath and yamlpath evaluators togo.yaml.in/yaml/v3, dropping the bridge code that converted nodes between the two modules. - Encodes typed-nil legacy yaml nodes as null in
sequencedmap.