Netflix / dgs-intellij-plugin

Apache License 2.0
22 stars 11 forks source link

False positive invalid argument hint for variables coming from Kotlin string interpolations #51

Open JohanNordlinder opened 1 year ago

JohanNordlinder commented 1 year ago

Getting the following warning:

image

blankett.privatbostad' is not a valid 'Boolean' - Expected type 'Boolean' but was 'Enum'.

For this code, where input.privatbostad is of type public final val privatbostad: Boolean?.

  return dgsQueryExecutor.executeAndExtractJsonPathAsObject(
            """
        mutation testcase
        {
            sparaHyrehusKopBlankett(auth: {
                lopnummer: 123456, kontrollnummer: 456789
            },
            blankett: {
                ovriga_upplysningar: "${input.ovriga_upplysningar}",
                namn_uppgiftsinlamnare: "${input.namn_uppgiftsinlamnare}", 
                telefon_uppgiftsinlamnare: "${input.telefon_uppgiftsinlamnare}", 
                privatbostad: ${input.privatbostad}, 
                }]
            }) {
                ...${Utils.getHyreshusKopBlankettFragment()}
            }
        }
        """.trimIndent(), "data.sparaHyrehusKopBlankett", HyrehusKopBlankett::class.java
    )