Expose swagger schema

It would be very useful to have the swagger spec be available as a model that I can use in JS! I was trying to find this myself today.