serialization_types.ts view source
(graph: DependencyGraph): SerializedGraph Serializes a dependency graph to a JSON-safe format.
graph
type DependencyGraph
returns
SerializedGraph JSON-serializable types for command output formats.
Gitops commands support
--format jsonand--format markdownoutput modes in addition to styled terminal output. These types define the JSON schema for: - Dependency graph structures (SerializedGraph) - Publishing plan predictions (SerializedPublishingPlan)Used by
gitops_analyze,gitops_plan, andgitops_publish --dry_runwhen--format jsonor--outfileis specified.
4 declarations
serialization_types.ts view source
(graph: DependencyGraph): SerializedGraph Serializes a dependency graph to a JSON-safe format.
graphSerializedGraph serialization_types.ts view source
SerializedGraph nodesArray<SerializedNode>edgesArray<[string, string]>serialization_types.ts view source
SerializedNode namestringversionstringdependenciesArray<{
name: string;
type: string;
version: string;
}>dependentsArray<string>publishablebooleanserialization_types.ts view source
SerializedPublishingPlan publishing_orderArray<string>version_changesArray<{
package_name: string;
from: string;
to: string;
bump_type: string;
breaking: boolean;
has_changesets: boolean;
will_generate_changeset?: boolean;
needs_bump_escalation?: boolean;
existing_bump?: string;
required_bump?: string;
}>dependency_updatesArray<{
dependent_package: string;
updated_dependency: string;
new_version: string;
type: string;
causes_republish: boolean;
}>breaking_cascadesRecord<string, Array<string>>warningsArray<string>errorsArray<string>