You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original snippet was diff.Get(&diff.Config{}, spec1, spec2) — but
spec1 and spec2 were undefined and a reader couldn't actually run it.
Adds the imports and the kin-openapi LoadFromFile calls so the example
is a complete, copyable program. Switches to diff.NewConfig() and notes
why (the constructor initializes maps that &diff.Config{} leaves nil).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Note that oasdiff expects [OpenAPI References](https://swagger.io/docs/specification/using-ref/) to be resolved.
16
-
References are normally resolved automatically when you load the spec. In other cases you can resolve refs using [Loader.ResolveRefsIn](https://pkg.go.dev/github.com/getkin/kin-openapi/openapi3#Loader.ResolveRefsIn).
31
+
oasdiff expects [OpenAPI references](https://swagger.io/docs/specification/using-ref/) to be resolved. The kin-openapi loader resolves them automatically when you load the spec; if you build a spec another way, resolve them with [Loader.ResolveRefsIn](https://pkg.go.dev/github.com/getkin/kin-openapi/openapi3#Loader.ResolveRefsIn).
0 commit comments