-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix reference json payload file #95
Conversation
…reqs In reference payload for the verification request: * Added required credentialConfigurationId fiel, hardcoded to example id. * Removed empty Id field that caused serde to panic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The file seems to be unused, but we could refer to it in the
openapi.yaml
. - The filename
open-badge-request.json
suggests an Open Badge 3.0 payload, where the proposed change indicates a W3C VC Credential.
I used the file to debug with https://httpie.io/ (http client). But dropping it entirely is fine with me too. I used it as documentation. I prefer httpie for its simplicity, it's not a bloated GUI app (postman) and rather ergonomic compared to curl. I guess the file could be used with curl too, though. Having reference payloads anywhere is IMO very good documentation: much better than poring through a 400+ line postman_collection.json. But maybe that's just me :) In any case: having documentation that's outdated because its unused is probably worse than not having it at all. So, fine with me to close this PR and remove the stale "documentation". |
That was exactly what I was trying to debug and research. Somehow (my configuration of) the SSI-agent panicked on the OB so I was looking at how the payload should be shaped. |
I agree that we should consider adding something simpler for "quick try out"/developers/external contributors (such as httpie). Our main goal is to provide technical API documentation through an OpenAPI file (can be found in We will try to find a nice way to generate httpie examples that use the same payloads as in the OpenAPI file.
Yes, you're absolutely right. 👍 I share the same opinion and this shouldn't have happened. We'll investigate how we could best detect such inconsistencies (preferably automated).
We can leave it open until the upcoming "Documentation refactoring" PR is done and then decide. Thank you for the great feedback! It's much appreciated 👍 |
Closing due to inactivity. API documentation will be auto-generated in #116. |
Description of change
Added a required field. Removed a field that caused the serde to panic.
Links to any relevant issues
No known issue.
How the change has been tested
Manually using curl and httpie.
Definition of Done checklist
Add an
x
to the boxes that are relevant to your changes.I have performed a self-review of my own codeI have commented my code, particularly in hard-to-understand areasI have added tests that prove my fix is effective or that my feature worksNew and existing unit tests pass locally with my changes