Skip to content

feat: expose errors related to fetching off-chain metadata #774

feat: expose errors related to fetching off-chain metadata

feat: expose errors related to fetching off-chain metadata #774

Triggered via push September 18, 2025 08:31
Status Failure
Total duration 49s
Artifacts

CI.yaml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

2 errors
build (20.x)
Process completed with exit code 1.
test/tests/get-schema-for-endpoint.test.ts > getSchemaForEndpoint > anyOf case - all refs: test/tests/get-schema-for-endpoint.test.ts#L225
AssertionError: expected { Object (response, params) } to strictly equal { Object (params, response) } - Expected + Received Object { "params": Object { "properties": Object { "pool_id": Object { "type": "string", }, }, "type": "object", }, "response": Object { "200": Object { "anyOf": Array [ Object { "properties": Object { "description": Object { "description": "Description of the stake pool", "example": "The best pool ever", "nullable": true, "type": "string", }, "error": Object { "description": "Present when metadata could not be fetched or validated.", - "nullable": true, "properties": Object { "code": Object { "description": "Stable machine-readable error code.", "enum": Array [ "HASH_MISMATCH", "CONNECTION_ERROR", "HTTP_RESPONSE_ERROR", "DECODE_ERROR", "SIZE_EXCEEDED", "UNKNOWN_ERROR", ], "type": "string", }, "message": Object { "description": "Human-readable description of the error.", "type": "string", }, }, "required": Array [ "code", "message", ], "type": "object", }, "hash": Object { "description": "Hash of the metadata file", "example": "47c0c68cb57f4a5b4a87bad896fc274678e7aea98e200fa14a1cb40c0cab1d8c", "nullable": true, "type": "string", }, "hex": Object { "description": "Hexadecimal pool ID", "example": "0f292fcaa02b8b2f9b3c8f9fd8e0bb21abedb692a6d5058df3ef2735", "type": "string", }, "homepage": Object { "description": "Home page of the stake pool", "example": "https://stakentus.com/", "nullable": true, "type": "string", }, "name": Object { "description": "Name of the stake pool", "example": "Stake Nuts", "nullable": true, "type": "string", }, "pool_id": Object { "description": "Bech32 pool ID", "example": "pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy", "type": "string", }, "ticker": Object { "description": "Ticker of the stake pool", "example": "NUTS", "nullable": true, "type": "string", }, "url": Object { "description": "URL to the stake pool metadata", "example": "https://stakenuts.com/mainnet.json", "nullable": true, "type": "string", }, }, "required": Array [ "pool_id", "hex", "url", "hash", "ticker", "name", "description", "homepage", ], "type": "object", }, Object { "type": "object", }, ], }, "400": Object { "properties": Object { "error": Object { "example": "Bad Request", "type": "string", }, "message": Object { "example": "Backend did not understand your request.", "type": "string", }, "status_code": Object { "example": 400, "type": "integer", }, },