mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Adds anyOf support to requestBody
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
class Blog < ActiveRecord::Base
|
||||
validates :content, presence: true
|
||||
|
||||
alias_attribute :headline, :title
|
||||
alias_attribute :text, :content
|
||||
|
||||
def as_json(_options)
|
||||
{
|
||||
id: id,
|
||||
|
||||
Reference in New Issue
Block a user