Package ai.narrativetrace.gradle
Class ClarityResultsParser
java.lang.Object
ai.narrativetrace.gradle.ClarityResultsParser
Parser for the JSON emitted by
ClarityJsonExporter.
INTENT: Keep Gradle-side verification decoupled from the clarity module's internal types.
Schema-tolerant by construction: JsonSlurper ignores unknown object keys, so additive
fields introduced by newer exporter schemas (the top-level suiteIssues array of 1.1, the
per-scenario elements array of 1.2) parse without any change here. Only the
version and scenarios fields are required.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ClarityScenarioResult>static List<ClarityScenarioResult.Issue>parseSuiteIssues(String json) Parses the top-levelsuiteIssuesarray introduced with schema 1.1.
-
Method Details
-
parse
-
parseSuiteIssues
Parses the top-levelsuiteIssuesarray introduced with schema 1.1.Schema 1.0 files carry no
suiteIssuesfield; they parse to an empty list so old artifacts remain readable.
-