From 82ee48a931eada5c162dfcd0f94b984f1deadba2 Mon Sep 17 00:00:00 2001 From: Dmitry Repchevsky Date: Thu, 12 Sep 2024 17:46:40 +0200 Subject: [PATCH] Generalize ResultsetInstance Generalize results using $dynamicRef / $dynamicAnchor pattern --- framework/json/responses/sections/beaconResultsets.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/json/responses/sections/beaconResultsets.json b/framework/json/responses/sections/beaconResultsets.json index 6ddeb3a88..97798b811 100644 --- a/framework/json/responses/sections/beaconResultsets.json +++ b/framework/json/responses/sections/beaconResultsets.json @@ -18,9 +18,13 @@ "type": "object" }, "results": { - "items": { + "$defs": { + "$dynamicAnchor": "resultEntryType", "type": "object" }, + "items": { + "$dynamicRef": "#resultEntryType" + }, "minItems": 0, "type": "array" }, @@ -65,4 +69,4 @@ ], "title": "Beacon ResultSet", "type": "object" -} \ No newline at end of file +}