From cac2fa9cd012baf6722b590382d634eaec103735 Mon Sep 17 00:00:00 2001 From: vringar Date: Tue, 6 Feb 2024 21:17:02 +0100 Subject: [PATCH] fix(schema): allow unexpanded form in schema --- schemas/js_instrument_settings.schema.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/schemas/js_instrument_settings.schema.json b/schemas/js_instrument_settings.schema.json index d3c1c81e2..e2e65a52e 100644 --- a/schemas/js_instrument_settings.schema.json +++ b/schemas/js_instrument_settings.schema.json @@ -30,8 +30,8 @@ "title": "Properties to instrument", "description": "An array of properties to instrument on this object. If array is empty, then all properties are instrumented.", "type": ["array", "null"], - "items": - { + "items": { + "anyOf": [{ "type": "object", "properties": { "depth": { @@ -45,6 +45,11 @@ } } }, + { + "type": "string" + }] + } + , "default": [] }, "nonExistingPropertiesToInstrument": {