Skip to content

Non-column attributes #3

Description

@zernie

Having a resource like this:

class Api::V1::TripResource < Api::V1::BaseResource
  attribute :test

  def test
    123
  end
end

$ rails g jsonapi:swagger Api::V1::Trip fails with jsonapi-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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions