Skip to content

INJICERT #1212 [Fix] OpenAPI spec doesn't match the current nonce and issuer metadata behaviour - #1223

Open
bernard42 wants to merge 1 commit into
inji:developfrom
bernard42:issue-1212
Open

bernard42 wants to merge 1 commit into
inji:developfrom
bernard42:issue-1212

Conversation

@bernard42

@bernard42 bernard42 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1212

Updates inji-certify-openapi.yaml to match the code:

  • Nonce endpoint documented at POST /nonce (was /issuance/nonce)
  • c_nonce / c_nonce_expires_in removed from the token and credential error responses
  • Issuer metadata: added nonce_endpoint; per-configuration claims/display/order replaced by credential_metadata

Testing: spec parses and all $refs resolve; each change checked against the code.

Other spec gaps raised with @mayuradesh & @hegdenitin on #1212.

Summary by CodeRabbit

  • Documentation
    • Updated the API reference to show the nonce endpoint at /nonce and document when issuer metadata includes a nonce endpoint.
    • Updated credential configuration details to describe localized display information, claim paths, and optional mandatory flags.
    • Removed nonce fields from the documented token response.

… issuer metadata behaviour

- Document the nonce endpoint at /nonce instead of /issuance/nonce
- Remove c_nonce and c_nonce_expires_in from the token and credential error responses
- Add nonce_endpoint and credential_metadata to the issuer metadata

Signed-off-by: bernardlamptey42 <bernardlamptey42@yahoo.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The OpenAPI specification renames the nonce endpoint to /nonce, adds a conditional nonce_endpoint property to issuer metadata, and moves credential display and claim information into credential_metadata. It also removes nonce fields from response schemas and from the token response.

Merge Risk: Minimal · up to 007e7

This change updates the API specification to match the current nonce endpoint and credential metadata behavior. It does not change runtime behavior, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the issue (INJICERT #1212) and the main fix: the OpenAPI spec is being aligned with the current nonce and issuer metadata behaviour. The raw summary confirms the changes: the nonce pat…
Linked Issues check Passed Issue #1212 is the only active direct target. Its coding requirements are the spec updates in docs/stoplight_docs/inji-certify-openapi.yaml. The whole-PR diff (merge base to head) shows each one:
1. N…
Out of Scope Changes check Passed All changes in the diff touch only docs/stoplight_docs/inji-certify-openapi.yaml. Each hunk maps to one of the four #1212 items: the path rename, the nonce field removals, the nonce_endpoint addition,…
Full details: Title check

Explanation

The title names the issue (INJICERT #1212) and the main fix: the OpenAPI spec is being aligned with the current nonce and issuer metadata behaviour. The raw summary confirms the changes: the nonce path moves to /nonce, c_nonce fields are removed from the token response, nonce_endpoint is added, and credential_metadata replaces claims, display, and order. The title is specific and matches the changeset, though it does not list every detail.

Full details: Linked Issues check

Explanation

Issue #1212 is the only active direct target. Its coding requirements are the spec updates in docs/stoplight_docs/inji-certify-openapi.yaml. The whole-PR diff (merge base to head) shows each one:

  1. Nonce endpoint: path changed from /issuance/nonce to /nonce.
  2. Token response: c_nonce and c_nonce_expires_in removed from required fields and properties.
  3. VC error response: c_nonce and c_nonce_expires_in removed from the error schema.
  4. Issuer metadata: nonce_endpoint added to CredentialIssuerMetadataDTO. claims, display, and order replaced by credential_metadata (CredentialMetadataDTO) in the configuration schema.
    The optional status-list lookup suggestion is not an acceptance criterion, so it does not apply. The diff confirms the PR description. I did not check that the new $refs (MetaDataDisplayDTO, Display) exist in the file, and I did not verify the endpoint against controller code. These checks were not needed for the requirements above, and the author reports both were done.
Full details: Out of Scope Changes check

Explanation

All changes in the diff touch only docs/stoplight_docs/inji-certify-openapi.yaml. Each hunk maps to one of the four #1212 items: the path rename, the nonce field removals, the nonce_endpoint addition, and the credential_metadata restructuring with its new CredentialMetadataDTO schema. No unrelated files or hunks appear. The other spec gaps mentioned in the PR description are explicitly deferred and are not in this diff.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI; Enforced overrides: Organization
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ef7b5586-f2b5-4524-9857-673305a132a8
Commits

Reviewing files that changed from the base of the PR and between 41980e8 and 007e7f6.

Files selected for processing: 1

  • docs/stoplight_docs/inji-certify-openapi.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@mayuradesh mayuradesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional (#1212): update the status update API docs (OpenAPI YAML only, no code change)

The code already does the right thing. PUT /credentials/status looks up the status list by its UUID (status_list_credential.id), and if id is sent it must match statusListCredential. But the example in the spec sends the full URL plus id: …#5, so anyone who copies it gets STATUS_ID_MISMATCH or STATUS_LIST_NOT_FOUND.

Please make these changes in docs/stoplight_docs/inji-certify-openapi.yaml only:

  • Request example: use the UUID and remove id:
    credentialStatus:
      statusPurpose: revocation
      statusListIndex: 5
      type: BitstringStatusListEntry
      statusListCredential: '7bf52e81-f3bb-40ec-a0f9-a714847fd067'
    status: false
  • statusListCredential description: The UUID of the Status List Credential (status_list_credential.id), not the status list URL.
  • id description: Optional. If sent, it must equal statusListCredential.
  • 404 description: No status list credential exists for the given statusListCredential ID. (remove the reference to credentialId)

No Java changes are needed for this.

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