refactor: meta oneline
This commit is contained in:
parent
edd6e2451d
commit
482752faca
6 changed files with 6 additions and 24 deletions
|
@ -13,9 +13,7 @@ describe 'Financial Transaction Classes', type: :request do
|
|||
|
||||
response '200', 'success' do
|
||||
schema type: :object, properties: {
|
||||
meta: {
|
||||
'$ref' => '#/components/schemas/Meta'
|
||||
},
|
||||
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||
financial_transaction_class: {
|
||||
type: :array,
|
||||
items: {
|
||||
|
|
|
@ -12,9 +12,7 @@ describe 'Financial Transaction types', type: :request do
|
|||
let(:financial_transaction_type) { create(:financial_transaction_type) }
|
||||
response '200', 'success' do
|
||||
schema type: :object, properties: {
|
||||
meta: {
|
||||
'$ref' => '#/components/schemas/Meta'
|
||||
},
|
||||
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||
financial_transaction_type: {
|
||||
type: :array,
|
||||
items: {
|
||||
|
|
|
@ -16,9 +16,7 @@ describe 'Financial Transaction', type: :request do
|
|||
|
||||
response '200', 'success' do
|
||||
schema type: :object, properties: {
|
||||
meta: {
|
||||
'$ref' => '#/components/schemas/Meta'
|
||||
},
|
||||
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||
financial_transaction: {
|
||||
type: :array,
|
||||
items: {
|
||||
|
|
|
@ -33,9 +33,7 @@ describe 'Order Articles', type: :request do
|
|||
|
||||
response '200', 'success' do
|
||||
schema type: :object, properties: {
|
||||
meta: {
|
||||
'$ref' => '#/components/schemas/Meta'
|
||||
},
|
||||
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||
order_articles: {
|
||||
type: :array,
|
||||
items: {
|
||||
|
|
|
@ -10,16 +10,12 @@ describe 'Orders', type: :request do
|
|||
produces 'application/json'
|
||||
parameter name: "per_page", in: :query, type: :integer, required: false
|
||||
parameter name: "page", in: :query, type: :integer, required: false
|
||||
let(:page) { 1 }
|
||||
let(:per_page) { 20 }
|
||||
|
||||
let(:order) { create(:order) }
|
||||
|
||||
response '200', 'success' do
|
||||
schema type: :object, properties: {
|
||||
meta: {
|
||||
'$ref' => '#/components/schemas/Meta'
|
||||
},
|
||||
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||
ordes: {
|
||||
type: :array,
|
||||
items: {
|
||||
|
|
|
@ -25,13 +25,7 @@ describe 'User', type: :request do
|
|||
let(:per_page) { 20 }
|
||||
response '200', 'success' do
|
||||
schema type: :object, properties: {
|
||||
meta: {
|
||||
type: :object,
|
||||
items:
|
||||
{
|
||||
'$ref': '#/components/schemas/Meta'
|
||||
}
|
||||
},
|
||||
meta: { '$ref': '#/components/schemas/Meta' },
|
||||
group_order_article: {
|
||||
type: :array,
|
||||
items: {
|
||||
|
|
Loading…
Reference in a new issue