Skip to content

Commit

Permalink
#43: updated openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Jan 8, 2024
1 parent c112d57 commit c71432f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ const docTemplate = `{
"retry.ExpRetryConfig": {
"type": "object",
"properties": {
"base_multiplier": {
"type": "integer"
},
"max_delay": {
"type": "integer"
},
Expand Down Expand Up @@ -291,7 +294,7 @@ const docTemplate = `{
}
},
"retry": {
"description": "TODO: how to specify other backoff strategies?",
"description": "retry when no healthy model is available to router",
"allOf": [
{
"$ref": "#/definitions/retry.ExpRetryConfig"
Expand Down
5 changes: 4 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@
"retry.ExpRetryConfig": {
"type": "object",
"properties": {
"base_multiplier": {
"type": "integer"
},
"max_delay": {
"type": "integer"
},
Expand Down Expand Up @@ -288,7 +291,7 @@
}
},
"retry": {
"description": "TODO: how to specify other backoff strategies?",
"description": "retry when no healthy model is available to router",
"allOf": [
{
"$ref": "#/definitions/retry.ExpRetryConfig"
Expand Down
4 changes: 3 additions & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ definitions:
type: object
retry.ExpRetryConfig:
properties:
base_multiplier:
type: integer
max_delay:
type: integer
max_retries:
Expand All @@ -110,7 +112,7 @@ definitions:
retry:
allOf:
- $ref: '#/definitions/retry.ExpRetryConfig'
description: 'TODO: how to specify other backoff strategies?'
description: retry when no healthy model is available to router
routers:
description: Unique router ID
type: string
Expand Down

0 comments on commit c71432f

Please sign in to comment.