ocis icon indicating copy to clipboard operation
ocis copied to clipboard

use more openapitools/openapi-generator artifacts

Open fschade opened this issue 10 months ago • 4 comments

Description

currently ocis only uses the generated openapitools/openapi-generator request and response structs, the tool provides even more like interfaces, validations and a server.

User Stories

  • As a dev i want to re-use the as many openapi-generator artifacts as possible which prevents possible errors or missing endpoints.

Value

  • re-use generated code to speed up dev time (less code has to be written by the dev)
  • reduce the possibility of wrong implemented endpoints

Acceptance Criteria

  • a working endpoint which uses the generated artifacts
  • time and complexity must be reduced
  • has to work with the clients

Definition of ready

  • [ ] Everybody needs to understand the value written in the user story
  • [ ] Acceptance criteria have to be defined
  • [ ] All dependencies of the user story need to be identified
  • [ ] Feature should be seen from an end user perspective
  • [ ] Story has to be estimated
  • [ ] Story points need to be less than 20

Definition of done

  • Functional requirements
    • [ ] Functionality described in the user story works
    • [ ] Acceptance criteria are fulfilled
  • Quality
    • [ ] Code review happened
    • [ ] CI is green (that includes new and existing automated tests)
    • [ ] Critical code received unit tests by the developer
  • Non-functional requirements
    • [ ] No sonar cloud issues
  • Configuration changes
    • [ ] The next branch of the ocis charts is compatible

fschade avatar Apr 16 '24 13:04 fschade

@tbsbdr, not sure... i expect ive written it not perfect, could need your help to make it shine :)

fschade avatar Apr 16 '24 14:04 fschade

Is it techdept or has it direct uservalue?

tbsbdr avatar Apr 16 '24 14:04 tbsbdr

kind of, reliability for 3rd party devs, if you have some time we can talk about it tomorrow.

fschade avatar Apr 16 '24 15:04 fschade

@micbar mentioned TypeAPI introduced in this blog post

hacker news also proposes

All three alternatives are intended for code generation instead of documentation as OpenAPI is.

And I found a comparison of different go server generators for OpenAPI.

butonic avatar Apr 29 '24 08:04 butonic