diff --git a/playground/nutech/issue2/decisionbuttons-uischema.json b/playground/nutech/issue2/decisionbuttons-uischema.json index 558f0acd..23a9214e 100644 --- a/playground/nutech/issue2/decisionbuttons-uischema.json +++ b/playground/nutech/issue2/decisionbuttons-uischema.json @@ -1,15 +1,26 @@ { "type": "object", "properties": { - "approve": { - "type": "buttons", - "title": "Approve", - "propertyOrder": 1 - }, - "reject": { - "type": "string", - "title": "Reject", - "propertyOrder": 2 + "buttons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["button"] + }, + "title": { + "type": "string" + }, + "propertyOrder": { + "type": "integer" + } + }, + "required": ["type", "title", "propertyOrder"] + } } + }, + "required": ["buttons"] } }