Skip to main content

analyze_metadata

Function analyze_metadata 

Source
pub fn analyze_metadata(metadata: &CodeGenMetadata) -> Result<GenerationPlan>
Expand description

Analyze collected metadata and create a generation plan.

Methods with missing HTTP annotations are excluded from the plan and recorded in GenerationPlan::skipped_methods so callers can distinguish “zero methods generated” from “all methods were silently dropped”.

Hierarchy derivation uses a two-phase cross-service algorithm:

  1. Build all service plans (hierarchy empty).
  2. Construct a global parent map across all services, then assign depth-sorted hierarchies.