Skip to content

Commit

Permalink
Update json_schemer → 1.0.3 (unknown) (#52)
Browse files Browse the repository at this point in the history
* Update json_schemer to version 1.0.3

* Fix uri encoding of paths

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Munteanu <konstantin.munteanu@kaiahealth.com>
  • Loading branch information
depfu[bot] and mkon authored Jul 7, 2023
1 parent 1efae0a commit 8de8fd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/openapi_contracts/doc/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def follow_refs

# Generates a fragment pointer for the current schema path
def fragment
pointer.map { |p| p.gsub('/', '~1') }.join('/').then { |s| "#/#{s}" }
pointer.map { |p| URI.encode_www_form_component(p.gsub('/', '~1')) }.join('/').then { |s| "#/#{s}" }
end

delegate :dig, :fetch, :keys, :key?, :[], :to_h, to: :as_h
Expand Down
2 changes: 1 addition & 1 deletion openapi_contracts.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.files = Dir['lib/**/*', 'README.md']

s.add_dependency 'activesupport', '>= 6.1', '< 8'
s.add_dependency 'json_schemer', '~> 0.2.20'
s.add_dependency 'json_schemer', '~> 1.0.3'

s.add_development_dependency 'json_spec', '~> 1.1.5'
s.add_development_dependency 'rack', '~> 3.0.0'
Expand Down

0 comments on commit 8de8fd6

Please sign in to comment.