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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementEnhancement of existing features / Small additionserverHashtopolis API/Server related

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions