dataframe icon indicating copy to clipboard operation
dataframe copied to clipboard

@DataSchema generation fails if `` `Backticked name` `` in any of the interfaces/classes in the fully qualified name

Open Jolanrensen opened this issue 2 years ago • 0 comments

As the title says. Something like

@DataSchema(isOpen = false)
interface `Pet test` {
    val id: Long
    val name: String
    val tag: String?
}

doesn't work since the backticks are ignored in the extension generation. For instance, one of the resulting lines is:

val ColumnsContainer<OpenApiTests.SimpleTestPetstore.Pet test>.id: DataColumn<Long> @JvmName("Pet test_id") get() = this["id"] as DataColumn<Long>

while it should be:

val ColumnsContainer<OpenApiTests.SimpleTestPetstore.`Pet test`>.id: DataColumn<Long> @JvmName("Pet test_id") get() = this["id"] as DataColumn<Long>

(Note, the JvmName should be fixed too. Having a space there probably will fail)

Jolanrensen avatar Sep 21 '22 11:09 Jolanrensen