dataframe
dataframe copied to clipboard
@DataSchema generation fails if `` `Backticked name` `` in any of the interfaces/classes in the fully qualified name
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)