We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For has_many association we can give array type for nested attributes as:
property :examples_attributes, :array, :required, "A list of examples", { "items" => { "$ref" => "Example" } }
But how add nested attributes for single record if we consider has_one association. I tried by specifying hash type but it didn't work.
property :example_attributes, :hash, :required, "An example", { "item" => { "$ref" => "Example" } }
The text was updated successfully, but these errors were encountered:
property :example_attributes, :'Example', :required, 'Some description'
Sorry, something went wrong.
No branches or pull requests
For has_many association we can give array type for nested attributes as:
property :examples_attributes, :array, :required, "A list of examples", { "items" => { "$ref" => "Example" } }
But how add nested attributes for single record if we consider has_one association. I tried by specifying hash type but it didn't work.
property :example_attributes, :hash, :required, "An example", { "item" => { "$ref" => "Example" } }
The text was updated successfully, but these errors were encountered: