diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d03bddb2..56ab34252 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed -* Corrected inconsistent camel-casing of the `fdc3.timeRange` context type which appeared as `fdc3.timerange` in a number of places. ([#1240][https://github.com/finos/FDC3/pull/1240]) +* Corrected inconsistent camel-casing of the `fdc3.timeRange` context type which appeared as `fdc3.timerange` in a number of places. ([#1240](https://github.com/finos/FDC3/pull/1240)) +* Corrected an error in the `fdc3.TransactionResult` schema which resulted in the `message` property being omitted from the generated TypeScript types for it. ([#1251](https://github.com/finos/FDC3/pull/1251)) ## [FDC3 Standard 2.1](https://github.com/finos/FDC3/compare/v2.0..v2.1) - 2023-09-13 diff --git a/schemas/context/transactionresult.schema.json b/schemas/context/transactionresult.schema.json index 2a8cca61c..4bc0a6ff0 100644 --- a/schemas/context/transactionresult.schema.json +++ b/schemas/context/transactionresult.schema.json @@ -26,13 +26,13 @@ "$ref": "context.schema.json#", "title": "Transaction Result Context", "description": "A context object returned by the transaction, possibly with updated data." + }, + "message": { + "type": "string", + "title": "Transaction Message", + "description": "A human readable message describing the outcome of the transaction." } }, - "message": { - "type": "string", - "title": "Transaction Message", - "description": "A human readable message describing the outcome of the transaction." - }, "required": [ "type", "status" diff --git a/src/context/ContextTypes.ts b/src/context/ContextTypes.ts index b54d4c417..ff5c7a594 100644 --- a/src/context/ContextTypes.ts +++ b/src/context/ContextTypes.ts @@ -1938,6 +1938,10 @@ export interface TransactionResult { * A context object returned by the transaction, possibly with updated data. */ context?: ContextElement; + /** + * A human readable message describing the outcome of the transaction. + */ + message?: string; /** * The status of the transaction being reported. */ @@ -2766,6 +2770,7 @@ const typeMap: any = { ], "any"), "TransactionResult": o([ { json: "context", js: "context", typ: u(undefined, r("ContextElement")) }, + { json: "message", js: "message", typ: u(undefined, "") }, { json: "status", js: "status", typ: r("TransactionStatus") }, { json: "type", js: "type", typ: r("TransactionResultType") }, { json: "id", js: "id", typ: u(undefined, m("any")) },