Adds anyOf support to requestBody

This commit is contained in:
Jay Danielian
2019-07-20 13:50:38 -04:00
parent eb4e6045c5
commit cd348b53f8
6 changed files with 145 additions and 0 deletions

View File

@@ -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,