livingsocial / swagger_yard

Swagger-UI compliant JSON generated from YARD. For RESTful Rails apps.
MIT License
51 stars 28 forks source link

Allow @property tags on model methods #57

Closed nicksieger closed 6 years ago

nicksieger commented 6 years ago

Previously, @property tags were only recognized in class comment blocks. Now, they can be added in comments above methods and attr_reader/attr_accessor. Additionally, custom DSL methods for model attributes/properties can be registered and allowed to have comment blocks as well.

See the file spec/fixtures/models/person.rb for an example.