bugfix: export an object containing overridable methods
when instanciating swagger via factory simply overriding methods isnt enough