Swagger format multiple fixes

This commit is contained in:
echerniak 2021-09-02 12:41:42 +03:00
parent 3fef5fb0a2
commit 1bee61313f
No known key found for this signature in database
GPG Key ID: 7D79B3A9CB749B36
24 changed files with 44 additions and 64 deletions

View File

@ -1,5 +1,5 @@
description: Неверные данные
content:
application/json:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/DefaultLogicError'

View File

@ -1,5 +1,5 @@
description: Заданный ресурс не найден
content:
application/json:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/GeneralError'

View File

@ -13,5 +13,4 @@ allOf:
type: integer
format: int64
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'

View File

@ -15,8 +15,6 @@ properties:
type: string
pattern: '^\d{2,4}$'
paymentSystem:
x-merge-obj:
- $ref: '#/components/schemas/BankCardPaymentSystem'
$ref: '#/components/schemas/BankCardPaymentSystem'
tokenProvider:
x-merge-obj:
- $ref: '#/components/schemas/BankCardTokenProvider'
$ref: '#/components/schemas/BankCardTokenProvider'

View File

@ -35,16 +35,14 @@ properties:
format: int64
minimum: 1
levyCurrency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
bodyAmount:
description: Сумма чарджбэка
type: integer
format: int64
minimum: 1
bodyCurrency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
fee:
description: 'Комиссия системы, в минорных денежных единицах'
type: integer
@ -61,11 +59,9 @@ properties:
format: int64
minimum: 0
status:
x-merge-obj:
- $ref: '#/components/schemas/ChargebackStatus'
$ref: '#/components/schemas/ChargebackStatus'
stage:
x-merge-obj:
- $ref: '#/components/schemas/ChargebackStage'
$ref: '#/components/schemas/ChargebackStage'
chargebackReason:
$ref: '#/components/schemas/ChargebackReason'
content:

View File

@ -11,5 +11,4 @@ allOf:
format: int64
minimum: 0
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'

View File

@ -2,5 +2,4 @@ required:
- cryptoCurrency
properties:
cryptoCurrency:
x-merge-obj:
- $ref: '#/components/schemas/CryptoCurrency'
$ref: '#/components/schemas/CryptoCurrency'

View File

@ -1,4 +1,3 @@
discriminator: digitalWalletDetailsType
required:
- digitalWalletDetailsType
properties:
@ -6,3 +5,5 @@ properties:
type: string
enum:
- DigitalWalletDetailsQIWI
discriminator:
propertyName: digitalWalletDetailsType

View File

@ -36,8 +36,7 @@ allOf:
format: int64
minimum: 1
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
product:
description: Наименование предлагаемых товаров или услуг
type: string

View File

@ -3,7 +3,6 @@ description: |
Указывается, только если предлагаемый товар или услуга облагается налогом.
type: object
discriminator: type
required:
- type
properties:
@ -12,3 +11,5 @@ properties:
type: string
enum:
- InvoiceLineTaxVAT
discriminator:
propertyName: type

View File

@ -1,5 +1,4 @@
type: object
discriminator: payerType
properties:
payerType:
description: Тип платежного средства
@ -10,3 +9,5 @@ properties:
- RecurrentPayer
required:
- payerType
discriminator:
propertyName: payerType

View File

@ -1,5 +1,4 @@
type: object
discriminator: type
default:
type: PaymentFlowInstant
required:
@ -11,3 +10,5 @@ properties:
enum:
- PaymentFlowInstant
- PaymentFlowHold
discriminator:
propertyName: type

View File

@ -44,8 +44,7 @@ allOf:
format: int64
minimum: 0
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
payer:
$ref: '#/components/schemas/Payer'
flow:
@ -60,7 +59,6 @@ allOf:
type: string
format: date-time
transactionInfo:
description: 'Информация о транзакции'
$ref: '#/components/schemas/TransactionInfo'
makeRecurrent:
$ref: '#/components/schemas/PaymentMakeRecurrent'

View File

@ -2,5 +2,4 @@ required:
- provider
properties:
provider:
x-merge-obj:
- $ref: '#/components/schemas/PaymentTerminalProvider'
$ref: '#/components/schemas/PaymentTerminalProvider'

View File

@ -1,5 +1,4 @@
type: object
discriminator: detailsType
description: Детали платежного средства
required:
- detailsType
@ -7,3 +6,5 @@ properties:
detailsType:
description: Тип информации о платежном средстве
type: string
discriminator:
propertyName: detailsType

View File

@ -6,7 +6,6 @@ allOf:
- percents
properties:
error:
description: Тип ошибки
$ref: '#/components/schemas/SubError'
percents:
description: Относительное колличество ошибок в процентах

View File

@ -35,8 +35,7 @@ properties:
format: int64
minimum: 0
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
payoutToolDetails:
$ref: '#/components/schemas/PayoutToolDetails'
status:

View File

@ -1,9 +1,10 @@
description: Данные средства вывода
type: object
discriminator: detailsType
properties:
detailsType:
description: Тип средства вывода
type: string
required:
- detailsType
discriminator:
propertyName: detailsType

View File

@ -27,8 +27,7 @@ allOf:
format: int64
minimum: 1
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
reason:
description: Причина осуществления возврата
type: string

View File

@ -6,8 +6,7 @@ required:
- settlementID
properties:
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
guaranteeID:
type: integer
format: int64

View File

@ -1,6 +1,5 @@
description: Местоположение магазина, по которому можно его найти
type: object
discriminator: locationType
required:
- locationType
properties:
@ -9,3 +8,5 @@ properties:
type: string
enum:
- ShopLocationUrl
discriminator:
propertyName: locationType

View File

@ -5,11 +5,9 @@ required:
- offsetAmounts
properties:
splitUnit:
x-merge-obj:
- $ref: '#/components/schemas/SplitUnit'
$ref: '#/components/schemas/SplitUnit'
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
offsetAmounts:
type: array
items:

View File

@ -5,11 +5,9 @@ required:
- splitUnit
properties:
splitUnit:
x-merge-obj:
- $ref: '#/components/schemas/SplitUnit'
$ref: '#/components/schemas/SplitUnit'
currency:
x-merge-obj:
- $ref: '#/components/schemas/Currency'
$ref: '#/components/schemas/Currency'
statusOffsetCounts:
type: array
items:

View File

@ -66,18 +66,12 @@ get:
- $ref: '#/components/parameters/paymentInstitutionRealm'
- $ref: '#/components/parameters/fromTime'
- $ref: '#/components/parameters/toTime'
- name: limit
description: Лимит выборки
in: query
required: false
type: integer
format: int32
minimum: 1
maximum: 1000
- $ref: '#/components/parameters/limit'
- name: reportTypes
description: Типы отчетов
in: query
required: true
schema:
type: array
items:
type: string