api-platform / create-client

Generate React or Vue.js-based Progressive Web Apps from an Hydra-enabled API. Also support React Native.
https://api-platform.com/docs/client-generator/
MIT License
373 stars 132 forks source link

fix: wrong attributes added to next's forms #306

Closed Shywim closed 3 years ago

Shywim commented 3 years ago
Q A
Branch? main for features / current stable version branch for bug fixes
Tickets #261
License MIT
Doc PR

This fixes next generator not taking required, step and the correct type for the fields.

(I took some times to try having a clearer layout and use Formik's Field, but I did not see a nice a simple way to pass additional data to Field while being in the generator's loop, I thought it was better to leave this PR as simple as this 😅)

dunglas commented 3 years ago

Thank you!