swagger-api / swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

Home Page:http://swagger.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include fluent methods in Schema to add types and examples

alex-albericio opened this issue · comments

In order to allow chaining with the rest of fluent methods in Schema (of swagger-models), there should be methods to add a type or an example that return the updated Schema, similar to existing ones such as addRequiredItem or addProperty.