Class: SpecForge::Documentation::Document::ResponseBody

Inherits:
Object
  • Object
show all
Defined in:
lib/spec_forge/documentation/document/response_body.rb

Overview

Represents a response body structure

Contains the type and content structure of a response body.

Examples:

Object response body

ResponseBody.new(
  type: "object",
  content: {user: {type: "object", content: {id: {type: "integer"}}}}
)

Array response body

ResponseBody.new(
  type: "array",
  content: [{type: "string"}]
)