io.polyapi.plugin.service.schema.JsonSchemaNameHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polyapi-maven-plugin Show documentation
Show all versions of polyapi-maven-plugin Show documentation
Maven plugin to run handle Poly API functions.
package io.polyapi.plugin.service.schema;
import org.jsonschema2pojo.GenerationConfig;
import org.jsonschema2pojo.util.NameHelper;
public class JsonSchemaNameHelper extends NameHelper {
public JsonSchemaNameHelper(GenerationConfig generationConfig) {
super(generationConfig);
}
@Override
public String replaceIllegalCharacters(String name) {
return super.replaceIllegalCharacters(name.replace("+", "Plus").replace("-", "Minus"));
}
}