Skip to content

Commit

Permalink
Fix type in MarketInstrument (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMelnikov authored Jan 27, 2020
1 parent 5328d1a commit 75aebf4
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions src/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/MarketInstrumentResponse"
$ref: "#/components/schemas/SearchMarketInstrumentResponse"
"500":
description: Инструмент не найден
content:
Expand Down Expand Up @@ -626,7 +626,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/MarketInstrumentListResponse"
$ref: "#/components/schemas/SearchMarketInstrumentResponse"
"500":
description: Инструмент не найден
content:
Expand Down Expand Up @@ -1348,6 +1348,21 @@ components:
items:
$ref: "#/components/schemas/MarketInstrument"

SearchMarketInstrumentResponse:
type: object
required:
- trackingId
- payload
- status
properties:
trackingId:
type: string
status:
type: string
default: Ok
payload:
$ref: "#/components/schemas/SearchMarketInstrument"

MarketInstrumentResponse:
type: object
required:
Expand All @@ -1363,7 +1378,7 @@ components:
payload:
$ref: "#/components/schemas/MarketInstrument"

MarketInstrument:
SearchMarketInstrument:
type: object
required:
- figi
Expand Down Expand Up @@ -1392,6 +1407,33 @@ components:
type:
$ref: '#/components/schemas/InstrumentType'

MarketInstrument:
type: object
required:
- figi
- ticker
- lot
- name
- type
properties:
figi:
type: string
ticker:
type: string
isin:
type: string
minPriceIncrement:
type: number
format: double
description: "Шаг цены"
lot:
type: integer
format: int32
currency:
$ref: '#/components/schemas/Currency'
name:
type: string

SandboxCurrency:
type: string
enum:
Expand Down

0 comments on commit 75aebf4

Please sign in to comment.