pub struct FlowSchema {
pub defs: HashMap<String, SchemaRef>,
pub input: Option<SchemaRef>,
pub output: Option<SchemaRef>,
pub variables: Option<SchemaRef>,
pub steps: IndexMap<String, SchemaRef>,
}Expand description
Consolidated schema information for a flow.
This struct contains all schema/type information for the flow in a single location,
allowing shared $defs across all schemas and avoiding duplication.
Serializes as a valid JSON Schema with type: "object" and flow-specific
properties (input, output, variables, steps) under the properties key.
Fields§
§defs: HashMap<String, SchemaRef>Shared type definitions that can be referenced by other schemas.
References use the format #/schemas/$defs/TypeName.
input: Option<SchemaRef>The input schema for the flow.
output: Option<SchemaRef>The output schema for the flow.
variables: Option<SchemaRef>Schema for workflow variables. This is a JSON Schema object where properties define the available variables and their types.
steps: IndexMap<String, SchemaRef>Output schemas for each step, keyed by step ID. Note: Step input schemas are not included here as they are component metadata, not flow-specific schemas. Uses IndexMap to preserve insertion order for deterministic serialization.
Implementations§
Trait Implementations§
Source§impl Clone for FlowSchema
impl Clone for FlowSchema
Source§fn clone(&self) -> FlowSchema
fn clone(&self) -> FlowSchema
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlowSchema
impl Debug for FlowSchema
Source§impl Default for FlowSchema
impl Default for FlowSchema
Source§fn default() -> FlowSchema
fn default() -> FlowSchema
Source§impl<'de> Deserialize<'de> for FlowSchema
impl<'de> Deserialize<'de> for FlowSchema
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl JsonSchema for FlowSchema
impl JsonSchema for FlowSchema
Source§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more