File tree Expand file tree Collapse file tree 9 files changed +162
-4
lines changed
Expand file tree Collapse file tree 9 files changed +162
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,17 @@ Unreleased changes are in the `master` branch.
1111
1212### Fixed
1313
14- - added PlutusV3 to the type field of the script object, to match the actual API response types
14+ - Added PlutusV3 to the type field of the script object, to match the actual API response types
15+
16+ - Exposed dbsync off-chain metadata fetch errors in metadata responses in ` /governance/dreps/:drep_id/metadata `
17+ - Error object structure:
18+ ``` ts
19+ {
20+ " code" : " HASH_MISMATCH" | " CONNECTION_ERROR" | " HTTP_RESPONSE_ERROR" | " DECODE_ERROR" | " SIZE_EXCEEDED" | " UNKNOWN_ERROR" ,
21+ " message" : " Human-readable description of the error"
22+ }
23+ ```
24+ - If metadata are available , the ` error ` field is omitted
1525
1626## [0.1 .82 ] - 2025 - 10 - 20
1727
Original file line number Diff line number Diff line change @@ -6840,6 +6840,27 @@ components:
68406840 bytes :
68416841 type : string
68426842 description : Content of the metadata (raw)
6843+ nullable : true
6844+ error :
6845+ type : object
6846+ description : Present when metadata could not be fetched or validated.
6847+ properties :
6848+ code :
6849+ type : string
6850+ description : Stable machine-readable error code.
6851+ enum :
6852+ - HASH_MISMATCH
6853+ - CONNECTION_ERROR
6854+ - HTTP_RESPONSE_ERROR
6855+ - DECODE_ERROR
6856+ - SIZE_EXCEEDED
6857+ - UNKNOWN_ERROR
6858+ message :
6859+ type : string
6860+ description : Human-readable description of the error.
6861+ required :
6862+ - code
6863+ - message
68436864 required :
68446865 - drep_id
68456866 - hex
Original file line number Diff line number Diff line change @@ -7174,6 +7174,27 @@ components:
71747174 bytes :
71757175 type : string
71767176 description : Content of the metadata (raw)
7177+ nullable : true
7178+ error :
7179+ type : object
7180+ description : Present when metadata could not be fetched or validated.
7181+ properties :
7182+ code :
7183+ type : string
7184+ description : Stable machine-readable error code.
7185+ enum :
7186+ - HASH_MISMATCH
7187+ - CONNECTION_ERROR
7188+ - HTTP_RESPONSE_ERROR
7189+ - DECODE_ERROR
7190+ - SIZE_EXCEEDED
7191+ - UNKNOWN_ERROR
7192+ message :
7193+ type : string
7194+ description : Human-readable description of the error.
7195+ required :
7196+ - code
7197+ - message
71777198 required :
71787199 - drep_id
71797200 - hex
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 94259425 },
94269426 "bytes": {
94279427 "type": "string",
9428- "description": "Content of the metadata (raw)"
9428+ "description": "Content of the metadata (raw)",
9429+ "nullable": true
9430+ },
9431+ "error": {
9432+ "type": "object",
9433+ "description": "Present when metadata could not be fetched or validated.",
9434+ "properties": {
9435+ "code": {
9436+ "type": "string",
9437+ "description": "Stable machine-readable error code.",
9438+ "enum": [
9439+ "HASH_MISMATCH",
9440+ "CONNECTION_ERROR",
9441+ "HTTP_RESPONSE_ERROR",
9442+ "DECODE_ERROR",
9443+ "SIZE_EXCEEDED",
9444+ "UNKNOWN_ERROR"
9445+ ]
9446+ },
9447+ "message": {
9448+ "type": "string",
9449+ "description": "Human-readable description of the error."
9450+ }
9451+ },
9452+ "required": [
9453+ "code",
9454+ "message"
9455+ ]
94299456 }
94309457 },
94319458 "required": [
Original file line number Diff line number Diff line change @@ -7174,6 +7174,27 @@ components:
71747174 bytes :
71757175 type : string
71767176 description : Content of the metadata (raw)
7177+ nullable : true
7178+ error :
7179+ type : object
7180+ description : Present when metadata could not be fetched or validated.
7181+ properties :
7182+ code :
7183+ type : string
7184+ description : Stable machine-readable error code.
7185+ enum :
7186+ - HASH_MISMATCH
7187+ - CONNECTION_ERROR
7188+ - HTTP_RESPONSE_ERROR
7189+ - DECODE_ERROR
7190+ - SIZE_EXCEEDED
7191+ - UNKNOWN_ERROR
7192+ message :
7193+ type : string
7194+ description : Human-readable description of the error.
7195+ required :
7196+ - code
7197+ - message
71777198 required :
71787199 - drep_id
71797200 - hex
Original file line number Diff line number Diff line change @@ -7342,7 +7342,17 @@ export interface components {
73427342 [ key : string ] : unknown ;
73437343 } | unknown [ ] | number | boolean | null ;
73447344 /** @description Content of the metadata (raw) */
7345- bytes : string ;
7345+ bytes : string | null ;
7346+ /** @description Present when metadata could not be fetched or validated. */
7347+ error ?: {
7348+ /**
7349+ * @description Stable machine-readable error code.
7350+ * @enum {string}
7351+ */
7352+ code : "HASH_MISMATCH" | "CONNECTION_ERROR" | "HTTP_RESPONSE_ERROR" | "DECODE_ERROR" | "SIZE_EXCEEDED" | "UNKNOWN_ERROR" ;
7353+ /** @description Human-readable description of the error. */
7354+ message : string ;
7355+ } ;
73467356 } ;
73477357 /** @example [
73487358 * {
Original file line number Diff line number Diff line change @@ -29,6 +29,27 @@ properties:
2929 bytes :
3030 type : string
3131 description : Content of the metadata (raw)
32+ nullable : true
33+ error :
34+ type : object
35+ description : Present when metadata could not be fetched or validated.
36+ properties :
37+ code :
38+ type : string
39+ description : Stable machine-readable error code.
40+ enum :
41+ - HASH_MISMATCH
42+ - CONNECTION_ERROR
43+ - HTTP_RESPONSE_ERROR
44+ - DECODE_ERROR
45+ - SIZE_EXCEEDED
46+ - UNKNOWN_ERROR
47+ message :
48+ type : string
49+ description : Human-readable description of the error.
50+ required :
51+ - code
52+ - message
3253required :
3354 - drep_id
3455 - hex
Original file line number Diff line number Diff line change @@ -11992,12 +11992,39 @@ under which it is valid
1199211992 "properties": {
1199311993 "bytes": {
1199411994 "description": "Content of the metadata (raw)",
11995+ "nullable": true,
1199511996 "type": "string",
1199611997 },
1199711998 "drep_id": {
1199811999 "description": "Bech32 encoded addresses",
1199912000 "type": "string",
1200012001 },
12002+ "error": {
12003+ "description": "Present when metadata could not be fetched or validated.",
12004+ "properties": {
12005+ "code": {
12006+ "description": "Stable machine-readable error code.",
12007+ "enum": [
12008+ "HASH_MISMATCH",
12009+ "CONNECTION_ERROR",
12010+ "HTTP_RESPONSE_ERROR",
12011+ "DECODE_ERROR",
12012+ "SIZE_EXCEEDED",
12013+ "UNKNOWN_ERROR",
12014+ ],
12015+ "type": "string",
12016+ },
12017+ "message": {
12018+ "description": "Human-readable description of the error.",
12019+ "type": "string",
12020+ },
12021+ },
12022+ "required": [
12023+ "code",
12024+ "message",
12025+ ],
12026+ "type": "object",
12027+ },
1200112028 "hash": {
1200212029 "description": "Hash of the metadata file",
1200312030 "example": "69c0c68cb57f4a5b4a87bad896fc274678e7aea98e200fa14a1cb40c0cab1d8c"",
You can’t perform that action at this time.
0 commit comments