Skip to content

[ENHANCEMENT]: Make generated openapi spec from backend as detailed and correct as possible #2404

Description

Description

Currently the openapi json is hand edited in the frontend because the generated openapi spec when last checked is not entirely fitting what is actually returned by the backend.
Make sure that the server generated openapi spec matches current responses and also add a pipeline step so the frontend needs to update and regenerate the zod schemas if the backend changes.

  • Also regard the case that some user responses (also includes in other entities) are filtered based on permissions so only a subset of fields is sometimes returned if the user does not have read permission on users.

Requires both backend and frontend (compare with currently checked in openapi json in frontend and which types are used).

Metadata

Metadata

Assignees

Labels

enhancementEnhancement of existing features / Small additionserverHashtopolis API/Server related

Type

No type

Projects

Status
No status
Status
To triage
Status
Todo
Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions