You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
The field additionalProperties of the Schema Object must be a JSON schema itself according to the specification, true and false are valid JSON schemas but they lead to a crash in EvoMaster.
java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class io.swagger.v3.oas.models.media.Schema (java.lang.Boolean is in module java.base of loader 'bootstrap'; io.swagger.v3.oas.models.media.Schema is in unnamed module of loader 'app')
at org.evomaster.core.output.oracles.SchemaOracle$getSupportedResponse$1.invoke(SchemaOracle.kt:306)
at org.evomaster.core.output.oracles.SchemaOracle$getSupportedResponse$1.invoke(SchemaOracle.kt:281)
at org.evomaster.core.output.oracles.SchemaOracle.getSupportedResponse$lambda$19(SchemaOracle.kt:281)
at java.base/java.util.LinkedHashMap.forEach(Unknown Source)
at org.evomaster.core.output.oracles.SchemaOracle.getSupportedResponse(SchemaOracle.kt:281)
at org.evomaster.core.output.oracles.SchemaOracle.generatesExpectation(SchemaOracle.kt:332)
at org.evomaster.core.output.service.PartialOracles.activeOracles(PartialOracles.kt:174)
at org.evomaster.core.problem.rest.service.AbstractRestFitness.handleAdditionalOracleTargetDescription(AbstractRestFitness.kt:343)
at org.evomaster.core.problem.rest.service.AbstractRestFitness.handleResponseTargets(AbstractRestFitness.kt:326)
at org.evomaster.core.problem.rest.service.BlackBoxRestFitness.doCalculateCoverage(BlackBoxRestFitness.kt:70)
at org.evomaster.core.problem.rest.service.BlackBoxRestFitness.doCalculateCoverage(BlackBoxRestFitness.kt:15)
at org.evomaster.core.search.service.FitnessFunction.calculateIndividualWithPostHandling(FitnessFunction.kt:105)
at org.evomaster.core.search.service.FitnessFunction.calculateCoverage(FitnessFunction.kt:57)
at org.evomaster.core.search.service.FitnessFunction.calculateCoverage$default(FitnessFunction.kt:48)
at org.evomaster.core.search.algorithms.RandomAlgorithm.searchOnce(RandomAlgorithm.kt:23)
at org.evomaster.core.search.service.SearchAlgorithm.search(SearchAlgorithm.kt:66)
at org.evomaster.core.Main$Companion.run(Main.kt:473)
at org.evomaster.core.Main$Companion.initAndRun(Main.kt:158)
at org.evomaster.core.Main$Companion.main(Main.kt:82)
at org.evomaster.core.Main.main(Main.kt)
Other important info:
version of EvoMaster (EM) used 1.6.1
how EM is run (eg, if from JAR or from one of its OS installers) deb
The text was updated successfully, but these errors were encountered:
Hello,
The field
additionalProperties
of the Schema Object must be a JSON schema itself according to the specification,true
andfalse
are valid JSON schemas but they lead to a crash in EvoMaster.Other important info:
The text was updated successfully, but these errors were encountered: