From 04ba0a6d72cb79581cc8d15f98e4d7d1d79cc4e8 Mon Sep 17 00:00:00 2001 From: Dipak Halkude Date: Mon, 10 Nov 2025 14:13:26 +0530 Subject: [PATCH] fix: display empty object instead of string for cyclic references in examples --- src/core/plugins/json-schema-5-samples/fn/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/plugins/json-schema-5-samples/fn/index.js b/src/core/plugins/json-schema-5-samples/fn/index.js index 44e677c0c4a..1503883f2bc 100644 --- a/src/core/plugins/json-schema-5-samples/fn/index.js +++ b/src/core/plugins/json-schema-5-samples/fn/index.js @@ -38,7 +38,8 @@ const primitives = { "number": () => 0, "number_float": () => 0.0, "integer": () => 0, - "boolean": (schema) => typeof schema.default === "boolean" ? schema.default : true + "boolean": (schema) => typeof schema.default === "boolean" ? schema.default : true, + "any": ()=> ({}) } const primitive = (schema) => {