Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
Description and expected behavior
I used to use Spring Data Rest which does generate the CRUD API out of managed entity classes. They correctly omit Id fields from POST operations where we add new entity to the DB. The Id is autogenerated either by DB or by the framework code. Therefore, the API should not ask for the Id to be provided as part of the request.
Screenshots
Here is a typical example:
Environment (please complete the following information):
ZenStack version: 1.0.2
Prisma version: 5.3.1
Database type: Postgresql
Additional context
Even though the Id marked as required in the Open API, actual POST /entity doesn't fail for request without Id, which is correct.
Description and expected behavior I used to use Spring Data Rest which does generate the CRUD API out of managed entity classes. They correctly omit Id fields from POST operations where we add new entity to the DB. The Id is autogenerated either by DB or by the framework code. Therefore, the API should not ask for the Id to be provided as part of the request.
Screenshots Here is a typical example:
Environment (please complete the following information):
Additional context Even though the Id marked as required in the Open API, actual
POST /entity
doesn't fail for request without Id, which is correct.