Open
Description
I have a class to override SwaggerSchemaConverter for generating the swagger models.
It's working with my rest api and swagger ui.
like
public class CustomConverter extends SwaggerSchemaConverter {
@Override
public Option<Model> read(Class<?> cls) {
Option<Model> mod = super.read(cls);
Model old = mod.get();
LinkedHashMap<String,ModelProperty> props = old.properties();
props = (LinkedHashMap<String, ModelProperty>) props.$minus("_persistence_shouldRefreshFetchGroup");
Model m = new Model(old.id(),old.name(), old.qualifiedType(),props,old.description(), old.baseModel(),old.discriminator(),old.subTypes());
Option<Model> nopt = Option.apply(m);
return nopt;
}
}
but I'm not sure how this class can be called through this mavn-swagger plugin