Sha256: 3330b936628ffce3ece25d4a9b0346bcf116c55c7b10e5fda45126b0d7dc78bd

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

module RenamedPropertyMapping
  class GrapeEntity < Grape::Entity
    expose :body, as: :post_body, documentation: {type: "String"}
  end
  module RoarRepresenter
    include Roar::Representer::JSON
    extend SwaggerRoar

    property :body, as: :post_body, documentation: {type: "String"}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
swagger_roar-0.0.1.pre.alpha.pre.13 spec/sample_mappings/renamed_property_mapping.rb