28_introduce_rswag #35

Merged
philipp merged 46 commits from 28_introduce_rswag into develop 2023-01-05 13:45:47 +01:00
6 changed files with 6 additions and 24 deletions
Showing only changes of commit 482752faca - Show all commits

View file

@ -13,9 +13,7 @@ describe 'Financial Transaction Classes', type: :request do
response '200', 'success' do response '200', 'success' do
schema type: :object, properties: { schema type: :object, properties: {
meta: { meta: { '$ref' => '#/components/schemas/Meta' },
'$ref' => '#/components/schemas/Meta'
},
financial_transaction_class: { financial_transaction_class: {
type: :array, type: :array,
items: { items: {

View file

@ -12,9 +12,7 @@ describe 'Financial Transaction types', type: :request do
let(:financial_transaction_type) { create(:financial_transaction_type) } let(:financial_transaction_type) { create(:financial_transaction_type) }
response '200', 'success' do response '200', 'success' do
schema type: :object, properties: { schema type: :object, properties: {
meta: { meta: { '$ref' => '#/components/schemas/Meta' },
'$ref' => '#/components/schemas/Meta'
},
financial_transaction_type: { financial_transaction_type: {
type: :array, type: :array,
items: { items: {

View file

@ -16,9 +16,7 @@ describe 'Financial Transaction', type: :request do
response '200', 'success' do response '200', 'success' do
schema type: :object, properties: { schema type: :object, properties: {
meta: { meta: { '$ref' => '#/components/schemas/Meta' },
'$ref' => '#/components/schemas/Meta'
},
financial_transaction: { financial_transaction: {
type: :array, type: :array,
items: { items: {

View file

@ -33,9 +33,7 @@ describe 'Order Articles', type: :request do
response '200', 'success' do response '200', 'success' do
schema type: :object, properties: { schema type: :object, properties: {
meta: { meta: { '$ref' => '#/components/schemas/Meta' },
'$ref' => '#/components/schemas/Meta'
},
order_articles: { order_articles: {
type: :array, type: :array,
items: { items: {

View file

@ -10,16 +10,12 @@ describe 'Orders', type: :request do
produces 'application/json' produces 'application/json'
parameter name: "per_page", in: :query, type: :integer, required: false parameter name: "per_page", in: :query, type: :integer, required: false
parameter name: "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) } let(:order) { create(:order) }
response '200', 'success' do response '200', 'success' do
schema type: :object, properties: { schema type: :object, properties: {
meta: { meta: { '$ref' => '#/components/schemas/Meta' },
'$ref' => '#/components/schemas/Meta'
},
ordes: { ordes: {
type: :array, type: :array,
items: { items: {

View file

@ -25,13 +25,7 @@ describe 'User', type: :request do
let(:per_page) { 20 } let(:per_page) { 20 }
response '200', 'success' do response '200', 'success' do
schema type: :object, properties: { schema type: :object, properties: {
meta: { meta: { '$ref': '#/components/schemas/Meta' },
type: :object,
items:
{
'$ref': '#/components/schemas/Meta'
}
},
group_order_article: { group_order_article: {
type: :array, type: :array,
items: { items: {