openapi-changes icon indicating copy to clipboard operation
openapi-changes copied to clipboard

libopenapi outdated, update to 0.18.1

Open mguentner opened this issue 1 year ago • 2 comments

I am seeing issues with a schema that uses JSON pointer in the current dependency configuration of openapi-changes:

  ERROR   component '#/components/schemas/OneOrMany<String, PreferOne>' does not exist in the specification
Error: unable to process specifications

Using libopenapi in v0.16.2 (the current version openapi-changes requires) in test binary, roughly the code described here, results in the same error message.

component '#/components/schemas/OneOrMany<String, PreferOne>' does not exist in the specification

The same binary with libopenapi v0.18.1 successfully parses the schema.

go mod edit -require github.com/pb33f/[email protected] && go get && go build

then solves the issue in openapi-changes as well. :+1:

Is anything blocking the update at the moment?

mguentner avatar Sep 25 '24 10:09 mguentner

FWIW, just did a bisect in libopenapi and https://github.com/pb33f/libopenapi/commit/f33aa2fee0c9ee0ec6b800cfe36eef1506e5e424 fixed the issue.

mguentner avatar Sep 25 '24 11:09 mguentner

Hey sorry. I will be offline for a week or two. I am going through some personal challenges and I am not working.

daveshanley avatar Sep 25 '24 14:09 daveshanley

Closed with https://github.com/pb33f/openapi-changes/commit/c448806114a3ce10a5654f669ca05815301322d3

mguentner avatar Oct 09 '24 12:10 mguentner

Thank you!

mguentner avatar Oct 09 '24 12:10 mguentner