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

Add support for Document Hashing #321

Open
ThomasRooney opened this issue Aug 15, 2024 · 1 comment
Open

Add support for Document Hashing #321

ThomasRooney opened this issue Aug 15, 2024 · 1 comment

Comments

@ThomasRooney
Copy link
Contributor

Being able to Hash() an openapi document and get back a stable checksum (i.e. regardless of indentation changes) would be very useful.

I see this function here, and would love for it to be enabled? What's the known gap?

https://github.com/pb33f/libopenapi/blob/c3eb16d4e482e8c432b50bfc66ef28fb7a9514fb/datamodel/low/v3/document.go#L119C4-L121

@daveshanley
Copy link
Member

Something is not hashing (or was not hashing) consistently.

I have not checked and I did not have time to debug it, so I froze the code in stone, for another time when I had the opportunity.

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

2 participants