class Jdoc::Link::RequestGenerator

Public Class Methods

call(properties) click to toggle source

Generates example request body from given schema @param properties [Hash] @note Not includes properties that have readOnly property @return [Hash] @example

Jdoc::Link::RequestGenerator(schema.properties) #=> { "name" => "example", "description" => "foo bar." }
# File lib/jdoc/link.rb, line 262
def self.call(properties)
  ResponseGenerator.call(properties.reject {|key, value| value.data["readOnly"] })
end