How can I configure swagger-ui to emit camelcase json variables instead of underscores when using with ServiceStack? -
i using servicestack.api.swagger. working , can see api docs fine. have configured servicestack emit camel case name jsconfig.emitcamelcasenames = true;
, servicestack emitting variables expected (e.g trainstation). when view request/response schemas in swagger output/screen, of variables servicestack emits camel case displayed underscore separator (e.g. train-station). there way configure swagger-ui emit camel case instead of underscores? or, configure servicestack , swagger-ui consistent?
there properties on swaggerfeature
class. in apphost, after configuring jsconfig:
plugins.add(new swaggerfeature { usecamelcasemodelpropertynames = jsconfig.emitcamelcasenames });
Comments
Post a Comment