Skip to content

Commit

Permalink
feat/balance api OM-573 (#938)
Browse files Browse the repository at this point in the history
* fix(deps): roll back kin-openapi for oapi-codegen compatibility

* chore(*): pin kin-openapi version

* feat(entitlements): clean up balance calculation API types

* feat(entitlements): add better errors for feature creation

* feat(entitlements/balance): add output mappings to balance API

* fix(entitlements/api): handle empty list returns

* style: fix lint errors

* fix(e2e): fix nil value parsing

* feat(entitlements): add option to include voids in grant apis

* feat(entitlements): add void property to grant response schema

* feat(entitlements): extend history API and validate feature name uniqueness among active

* fix(entitlements/history): change API required fields

* refactor(api): create new type for grant return endpoint

* fix(*): address PR comments

* fix(ci): fix e2e and lint

* refactor(api): standardise use of LedgerBalanceGrant

* fix(*): address PR comments

* fix: use convert package

* Update api/openapi.yaml

Co-authored-by: András Tóth <4157749+tothandras@users.noreply.github.com>
Signed-off-by: Alex Goth <64845621+GAlexIHU@users.noreply.github.com>

---------

Signed-off-by: Alex Goth <64845621+GAlexIHU@users.noreply.github.com>
Co-authored-by: András Tóth <4157749+tothandras@users.noreply.github.com>
  • Loading branch information
GAlexIHU and tothandras authored May 30, 2024
1 parent 536ee98 commit 638d36c
Show file tree
Hide file tree
Showing 24 changed files with 1,461 additions and 522 deletions.
12 changes: 12 additions & 0 deletions .vscode/default.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"folders": [
{
"name": "root",
"path": "../"
},
{
"name": "ci",
"path": "../ci"
}
]
}
32 changes: 15 additions & 17 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Server",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/server",
"args": [
"--config", "${workspaceFolder}/config.example.yaml",
]
}
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Server",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/server",
"args": ["--config", "${workspaceFolder}/config.example.yaml"]
}
]
}
Loading

0 comments on commit 638d36c

Please sign in to comment.