Populate an input component from an Open API specification?

We’ve created a resource that connects to our OpenAPI via our json spec file and are able to interact with the various endpoints. This works really well.

We're exploring ways to now use the definitions from our OpenAPI spec to dynamically populate input fields in our forms. Specifically, we're keen on populating select component values with OpenAPI definitions' enums.

For example, we want to be able to populate a select component's values directly from the OpenAPI spec, ensuring that these values stay in sync with the API definitions.

Screenshot 2024-01-25 at 16.03.53

Perhaps there is a way to do this already? It will really speed up our ability to integrate form components with our API.

Thanks in advance!