From 0aa873d0d4bd5f1aa070bde02af21d99a0f75606 Mon Sep 17 00:00:00 2001 From: bgins Date: Thu, 29 Feb 2024 23:37:17 +0000 Subject: [PATCH] chore(schemas): update OpenRPC API doc and JSON schemas --- homestar-runtime/schemas/api.json | 12 ++++++++++-- homestar-runtime/schemas/workflow.json | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/homestar-runtime/schemas/api.json b/homestar-runtime/schemas/api.json index 2bb216d4..7213e1d5 100644 --- a/homestar-runtime/schemas/api.json +++ b/homestar-runtime/schemas/api.json @@ -1393,8 +1393,16 @@ ], "properties": { "nnc": { - "description": "A 12-byte or 16-byte nonce. Use empty string for no nonce.", - "type": "string" + "description": "A 12-byte or 16-byte nonce encoded as IPLD bytes. Use empty string for no nonce.", + "oneOf": [ + { + "$ref": "#/definitions/ipld_bytes" + }, + { + "type": "string", + "const": "" + } + ] }, "op": { "description": "Function executor", diff --git a/homestar-runtime/schemas/workflow.json b/homestar-runtime/schemas/workflow.json index b55c23ea..d09a2b06 100644 --- a/homestar-runtime/schemas/workflow.json +++ b/homestar-runtime/schemas/workflow.json @@ -200,8 +200,16 @@ ], "properties": { "nnc": { - "description": "A 12-byte or 16-byte nonce. Use empty string for no nonce.", - "type": "string" + "description": "A 12-byte or 16-byte nonce encoded as IPLD bytes. Use empty string for no nonce.", + "oneOf": [ + { + "$ref": "#/definitions/ipld_bytes" + }, + { + "type": "string", + "const": "" + } + ] }, "op": { "description": "Function executor",