Form
The application’s forms are managed using rjsf (React JSONSchema Form), a library that enables automatic form generation based on JSON Schema.
This approach ensures that each form is declaratively defined according to the data expected by the backend, providing consistent validation and improved code maintainability.
Retrieving Schemas
Form schemas are exposed through a service accessible at the following endpoint:
{host}/schemas/{packageId}/{schemaId}
- host: The backend API URL.
- packageId: The name of the package the schema belongs to.
- schemaId: The identifier of the specific schema.
Once retrieved, the schema is used to dynamically generate the corresponding form, allowing for seamless adaptation to changes in the backend data models.