planetarium / web9c

Reference frontend app to demonstrate JS libraries on Nine Chronicles / Libplanet.
https://web9c.netlify.app/
GNU General Public License v3.0
4 stars 5 forks source link

Generate Appropriate form to get plainValue of action from function parameter declaration #53

Open Akamig opened 1 year ago

Akamig commented 1 year ago
  1. We can get plainValue parameter's required type of each action in Object String
  2. We can parse that in JSON
  3. Hypothesis: We can dynamically generate form from parsed JSON schema and get input
  4. Ultimately, we can select any available buildAction function from lib9c-wasm, and generate appropriate form for that selected action, and make user able to input that.

Blocker:

  1. In form generation process, some custom types (GUID, Address, Currency) must be handled manually.
  2. Quite surprisingly there's no library for Generating HTML form from JSON schema as far as I found.