superfaceai / cli

Let AI connect the APIs for you
https://superface.ai
MIT License
22 stars 4 forks source link

feat: mark required inputs #357

Closed Jakub-Vacek closed 1 year ago

Jakub-Vacek commented 1 year ago

Description

This PR adds marking of required input fields in .mjs (.py) file. To do this we are now going through AST type tree and constructing example tree at the same time. This allows us to know which property is required and which example value should be used. Also we are now able to work with partial examples while making sure that result match the original structure.

Motivation and Context

[

https://github.com/orgs/superfaceai/discussions/10 https://superfaceai.slack.com/archives/C013602CL2Y/p1691656230267869

Types of changes

Checklist:

Jakub-Vacek commented 1 year ago

@kysely removed required comment from boilerplate code. So now this should not be a significant change for user.