Skip to content

docs: fix AnonCreds present-proof example (proofs field + full registry URLs) - #1810

Merged
yshyn-iohk merged 1 commit into
hyperledger-identus:mainfrom
TheSeydiCharyyev:docs/fix-anoncreds-present-proof-example
Jun 15, 2026
Merged

yshyn-iohk merged 1 commit into
hyperledger-identus:mainfrom
TheSeydiCharyyev:docs/fix-anoncreds-present-proof-example

Conversation

@TheSeydiCharyyev

Copy link
Copy Markdown
Member

Description

The AnonCreds present-proof example in this tutorial is missing the required proofs field, so following it returns 400 RequestBodyDecodingFailure (missing at 'proofs'). It also uses bare placeholder IDs for cred_def_id and schema_id, but the API actually expects the full registry URLs.

This PR fixes the AnonCreds POST /present-proof/presentations example:

  • Adds the required "proofs": [] field (proofs is a non-optional Seq in RequestPresentationInput, so it has to be there).
  • Changes cred_def_id to the full URL: .../credential-definition-registry/definitions/{guid}/definition.
  • Changes schema_id to the full URL: .../schema-registry/schemas/{guid}/schema.

Addresses hyperledger-identus/docs#232

Alternatives Considered (optional)

N/A — documentation-only fix to match the actual API behavior.

Checklist

  • My PR follows the contribution guidelines of this project
  • My PR is free of third-party dependencies that don't comply with the Allowlist
  • I have commented my code, particularly in hard-to-understand areas — N/A (documentation only)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works — N/A (documentation only)
  • I have checked the PR title to follow the conventional commit specification

… and use full registry URLs for cred_def_id/schema_id

Signed-off-by: Seydi Charyyev <seydi.charyev@gmail.com>
@TheSeydiCharyyev
TheSeydiCharyyev requested a review from a team as a code owner June 15, 2026 04:06
@sonarqubecloud

Copy link
Copy Markdown

@yshyn-iohk
yshyn-iohk merged commit 837405b into hyperledger-identus:main Jun 15, 2026
15 checks passed
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

Successfully merging this pull request may close these issues.

2 participants