Skip to content

Commit

Permalink
Merge pull request #3445 from nebulab/kennyadsl/fix-line-item-api-doc
Browse files Browse the repository at this point in the history
Improve line items params in the API documentation
  • Loading branch information
jacobherrington authored Dec 10, 2019
2 parents 48f1fd9 + 2e3612f commit 798ca9b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions api/openapi/api.oas2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4353,12 +4353,7 @@ paths:
- in: body
name: body
schema:
allOf:
- $ref: '#/definitions/line-item-input'
- type: object
properties:
variant_id:
type: integer
$ref: '#/definitions/line-item-input'
security:
- api-key: []
- order-token: []
Expand Down Expand Up @@ -4420,12 +4415,7 @@ paths:
- in: body
name: body
schema:
allOf:
- type: object
properties:
variant_id:
type: integer
- $ref: '#/definitions/line-item-input'
$ref: '#/definitions/line-item-input'
security:
- api-key: []
- order-token: []
Expand Down Expand Up @@ -5638,8 +5628,16 @@ definitions:
properties:
quantity:
type: integer
description: 'Passing `0`, the line item will be removed.'
options:
type: object
description: 'This field can be used to pass custom line item attributes. When used, it will force a new price calculation, unless `price` is one of the options.'
id:
type: integer
description: Required for existing line items only.
variant_id:
type: integer
description: Required for new line items only.
option-type-input:
type: object
title: Option type input
Expand Down

0 comments on commit 798ca9b

Please sign in to comment.