Apipie / apipie-rails

Ruby on Rails API documentation tool
Apache License 2.0
2.47k stars 463 forks source link

Self describing class attributes are not shown #643

Closed amiracruceru closed 5 years ago

amiracruceru commented 6 years ago

Hello, I try to make use of the 'Embedded response descriptions' but it is not showing the actual parameters, only this:

returns

I tried the dummy project as well and I see the same problem:

pets class

This is what I have in the controller:

returns :array_of => Comment

And this is what I have in the Comment class:

def self.describe_own_properties
    [
        Apipie::prop(:id, Integer, {:description => 'The id of the comment', :required => false}),
        Apipie::prop(:content, String, {:description => 'The content of the comment', :required => false}),
    ]
end

Do you know what can be the problem? Thank you in advance!

boza commented 4 years ago

is there a solution for this?

ccelestial commented 3 years ago

I'm having the same problem