-
Notifications
You must be signed in to change notification settings - Fork 29
Non-column attributes #3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
It's not easy to guess what type will the given method return, so I suppose a string will do for now |
At present, the attribute type in resource comes from the type of the field in the database, so you need to associate wth active record. |
@superiorlu I understand that, but this restriction greatly limits the usefulness of this lib. Thanks. |
yes, that's good idea. we can support this config option. |
Having a resource like this:
$ rails g jsonapi:swagger Api::V1::Trip
fails withjsonapi-swagger-0.7.1/lib/generators/jsonapi/swagger/templates/swagger.json.erb:80:in block (2 levels) in properties': undefined method []' for nil:NilClass (NoMethodError)
The text was updated successfully, but these errors were encountered: