livingsocial / swagger_yard

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

Not Registering Custom Tags #59

Open jaman1020 opened 5 years ago

jaman1020 commented 5 years ago

It looks like SwaggerYard.register_custom_yard_tags! is never fired when initializing SwaggerYard. Before adding this line to my own config I got errors like Unknown tag @resource in file and the documentation is never generated. Is this an oversight or am I doing something wrong? I've followed the docs pretty much exactly

nicksieger commented 5 years ago

You're correct about this. Usually we've used this in conjunction with swagger_yard-rails which does call that initializer. If you think it would be better to call it automatically, would you mind submitting a PR for that?