Sha256: d5a66ee828acd2cd08d1920c5dde8a3a4569498dcf32bd42f7d825419e4faa1f

Contents?: true

Size: 261 Bytes

Versions: 20

Compression:

Stored size: 261 Bytes

Contents

PostOutputObject = SoberSwag::OutputObject.define do
  identifier 'Post'
  field :id, primitive(:Integer)
  field :title, primitive(:String)
  field :body, primitive(:String)

  view :detail do
    field :person, -> { PersonOutputObject.view(:base) }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
sober_swag-0.21.0 example/app/output_objects/post_output_object.rb
sober_swag-0.20.0 example/app/output_objects/post_output_object.rb
sober_swag-0.19.0 example/app/output_objects/post_output_object.rb
sober_swag-0.18.0 example/app/output_objects/post_output_object.rb
sober_swag-0.17.0 example/app/output_objects/post_output_object.rb
sober_swag-0.16.0 example/app/output_objects/post_output_object.rb
sober_swag-0.15.0 example/app/output_objects/post_output_object.rb
sober_swag-0.14.0 example/app/output_objects/post_output_object.rb
sober_swag-0.13.0 example/app/output_objects/post_output_object.rb
sober_swag-0.12.0 example/app/output_objects/post_output_object.rb
sober_swag-0.11.0 example/app/output_objects/post_output_object.rb
sober_swag-0.10.0 example/app/output_objects/post_output_object.rb
sober_swag-0.9.0 example/app/output_objects/post_output_object.rb
sober_swag-0.8.0 example/app/output_objects/post_output_object.rb
sober_swag-0.7.0 example/app/output_objects/post_output_object.rb
sober_swag-0.6.0 example/app/output_objects/post_output_object.rb
sober_swag-0.5.0 example/app/output_objects/post_output_object.rb
sober_swag-0.4.0 example/app/output_objects/post_output_object.rb
sober_swag-0.3.0 example/app/output_objects/post_output_object.rb
sober_swag-0.2.0 example/app/output_objects/post_output_object.rb