Skip to content

Commit

Permalink
update json_schemer gem to v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed Sep 6, 2023
1 parent 22866e4 commit 36f67a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rggen/duh/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def schema

def build_schema
schema_data = read_schema
resolver = ->(uri) { uri.path == 'defs' && schema_data['defs'] || nil }
resolver = ->(uri) { uri.path == '/defs' && schema_data['defs'] || nil }
JSONSchemer.schema(schema_data['component'], ref_resolver: resolver)
end

Expand Down
2 changes: 1 addition & 1 deletion rggen-duh.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.7'

spec.add_runtime_dependency 'json_refs', '>= 0.1.4'
spec.add_runtime_dependency 'json_schemer', '>= 0.2.17'
spec.add_runtime_dependency 'json_schemer', '>= 2.0.0'
spec.add_runtime_dependency 'rb_json5', '>= 0.3.0'

spec.add_development_dependency 'bundler'
Expand Down

0 comments on commit 36f67a9

Please sign in to comment.