Quick Start: credential-schema DID substitution leaves invalid JSON
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 85/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- json, markdown
- Ambito
- documentation
Direzione di ricerca
Leggi documentation/develop/quick-start.md, righe 143–206, e confronta il campo author dell’esempio di creazione dello schema con il modello CredentialSchemaInput corrispondente collegato nell’issue. Verifica la sostituzione corretta con un parser JSON e conferma che author è una stringa; i criteri di accettazione definiscono quando il lavoro è completato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
User impact
New developers following the first credential-schema example can produce invalid JSON by performing the DID substitution exactly as described, blocking schema creation before credential issuance.
Affected documentation and ownership
- Quick Start Guide — Create a credential schema, observed 2026-10-28 18:49 UTC, HTTP 200. Deployed example text matches current source.
- Editable, portal-local Markdown: documentation/develop/quick-start.md, lines 143–206, revision
fa985dfa33caefa45bf1e9009e1f6f5a445344fb. Not generated/imported API output. - Intended version: the page explicitly selects Cloud Agent 2.0.0. Its matching input model declares
author: String. JSON string syntax is version-independent.
Observed versus expected
The guide says to replace [[publishedPrismDID]] with the previous step's did value, but the request contains:
"author": [[publishedPrismDID]],
Replacing only that placeholder with a DID value leaves a bare did:prism:… token, not a JSON string. The text does not tell readers to add JSON string delimiters.
Expected: the documented substitution yields valid JSON with a string-valued author. Readers who infer and add quotes themselves can work around the problem.
Evidence and reproduction
Python 3.13.15, static JSON parsing on 2026-10-28; no Agent request executed:
- Copy only the JSON body of the linked schema-creation example into
schema-example.json. - Run the following local syntax check (the synthetic DID is not a real identity):
import json
from pathlib import Path
body = Path("schema-example.json").read_text()
did = "did:prism:" + "a" * 64
json.loads(body.replace("[[publishedPrismDID]]", did))
Observed: JSONDecodeError: Expecting value: line 6 column 13 (char 186).
As a control, replacing with json.dumps(did) instead parses successfully and produces a string-valued author. This proves the quoting problem only; it does not claim the synthetic DID is accepted by an Agent or that the full tutorial was run. Deployment revision is not exposed; source/deployed text was compared directly.
Existing work checked
Searched open/closed issues and PRs, including discussion, across docs, cloud-agent and sdk-ts by publishedPrismDID, schema/author, invalid JSON and Quick Start/path; fully paginated inventories were also checked. docs PR #60, #145 and #223 do not correct this author field. cloud-agent PR #1817 repairs different comma/key errors in the imported credential-offer tutorial, not this portal-local schema example. No existing repair for this omission was found.
Acceptance criteria
- Replacing the placeholder as instructed yields syntactically valid JSON with a string-valued author.
- Verify the corrected example with a JSON parser and against the matching Agent version's schema-input contract.
- Lingua principale
- TypeScript
- Stelle
- 15
- Fork
- 8
- Merge medio
- 3g 14h
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hyperledger-identus/docs
-
bug documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
hyperledger-identus/docs#303 ·
-
bug documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
hyperledger-identus/docs#302 ·
-
bug documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
hyperledger-identus/docs#301 ·
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hyperledger-identus/docs#299 ·
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
hyperledger-identus/docs#298 ·
Tutte le issue di hyperledger-identus/docs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:web p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Lets-Parley/Parley#912 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wealthfolio/wealthfolio#2376 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
be-BOP-io-SA/be-BOP#2817 ·
I maintainer di solito rispondono entro 5 giorni
-
documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
sno-ai/sno-station#149 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno