You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split WorkflowInputParameter into type-specific discriminated union
Add per-type parameter models (WorkflowDataParameter,
WorkflowCollectionParameter, WorkflowIntegerParameter,
WorkflowFloatParameter, WorkflowTextParameter, WorkflowBooleanParameter)
discriminated on the `type` field via pydantic annotations. The catch-all
WorkflowInputParameter is retained for Schema Salad codegen compatibility.
Schema changes:
- Add BaseInputParameter, BaseDataParameter, MinMax abstract records
- Add split parameter records with pydantic:type Literal overrides
- Add discriminator annotations on Process.inputs field
- Explicit JSON-LD predicates for shared fields (min, max, collection_type)
Code changes:
- Use BaseInputParameter for isinstance checks and type annotations
- Handle both GalaxyType enum and string Literal type values
- Use SerializeAsAny for proper subclass serialization
- Preserve input instances through expansion to avoid dict round-trip loss
- Bump schema-salad-plus-pydantic >= 0.1.8
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments