Skip to content

Commit

Permalink
refactor SimpleWrap instantiate with new_schema_module
Browse files Browse the repository at this point in the history
  • Loading branch information
notEthan committed Jan 19, 2022
1 parent 16b2423 commit 1d4696c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jsi/simple_wrap.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

module JSI
SimpleWrap = JSI::JSONSchemaOrgDraft06.new_schema({
SimpleWrap = JSI::JSONSchemaOrgDraft06.new_schema_module({
"additionalProperties": {"$ref": "#"},
"items": {"$ref": "#"}
}).jsi_schema_module
})

# SimpleWrap is a JSI schema module which recursively wraps nested structures
module SimpleWrap
Expand Down

0 comments on commit 1d4696c

Please sign in to comment.