From 87f790b3213468f9dac8969527875a59758afee0 Mon Sep 17 00:00:00 2001 From: Patricio de Villa Date: Thu, 7 Mar 2024 16:02:36 -0600 Subject: [PATCH] allow in Section --- Gemfile.lock | 2 +- lib/jsf/forms/section.rb | 3 +++ lib/jsf/version.rb | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ce8cb47..6dc2a88 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,7 +8,7 @@ GIT PATH remote: . specs: - json_schema_form (0.15.23) + json_schema_form (0.15.24) activesupport (~> 6) dry-schema (~> 1.13) json_schemer (= 2.1.1) diff --git a/lib/jsf/forms/section.rb b/lib/jsf/forms/section.rb index 7728ba2..6212346 100644 --- a/lib/jsf/forms/section.rb +++ b/lib/jsf/forms/section.rb @@ -73,6 +73,9 @@ def dry_schema(passthru) optional(:minItems).filled(:integer) required(:items).hash required(:type) + optional(:$id).filled(:string) + optional(:title).maybe(:string) + # optional(:default) end end diff --git a/lib/jsf/version.rb b/lib/jsf/version.rb index e385eba..e454de6 100644 --- a/lib/jsf/version.rb +++ b/lib/jsf/version.rb @@ -1,3 +1,3 @@ module JSF - VERSION = "0.15.23" + VERSION = "0.15.24" end