Skip to content

Add openapi schema#36

Open
dajimenezriv-internxt wants to merge 11 commits intomasterfrom
add-openapi-schema
Open

Add openapi schema#36
dajimenezriv-internxt wants to merge 11 commits intomasterfrom
add-openapi-schema

Conversation

@dajimenezriv-internxt
Copy link

@dajimenezriv-internxt dajimenezriv-internxt commented Jan 13, 2026

What

This PR adds the generated openapi types and client so we don't have to duplicate everything. I've run this command to generate just the needed types (get usage and get limit) and replace the implementations to check that they work:

 oapi-codegen -package schema -generate types,client \
    -include-operation-ids "UserController_getUserUsage,UserController_limit" \
    http://localhost:3004/api-json > schema/schema.gen.go

I've fixed also the tests since I changed the funcionality and added the library https://github.com/stretchr/testify to simplify the testing operation. It was just a check to see if the library makes sense. Feel free to change anything of this branch. (This library is also included in the rclone package).

@dajimenezriv-internxt dajimenezriv-internxt self-assigned this Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant