Skip to content

Commit eb71a33

Browse files
fix swagger rates
1 parent dcd88b5 commit eb71a33

10 files changed

+548
-550
lines changed

api/openapi.json

+37-37
Original file line numberDiff line numberDiff line change
@@ -3126,46 +3126,43 @@
31263126
"type": "object"
31273127
},
31283128
"TokenRates": {
3129-
"additionalProperties": {
3130-
"properties": {
3131-
"diff_24h": {
3132-
"additionalProperties": {
3133-
"type": "string"
3134-
},
3135-
"example": {
3136-
"TON": "-1.28%"
3137-
},
3138-
"type": "object"
3129+
"properties": {
3130+
"diff_24h": {
3131+
"additionalProperties": {
3132+
"type": "string"
31393133
},
3140-
"diff_30d": {
3141-
"additionalProperties": {
3142-
"type": "string"
3143-
},
3144-
"example": {
3145-
"TON": "-0.56%"
3146-
},
3147-
"type": "object"
3134+
"example": {
3135+
"TON": "-1.28%"
31483136
},
3149-
"diff_7d": {
3150-
"additionalProperties": {
3151-
"type": "string"
3152-
},
3153-
"example": {
3154-
"TON": "-2.74%"
3155-
},
3156-
"type": "object"
3137+
"type": "object"
3138+
},
3139+
"diff_30d": {
3140+
"additionalProperties": {
3141+
"type": "string"
31573142
},
3158-
"prices": {
3159-
"additionalProperties": {
3160-
"type": "number"
3161-
},
3162-
"example": {
3163-
"TON": 1.3710752873163712
3164-
},
3165-
"type": "object"
3166-
}
3143+
"example": {
3144+
"TON": "-0.56%"
3145+
},
3146+
"type": "object"
31673147
},
3168-
"type": "object"
3148+
"diff_7d": {
3149+
"additionalProperties": {
3150+
"type": "string"
3151+
},
3152+
"example": {
3153+
"TON": "-2.74%"
3154+
},
3155+
"type": "object"
3156+
},
3157+
"prices": {
3158+
"additionalProperties": {
3159+
"type": "number"
3160+
},
3161+
"example": {
3162+
"TON": 1.3710752873163712
3163+
},
3164+
"type": "object"
3165+
}
31693166
},
31703167
"type": "object"
31713168
},
@@ -6405,7 +6402,10 @@
64056402
"schema": {
64066403
"properties": {
64076404
"rates": {
6408-
"$ref": "#/components/schemas/TokenRates"
6405+
"additionalProperties": {
6406+
"$ref": "#/components/schemas/TokenRates"
6407+
},
6408+
"type": "object"
64096409
}
64106410
},
64116411
"required": [

api/openapi.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,9 @@ paths:
12961296
- rates
12971297
properties:
12981298
rates:
1299-
$ref: '#/components/schemas/TokenRates'
1299+
type: object
1300+
additionalProperties:
1301+
$ref: '#/components/schemas/TokenRates'
13001302
'default':
13011303
$ref: '#/components/responses/Error'
13021304
/v2/rates/chart:
@@ -4733,34 +4735,32 @@ components:
47334735
- liquidTF
47344736
TokenRates:
47354737
type: object
4736-
additionalProperties:
4737-
type: object
4738-
properties:
4739-
prices:
4740-
type: object
4741-
additionalProperties:
4742-
type: number
4743-
example:
4744-
TON: 1.3710752873163712
4745-
diff_24h:
4746-
type: object
4747-
additionalProperties:
4748-
type: string
4749-
example:
4750-
TON: "-1.28%"
4751-
diff_7d:
4752-
type: object
4753-
additionalProperties:
4754-
type: string
4755-
example:
4756-
TON: "-2.74%"
4757-
diff_30d:
4758-
type: object
4759-
additionalProperties:
4760-
type: string
4761-
example:
4762-
TON: "-0.56%"
4763-
4738+
properties:
4739+
prices:
4740+
type: object
4741+
additionalProperties:
4742+
type: number
4743+
example:
4744+
TON: 1.3710752873163712
4745+
diff_24h:
4746+
type: object
4747+
additionalProperties:
4748+
type: string
4749+
example:
4750+
TON: "-1.28%"
4751+
diff_7d:
4752+
type: object
4753+
additionalProperties:
4754+
type: string
4755+
example:
4756+
TON: "-2.74%"
4757+
diff_30d:
4758+
type: object
4759+
additionalProperties:
4760+
type: string
4761+
example:
4762+
TON: "-0.56%"
4763+
47644764
responses:
47654765
Error:
47664766
description: Some error during request processing

0 commit comments

Comments
 (0)