studio
studio copied to clipboard
[STU - 196] RFC - Block Typing (studiolab/reactive)
Type & Parameter Methods
FJBlock
class can specify ins, outs, and parameters from methods getIns
, getOuts
, getParameters
which would return the types and names of flowchart I/O and then also an object representing the parameters which would include fields of a type that specifies:
- input component for the parameter (slider, select, radio group, etc.)
- type
- name
JSON Validator Block (unknown -> specific type)
It can take any object, it didn't have to come from JSON necessarily
This blocks acts like Pydantic/Zod to ensure a JSON object conforms to a certain schema, it would and error edge and a success edge which are used to handle each case. This block takes any
and has outputs for each member of the schema.