You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow the ability to add/customize different response codes.
We can add a response as below, but there is no way to specify the error code and the associated text.
response :hash do |response_fields|
response_fields.field :title, :string, info: "title of the object"
response_fields.fields :categories, :array, item_type: :hash do |category|
category.field :name, :string, info: "the name of the assoccategory"
end
response_fields.fields :parent, :hash do |parent|
parent.field :title, :string, info: "title of the parent"
end
end
Please add any concerns, enhancements, bugs with the DSL for API documentation
The text was updated successfully, but these errors were encountered: