You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description and expected behavior
The RESTAPIHandler returns ids as whatever the type is in the db. But json:api requires ids to be strings. The OpenAPI plugin correctly requires ids to be strings, creating a mismatch between the docs and the implementation.
Environment:
ZenStack version: 2.9.4
Prisma version: 5.22.0
Database type: Postgresql
The text was updated successfully, but these errors were encountered:
Hi @thomassnielsen , thanks, I see the inconsistency. Changing the RESTAPIHandler will result in a breaking change. For the time being, how about changing the openapi plugin to generate id field type as defined in the schema? It'll deviate from the JSON:API spec, but we can document that.
Description and expected behavior
The RESTAPIHandler returns ids as whatever the type is in the db. But json:api requires ids to be strings. The OpenAPI plugin correctly requires ids to be strings, creating a mismatch between the docs and the implementation.
Environment:
The text was updated successfully, but these errors were encountered: