Skip to content

Commit 930f358

Browse files
authored
Merge pull request lightspeed-core#1577 from asimurka/refactor_provider_response
LCORE-1880: Simplify providers model
2 parents f92f219 + a21f06b commit 930f358

2 files changed

Lines changed: 4 additions & 44 deletions

File tree

docs/openapi.json

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16276,53 +16276,13 @@
1627616276
"description": "The API this provider implements"
1627716277
},
1627816278
"config": {
16279-
"additionalProperties": {
16280-
"anyOf": [
16281-
{
16282-
"type": "boolean"
16283-
},
16284-
{
16285-
"type": "number"
16286-
},
16287-
{
16288-
"type": "string"
16289-
},
16290-
{
16291-
"items": {},
16292-
"type": "array"
16293-
},
16294-
{},
16295-
{
16296-
"type": "null"
16297-
}
16298-
]
16299-
},
16279+
"additionalProperties": true,
1630016280
"type": "object",
1630116281
"title": "Config",
1630216282
"description": "Provider configuration parameters"
1630316283
},
1630416284
"health": {
16305-
"additionalProperties": {
16306-
"anyOf": [
16307-
{
16308-
"type": "boolean"
16309-
},
16310-
{
16311-
"type": "number"
16312-
},
16313-
{
16314-
"type": "string"
16315-
},
16316-
{
16317-
"items": {},
16318-
"type": "array"
16319-
},
16320-
{},
16321-
{
16322-
"type": "null"
16323-
}
16324-
]
16325-
},
16285+
"additionalProperties": true,
1632616286
"type": "object",
1632716287
"title": "Health",
1632816288
"description": "Current health status of the provider"

src/models/responses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ class ProviderResponse(AbstractSuccessfulResponse):
440440
...,
441441
description="The API this provider implements",
442442
)
443-
config: dict[str, bool | float | str | list[Any] | object | None] = Field(
443+
config: dict[str, Any] = Field(
444444
...,
445445
description="Provider configuration parameters",
446446
)
447-
health: dict[str, bool | float | str | list[Any] | object | None] = Field(
447+
health: dict[str, Any] = Field(
448448
...,
449449
description="Current health status of the provider",
450450
)

0 commit comments

Comments
 (0)