This document describes how to extend Swagger data models to allow the types of fields to vary.
Given that Swagger models need to map cleanly to a statically typed object model, a subclassing approach seems like it would be a good fit.
Inheritance allows a model (the derived type) to inherit all of the