action :create do
routing { post '' }
payload do
attribute :title, String, required: true
attribute :text, String, required: true
attribute :author do
attribute :id, Integer, required: true
end
attribute :tags, Attributor::Collection.of(String)
end
end
The docs that are generated from this shows that title and text are required but author id is optional. This seems wrong to me if I understand the documentation.
Thanks,
Enric Ribas
attribute :author, required: true do
attribute :id, Integer, required: true
end
--
You received this message because you are subscribed to the Google Groups "praxis-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to praxis-suppor...@googlegroups.com.
To post to this group, send email to praxis-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/praxis-support/610fce71-caa0-4c51-bd4d-13bb0d73fef5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.