Closed dashameter closed 2 years ago
This example throws an error:
https://dashplatform.readme.io/docs/reference-data-contracts#document-properties
const contractDocuments = { message: { properties: { body: { type: "object", properties: { objectProperty: { type: "string" }, }, additionalProperties: false, }, header: { type: "string" } }, additionalProperties: false } };
[StateTransitionBroadcastError: strict mode: missing type "object" for keyword "required" at "1118mFsAYpA3Pefu5eaNwuo19Ch3LXRh6w3xwuhF5Lp#/documents/message" (strictTypes)]
It should be:
const contractDocuments = { message: { type: "object", properties: { body: { type: "object", properties: { objectProperty: { type: "string" }, }, additionalProperties: false, }, header: { type: "string" } }, additionalProperties: false } };
Fix supplied via commit @ https://dashplatform.readme.io/ waiting for merge.
Added to triage sheet for tracking.
Fix merged on Readme :+1:
This example throws an error:
https://dashplatform.readme.io/docs/reference-data-contracts#document-properties
[StateTransitionBroadcastError: strict mode: missing type "object" for keyword "required" at "1118mFsAYpA3Pefu5eaNwuo19Ch3LXRh6w3xwuhF5Lp#/documents/message" (strictTypes)]
It should be:
Fix supplied via commit @ https://dashplatform.readme.io/ waiting for merge.