@Override
    public String getDefinitionNameForKey(DefinitionKey key, SchemaGenerationContext generationContext) {
        Schema annotation = key.getType().getErasedType().getAnnotation(Schema.class);
        if (annotation == null || annotation.name().isEmpty()) {
            return this.baseStrategy.getDefinitionNameForKey(key, generationContext);
        }
        return annotation.name();
    }
Constructor expecting a base strategy to be applied if there is no {@link Schema} annotation with a specific {@code name} being specified.

@param baseStrategy fall-back strategy to be applied
jsonschema-module-swagger-2/src/main/java/com/github/victools/jsonschema/module/swagger2/Swagger2SchemaDefinitionNamingStrategy.java