libopenapi icon indicating copy to clipboard operation
libopenapi copied to clipboard

SpecIndex.GetAll* functions inconsistent - make consistent with GetAllSchemas.

Open crunk1 opened this issue 7 months ago • 0 comments

GetAllSchemas returns references to schemas from components, inlined schemas, and $ref schemas.

Most of the other GetAll* functions only return references to components, like GetAllRequestBodies, for example:

GetAllRequestBodies will return all requestBodies found in the document (under components)

So GetAllRequestBodies won't return inlined or $ref request bodies.


Tangentially, the GetAllSchemas function doc is a little confusing. It says schemas come in the order inlined, components, refs. But then it says sorted by line number.

Also, thank you for your great libraries. :)

crunk1 avatar Jul 17 '24 04:07 crunk1