Module: Modern::Descriptor::Converters::Input

Defined in:
lib/modern/descriptor/converters/input/base.rb,
lib/modern/descriptor/converters/input/json.rb

Defined Under Namespace

Classes: Base

Constant Summary collapse

JSON =
Base.new(
  media_type: "application/json",
  converter: proc do |io|
    str = io.read
    str.empty? ? nil : ::JSON.parse(str)
  end
)