lib/open_api/paths.rb in open_api-0.6.0 vs lib/open_api/paths.rb in open_api-0.6.1
- old
+ new
@@ -2,10 +2,10 @@
# https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsObject
class Paths
extend Forwardable
prepend EquatableAsContent
- def initialize(path_hash)
+ def initialize(path_hash = {})
self.path_hash = path_hash.with_indifferent_access
end
def_delegators :path_hash, :[], :[]=