Method: SimpleJSONSchema::Scope#merge
- Defined in:
- lib/simple_json_schema/scope.rb
#merge(data_paths: self.data_paths, schema_paths: self.schema_paths, type: nil, parent_uri: nil) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/simple_json_schema/scope.rb', line 38 def merge(data_paths: self.data_paths, schema_paths: self.schema_paths, type: nil, parent_uri: nil) self.class.new(**scope.merge(data_paths: data_paths, schema_paths: schema_paths, type: type, parent_uri: parent_uri || URIExtender.join_uri(self.parent_uri, id))) end |