Use workflow inputSchema to render boolean, number, and enum fields in code/logic function steps (#20439)
<img width="415" height="772" alt="Screenshot 2026-05-11 at 4 44 08 PM" src="https://github.com/user-attachments/assets/32dbdd3c-e60b-4c43-90bc-18be05f22dcf" /> <img width="414" height="371" alt="Screenshot 2026-05-11 at 4 48 24 PM" src="https://github.com/user-attachments/assets/83be062c-7ed3-4953-98bb-e4290865040b" />
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { type LeafType, type NodeType } from '@/workflow';
|
||||
import { type FieldMetadataType } from '@/types';
|
||||
import { type LeafType, type NodeType } from '@/workflow';
|
||||
|
||||
export type InputSchemaPropertyType = LeafType | NodeType | FieldMetadataType;
|
||||
|
||||
@@ -8,6 +8,7 @@ export type InputSchemaProperty = {
|
||||
enum?: string[];
|
||||
items?: InputSchemaProperty;
|
||||
properties?: Properties;
|
||||
multiline?: boolean;
|
||||
};
|
||||
|
||||
type Properties = {
|
||||
|
||||
Reference in New Issue
Block a user