oasdiff
oasdiff copied to clipboard
"Error resolving reference/map key not found" when running oasdiff across the set of files with intensive external refs
I am experimenting with oasdiff in composed mode against OpenAPI files which have many cross-file $refs. I found a strange issue where an error (or errors) appear from time to time. Sometimes it passes without issues, and sometimes it fails with an error like this (could be in different files about different schemas):
Error: failed to load base specs from glob "../api-metadata-specs2/openapi/jws-json-rpc/*-openapi.yml": failed to load "..\\api-metadata-specs2\\openapi\\jws-json-rpc\\jws-billing-openapi.yml": error resolving reference "jws-digitalline-openapi.yml#/components/schemas/PhoneLineAssignment": error resolving reference "jws-extensions-openapi.yml#/components/schemas/ExtensionBriefInfo": map key "ShippingInfo" not found
I use oasdiff version 1.10.11.
The problem can be also reproduced in non-composed mode. It seems to be sourced in kin-openapi
.
I could not create an isolated test to reproduce.
Provided a subset of our OpenAPI files to reproduce to @reuvenharrison privately.