Skip to content

Commit

Permalink
Deploying to gh-pages from @ 85acc5a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderlee committed Aug 8, 2024
1 parent a8e532c commit 9b690cd
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 23 deletions.
56 changes: 43 additions & 13 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ArticleChangeable"
"$ref": "#/components/schemas/ArticlePatchable"
}
}
},
Expand Down Expand Up @@ -3564,8 +3564,8 @@
},
"Article": {
"required": [
"categories",
"name"
"name",
"categories"
],
"example": {
"id": 123,
Expand Down Expand Up @@ -3720,7 +3720,7 @@
}
]
},
"ArticleChangeable": {
"ArticlePatchable": {
"example": {
"name": "Funny cushion",
"description": "Endless fun",
Expand Down Expand Up @@ -3751,6 +3751,12 @@
"category_id": 748020,
"is_main": true,
"is_active": true
},
{
"category_id": 824312,
"article_url_id": 4005,
"is_main": false,
"is_active": true
}
],
"lists": [
Expand Down Expand Up @@ -3799,6 +3805,12 @@
},
{
"properties": {
"categories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CategoryArticlePatchable"
}
},
"variants": {
"type": "array",
"items": {
Expand Down Expand Up @@ -3885,7 +3897,7 @@
"categories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CategoryArticle"
"$ref": "#/components/schemas/CategoryArticlePostable"
}
},
"lists": {
Expand Down Expand Up @@ -4365,6 +4377,32 @@
}
},
"CategoryArticle": {
"properties": {
"position": {
"description": "Relative position of the article on the page",
"type": "integer"
}
},
"allOf": [
{
"$ref": "#/components/schemas/CategoryArticlePatchable"
}
]
},
"CategoryArticlePatchable": {
"properties": {
"article_url_id": {
"description": "Unique ID of the article linked to this page",
"type": "integer"
}
},
"allOf": [
{
"$ref": "#/components/schemas/CategoryArticlePostable"
}
]
},
"CategoryArticlePostable": {
"required": [
"category_id"
],
Expand All @@ -4373,21 +4411,13 @@
"description": "Internal category id",
"type": "integer"
},
"article_url_id": {
"description": "Article page URL Id",
"type": "integer"
},
"is_active": {
"description": "Whether the article is visible in the store on this page",
"type": "boolean"
},
"is_main": {
"description": "Whether this is the primary category linked to the article",
"type": "boolean"
},
"position": {
"description": "Relative position of the article on the page",
"type": "integer"
}
}
},
Expand Down
36 changes: 26 additions & 10 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ArticleChangeable"
$ref: "#/components/schemas/ArticlePatchable"
description: Article with attributes to change
required: true
responses:
Expand Down Expand Up @@ -2201,8 +2201,8 @@ components:
type: string
Article:
required:
- categories
- name
- categories
example:
id: 123
uuid: "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
Expand Down Expand Up @@ -2309,7 +2309,7 @@ components:
type: array
items:
$ref: "#/components/schemas/ArticleVariant"
ArticleChangeable:
ArticlePatchable:
example:
name: Funny cushion
description: Endless fun
Expand All @@ -2335,6 +2335,10 @@ components:
- category_id: 748020
is_main: true
is_active: true
- category_id: 824312
article_url_id: 4005
is_main: false
is_active: true
lists:
- id: 293822
has_images: true
Expand All @@ -2359,6 +2363,10 @@ components:
allOf:
- $ref: "#/components/schemas/ArticlePostable"
- properties:
categories:
type: array
items:
$ref: "#/components/schemas/CategoryArticlePatchable"
variants:
type: array
items:
Expand Down Expand Up @@ -2413,7 +2421,7 @@ components:
categories:
type: array
items:
$ref: "#/components/schemas/CategoryArticle"
$ref: "#/components/schemas/CategoryArticlePostable"
lists:
type: array
items:
Expand Down Expand Up @@ -2752,24 +2760,32 @@ components:
sorting:
before: 78908
CategoryArticle:
properties:
position:
description: Relative position of the article on the page
type: integer
allOf:
- $ref: "#/components/schemas/CategoryArticlePatchable"
CategoryArticlePatchable:
properties:
article_url_id:
description: Unique ID of the article linked to this page
type: integer
allOf:
- $ref: "#/components/schemas/CategoryArticlePostable"
CategoryArticlePostable:
required:
- category_id
properties:
category_id:
description: Internal category id
type: integer
article_url_id:
description: Article page URL Id
type: integer
is_active:
description: Whether the article is visible in the store on this page
type: boolean
is_main:
description: Whether this is the primary category linked to the article
type: boolean
position:
description: Relative position of the article on the page
type: integer
CategorySorting:
description: Category sorting details
properties:
Expand Down

0 comments on commit 9b690cd

Please sign in to comment.