jskov / openapi-jaxrs-client

An OpenAPI JAX-RS client code generator
Apache License 2.0
1 stars 4 forks source link

Long regexp naming rule fails to replace with empty string #532

Closed jskov-jyskebank-dk closed 7 months ago

jskov-jyskebank-dk commented 8 months ago
    @ParameterizedTest
    @CsvSource({
        "JRAftalegrundlagBackendServiceInterfaceContractInterfaceAftalegrundlag20200301AftalegrundlagAftalegrundlag, Aftalegrundlag"
    })
    void regexpExpressionTests(String input, String expected) {
        Naming sut = makeSut("REGEXP/JRAftalegrundlagBackendServiceInterfaceContractInterfaceAftalegrundlag20200301Aftalegrundlag/_/;");
        assertThat(sut.convertTypeName(input))
            .isEqualTo(expected);
    }

The above does replace with _. But cannot replace with // (empty)

(Per)

jskov-jyskebank-dk commented 7 months ago

Not sure what this was about. The test works fine now. Also on 0.10.6?!