28_introduce_rswag #35
1 changed files with 41 additions and 27 deletions
|
@ -183,7 +183,8 @@ RSpec.configure do |config|
|
||||||
type: :integer
|
type: :integer
|
||||||
},
|
},
|
||||||
amount: {
|
amount: {
|
||||||
type: :float,
|
type: :number,
|
||||||
|
format: :float,
|
||||||
description: 'amount credited (negative for a debit transaction)'
|
description: 'amount credited (negative for a debit transaction)'
|
||||||
},
|
},
|
||||||
financial_transaction_type_id: {
|
financial_transaction_type_id: {
|
||||||
|
@ -222,7 +223,8 @@ RSpec.configure do |config|
|
||||||
type: :object,
|
type: :object,
|
||||||
properties: {
|
properties: {
|
||||||
amount: {
|
amount: {
|
||||||
type: :float,
|
type: :number,
|
||||||
|
format: :float,
|
||||||
description: 'amount credited (negative for a debit transaction)'
|
description: 'amount credited (negative for a debit transaction)'
|
||||||
},
|
},
|
||||||
financial_transaction_type_id:
|
financial_transaction_type_id:
|
||||||
|
@ -305,37 +307,49 @@ RSpec.configure do |config|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
GroupOrderArticleForCreate: {
|
GroupOrderArticleForCreate: {
|
||||||
type: :object,
|
allOf: [
|
||||||
properties: {
|
{ '$ref': '#/components/schemas/GroupOrderArticleForUpdate' },
|
||||||
order_article_id:
|
|
||||||
{
|
{
|
||||||
type: :integer,
|
type: :object,
|
||||||
description: 'id of order article'
|
properties: {
|
||||||
|
order_article_id:
|
||||||
|
{
|
||||||
|
type: :integer,
|
||||||
|
description: 'id of order article'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
},
|
},
|
||||||
GroupOrderArticle: {
|
GroupOrderArticle: {
|
||||||
type: :object,
|
allOf: [
|
||||||
properties: {
|
{ '$ref': '#/components/schemas/GroupOrderArticleForCreate' },
|
||||||
id: {
|
|
||||||
type: :integer
|
|
||||||
},
|
|
||||||
result: {
|
|
||||||
type: :float,
|
|
||||||
description: 'number of units the users ordergroup will receive or has received'
|
|
||||||
},
|
|
||||||
total_price:
|
|
||||||
{
|
{
|
||||||
type: :float,
|
type: :object,
|
||||||
description: 'total price of this group order article'
|
properties: {
|
||||||
},
|
id: {
|
||||||
order_article_id:
|
type: :integer
|
||||||
{
|
},
|
||||||
type: :integer,
|
result: {
|
||||||
description: 'id of order article'
|
type: :number,
|
||||||
|
format: :float,
|
||||||
|
description: 'number of units the users ordergroup will receive or has received'
|
||||||
|
},
|
||||||
|
total_price:
|
||||||
|
{
|
||||||
|
type: :number,
|
||||||
|
format: :float,
|
||||||
|
description: 'total price of this group order article'
|
||||||
|
},
|
||||||
|
order_article_id:
|
||||||
|
{
|
||||||
|
type: :integer,
|
||||||
|
description: 'id of order article'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
required: %w[order_article_id]
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
required: %w[order_article_id]
|
|
||||||
},
|
},
|
||||||
Meta: {
|
Meta: {
|
||||||
type: :object,
|
type: :object,
|
||||||
|
|
Loading…
Reference in a new issue