Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheBigSasha opened this issue Dec 13, 2023 · 1 comment
Open

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

TheBigSasha opened this issue Dec 13, 2023 · 1 comment

Comments

@TheBigSasha
Copy link
Contributor

TheBigSasha commented Dec 13, 2023

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.

@TheBigSasha
Copy link
Contributor Author

Use case: HTTP Server block
IMG_8B843898AC6E-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant