Skip to content

[STU - 196] RFC - Block Typing (studiolab/reactive) #1015

Description

@TheBigSasha

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions