Skip to content

Commit 26d19f4

Browse files
authored
Merge pull request #520 from AppQuality/other-costs-accept-array
Other costs accept array
2 parents f28a094 + fd5866e commit 26d19f4

6 files changed

Lines changed: 600 additions & 364 deletions

File tree

src/reference/openapi.yml

Lines changed: 148 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -13600,57 +13600,59 @@ paths:
1360013600
content:
1360113601
application/json:
1360213602
schema:
13603-
type: object
13604-
x-examples:
13605-
Example 1:
13606-
description: Riparazione hardware ufficio
13607-
type_id: 3
13608-
supplier_id: 105
13609-
cost: 250.5
13603+
type: array
13604+
items:
13605+
type: object
13606+
x-examples:
13607+
Example 1:
13608+
description: Riparazione hardware ufficio
13609+
type_id: 3
13610+
supplier_id: 105
13611+
cost: 250.5
13612+
attachments:
13613+
- url: 'https://esempio.com/documenti/fattura.pdf'
13614+
mime_type: application/pdf
13615+
- url: 'https://esempio.com/immagini/danno.jpg'
13616+
mime_type: image/jpeg
13617+
required:
13618+
- description
13619+
- type_id
13620+
- supplier_id
13621+
- cost
13622+
- attachments
13623+
properties:
13624+
description:
13625+
type: string
13626+
type_id:
13627+
type: integer
13628+
supplier_id:
13629+
type: integer
13630+
cost:
13631+
type: number
1361013632
attachments:
13611-
- url: 'https://esempio.com/documenti/fattura.pdf'
13612-
mime_type: application/pdf
13613-
- url: 'https://esempio.com/immagini/danno.jpg'
13614-
mime_type: image/jpeg
13615-
required:
13616-
- description
13617-
- type_id
13618-
- supplier_id
13619-
- cost
13620-
- attachments
13621-
properties:
13622-
description:
13623-
type: string
13624-
type_id:
13625-
type: integer
13626-
supplier_id:
13627-
type: integer
13628-
cost:
13629-
type: number
13630-
attachments:
13631-
type: array
13632-
items:
13633-
type: object
13634-
required:
13635-
- url
13636-
- mime_type
13637-
properties:
13638-
url:
13639-
type: string
13640-
mime_type:
13641-
type: string
13633+
type: array
13634+
items:
13635+
type: object
13636+
required:
13637+
- url
13638+
- mime_type
13639+
properties:
13640+
url:
13641+
type: string
13642+
mime_type:
13643+
type: string
1364213644
examples:
1364313645
Example 1:
1364413646
value:
13645-
description: Riparazione hardware ufficio
13646-
type_id: 3
13647-
supplier_id: 105
13648-
cost: 250.5
13649-
attachments:
13650-
- url: 'https://esempio.com/documenti/fattura.pdf'
13651-
mime_type: application/pdf
13652-
- url: 'https://esempio.com/immagini/danno.jpg'
13653-
mime_type: image/jpeg
13647+
- description: Riparazione hardware ufficio
13648+
type_id: 3
13649+
supplier_id: 105
13650+
cost: 250.5
13651+
attachments:
13652+
- url: 'https://esempio.com/documenti/fattura.pdf'
13653+
mime_type: application/pdf
13654+
- url: 'https://esempio.com/immagini/danno.jpg'
13655+
mime_type: image/jpeg
1365413656
security:
1365513657
- JWT: []
1365613658
delete:
@@ -13697,12 +13699,90 @@ paths:
1369713699
content:
1369813700
application/json:
1369913701
schema:
13702+
type: array
13703+
items:
13704+
type: object
13705+
x-examples:
13706+
Example 1:
13707+
description: Riparazione hardware ufficio
13708+
type_id: 3
13709+
cost_id: 2
13710+
supplier_id: 105
13711+
cost: 250.5
13712+
attachments:
13713+
- url: 'https://esempio.com/documenti/fattura.pdf'
13714+
mime_type: application/pdf
13715+
- url: 'https://esempio.com/immagini/danno.jpg'
13716+
mime_type: image/jpeg
13717+
required:
13718+
- description
13719+
- type
13720+
- cost_id
13721+
- supplier
13722+
- cost
13723+
- attachments
13724+
properties:
13725+
description:
13726+
type: string
13727+
type:
13728+
type: string
13729+
x-stoplight:
13730+
id: q54ltj77jcyf0
13731+
cost_id:
13732+
type: integer
13733+
supplier:
13734+
type: string
13735+
x-stoplight:
13736+
id: 5aunsjh1dxfq1
13737+
cost:
13738+
type: number
13739+
attachments:
13740+
type: array
13741+
items:
13742+
type: object
13743+
required:
13744+
- url
13745+
- mime_type
13746+
properties:
13747+
url:
13748+
type: string
13749+
mime_type:
13750+
type: string
13751+
examples:
13752+
Example 1:
13753+
value:
13754+
- description: description
13755+
type: Type 1
13756+
cost_id: 10
13757+
supplier: Supplier
13758+
cost: 104
13759+
attachments:
13760+
- url: 'https://example.com/'
13761+
mime_type: image/jpg
13762+
'400':
13763+
description: Bad Request
13764+
'403':
13765+
description: Forbidden
13766+
'404':
13767+
$ref: '#/components/responses/NotFound'
13768+
'500':
13769+
description: Internal Server Error
13770+
operationId: patch-campaigns-campaign-finance-otherCosts
13771+
x-stoplight:
13772+
id: mwhcb91voxivy
13773+
security:
13774+
- JWT: []
13775+
requestBody:
13776+
content:
13777+
application/json:
13778+
schema:
13779+
type: array
13780+
items:
1370013781
type: object
1370113782
x-examples:
1370213783
Example 1:
1370313784
description: Riparazione hardware ufficio
1370413785
type_id: 3
13705-
cost_id: 2
1370613786
supplier_id: 105
1370713787
cost: 250.5
1370813788
attachments:
@@ -13712,24 +13792,18 @@ paths:
1371213792
mime_type: image/jpeg
1371313793
required:
1371413794
- description
13715-
- type
13716-
- cost_id
13717-
- supplier
13795+
- type_id
13796+
- supplier_id
1371813797
- cost
1371913798
- attachments
13799+
- cost_id
1372013800
properties:
1372113801
description:
1372213802
type: string
13723-
type:
13724-
type: string
13725-
x-stoplight:
13726-
id: q54ltj77jcyf0
13727-
cost_id:
13803+
type_id:
13804+
type: integer
13805+
supplier_id:
1372813806
type: integer
13729-
supplier:
13730-
type: string
13731-
x-stoplight:
13732-
id: 5aunsjh1dxfq1
1373313807
cost:
1373413808
type: number
1373513809
attachments:
@@ -13744,91 +13818,23 @@ paths:
1374413818
type: string
1374513819
mime_type:
1374613820
type: string
13747-
examples:
13748-
Example 1:
13749-
value:
13750-
description: description
13751-
type: Type 1
13752-
cost_id: 10
13753-
supplier: Supplier
13754-
cost: 104
13755-
attachments:
13756-
- url: 'https://example.com/'
13757-
mime_type: image/jpg
13758-
'400':
13759-
description: Bad Request
13760-
'403':
13761-
description: Forbidden
13762-
'404':
13763-
$ref: '#/components/responses/NotFound'
13764-
'500':
13765-
description: Internal Server Error
13766-
operationId: patch-campaigns-campaign-finance-otherCosts
13767-
x-stoplight:
13768-
id: mwhcb91voxivy
13769-
security:
13770-
- JWT: []
13771-
requestBody:
13772-
content:
13773-
application/json:
13774-
schema:
13775-
type: object
13776-
x-examples:
13777-
Example 1:
13778-
description: Riparazione hardware ufficio
13779-
type_id: 3
13780-
supplier_id: 105
13781-
cost: 250.5
13782-
attachments:
13783-
- url: 'https://esempio.com/documenti/fattura.pdf'
13784-
mime_type: application/pdf
13785-
- url: 'https://esempio.com/immagini/danno.jpg'
13786-
mime_type: image/jpeg
13787-
required:
13788-
- description
13789-
- type_id
13790-
- supplier_id
13791-
- cost
13792-
- attachments
13793-
- cost_id
13794-
properties:
13795-
description:
13796-
type: string
13797-
type_id:
13798-
type: integer
13799-
supplier_id:
13800-
type: integer
13801-
cost:
13802-
type: number
13803-
attachments:
13804-
type: array
13805-
items:
13806-
type: object
13807-
required:
13808-
- url
13809-
- mime_type
13810-
properties:
13811-
url:
13812-
type: string
13813-
mime_type:
13814-
type: string
13815-
cost_id:
13816-
type: integer
13817-
x-stoplight:
13818-
id: drnv0dayw8k18
13821+
cost_id:
13822+
type: integer
13823+
x-stoplight:
13824+
id: drnv0dayw8k18
1381913825
examples:
1382013826
Example 1:
1382113827
value:
13822-
description: Riparazione hardware ufficio
13823-
type_id: 3
13824-
cost_id: 2
13825-
supplier_id: 105
13826-
cost: 250.5
13827-
attachments:
13828-
- url: 'https://esempio.com/documenti/fattura.pdf'
13829-
mime_type: application/pdf
13830-
- url: 'https://esempio.com/immagini/danno.jpg'
13831-
mime_type: image/jpeg
13828+
- description: Riparazione hardware ufficio
13829+
type_id: 3
13830+
cost_id: 2
13831+
supplier_id: 105
13832+
cost: 250.5
13833+
attachments:
13834+
- url: 'https://esempio.com/documenti/fattura.pdf'
13835+
mime_type: application/pdf
13836+
- url: 'https://esempio.com/immagini/danno.jpg'
13837+
mime_type: image/jpeg
1383213838
servers:
1383313839
- url: 'https://api.app-quality.com'
1383413840
tags:

0 commit comments

Comments
 (0)