Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crunk1 opened this issue Jul 17, 2024 · 0 comments

Comments

@crunk1
Copy link

crunk1 commented Jul 17, 2024

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant