livingsocial / swagger_yard

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

Move model parser to separate class #74

Open StefSchenkelaars opened 3 years ago

StefSchenkelaars commented 3 years ago

I wanted to make some structural changes to the library. As explained in #72 I want to simplify the configuration. But next to this I also want to separate the business logic (the parsing) from the domain objects (the Model).

My proposal therefore is to have separate parsing classes (like the ModelParser in the commit) and separate domain objects (Model). This way we can separate the different concerns:

Let me know if you like this direction, then I could extend this to all domain objects and start separating the steps.