parseTrackingPlan
Parses a tracking-plan document into EventSchemas. Only a minimal subset of JSON Schema is understood — this is the initial slice of the codegen engine (see the autograph-schema module's README section for what's deferred). Expected shape:
{
"events": [
{
"name": "Recipe Saved",
"properties": {
"type": "object",
"properties": { "target": { "type": "string" }, "quantity": { "type": "integer" } },
"required": ["target"]
}
}
]
}Content copied to clipboard
Supported property "type"s: string, integer, number, boolean. An event's "properties" may be omitted entirely for an event with no properties. Nested objects/arrays, "enum", "$ref", and oneOf/anyOf/allOf are not supported and are rejected with TrackingPlanParseException — as is any shape mismatch against the structure above (e.g. "events" not an array, "required" not an array of strings).