json_schema 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/json_schema/schema.rb +4 -4
- data/lib/json_schema.rb +3 -0
- metadata +1 -1
    
        data/lib/json_schema/schema.rb
    CHANGED
    
    | @@ -198,17 +198,17 @@ module JsonSchema | |
| 198 198 | 
             
                  end
         | 
| 199 199 | 
             
                end
         | 
| 200 200 |  | 
| 201 | 
            -
                def expand_references
         | 
| 201 | 
            +
                def expand_references(options = {})
         | 
| 202 202 | 
             
                  expander = ReferenceExpander.new
         | 
| 203 | 
            -
                  if expander.expand(self)
         | 
| 203 | 
            +
                  if expander.expand(self, options)
         | 
| 204 204 | 
             
                    [true, nil]
         | 
| 205 205 | 
             
                  else
         | 
| 206 206 | 
             
                    [false, expander.errors]
         | 
| 207 207 | 
             
                  end
         | 
| 208 208 | 
             
                end
         | 
| 209 209 |  | 
| 210 | 
            -
                def expand_references!
         | 
| 211 | 
            -
                  ReferenceExpander.new.expand!(self)
         | 
| 210 | 
            +
                def expand_references!(options = {})
         | 
| 211 | 
            +
                  ReferenceExpander.new.expand!(self, options)
         | 
| 212 212 | 
             
                  true
         | 
| 213 213 | 
             
                end
         | 
| 214 214 |  | 
    
        data/lib/json_schema.rb
    CHANGED