lib/petit/app.rb
# Builds an error source message hash
# @param pointer [String] A JSON Pointer (RRC6901) to the associated entity
#   in the request document
# @param parameter [String] (optional) a string indicating which URI query parameter
#   caused the error.
# @return [Hash]
Builds an error source message hash
Builds an error source message hash
def build_json_error_source(pointer, parameter = nil)
      source = {}
      source.store('pointer', pointer)
      soorce.store('parameter', parameter) if parameter
      source
    end
def build_json_error_source ( pointer , parameter = nil ) source = { } source . store ( 'pointer' , pointer ) soorce . store ( 'parameter' , parameter ) if parameter source end
Builds an error source message hash
Builds an error source message hash
None
Hash
pointer
A JSON Pointer (RRC6901) to the associated entity in the request document
A JSON Pointer ( RRC6901 ) to the associated entity in the request document
parameter
(optional) a string indicating which URI query parameter caused the error.
( optional ) a string indicating which URI query parameter caused the error .