Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Removed obsolete parameters from OpenAPI specs" #1700

Merged
merged 2 commits into from
May 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
[#1680](https://github.com/nextcloud/cookbook/pull/1680) @dependabot
- Fix bug in browser console
[#1686](https://github.com/nextcloud/cookbook/pull/1686) @christianlupus
- Make OpenAPI specs more compatible regarding `@type`
[#1700](https://github.com/nextcloud/cookbook/pull/1700) @christianlupus


## 0.10.2 - 2023-03-24
Expand Down
10 changes: 10 additions & 0 deletions docs/dev/api/0.1.0/objects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ Instruction:
Nutrition:
type: object
properties:
"@type":
type: string
example: NutritionInformation
description: Schema.org object description
calories:
type: string
description: The number of calories for the given amount
Expand Down Expand Up @@ -158,6 +162,8 @@ Nutrition:
type: string
description: The number of grams of unsaturated fat
example: 40 g
required:
- "@type"

Recipe:
#type: object
Expand All @@ -166,6 +172,10 @@ Recipe:
- $ref: "#/RecipeStubInformation"
- type: object
properties:
"@type":
type: string
example: "Recipe"
description: Schema.org object type identifier
id:
type: string
description: The index of the recipe. Note the representation as a string as the representation might change in the future.
Expand Down
12 changes: 12 additions & 0 deletions docs/dev/api/0.1.1/objects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ Instruction:
Nutrition:
type: object
properties:
"@type":
type: string
example: NutritionInformation
description: Schema.org object description
default: NutritionInformation
calories:
type: string
description: The number of calories for the given amount
Expand Down Expand Up @@ -215,6 +220,8 @@ Nutrition:
type: string
description: The number of grams of unsaturated fat
example: 40 g
required:
- "@type"

Recipe:
#type: object
Expand All @@ -223,6 +230,11 @@ Recipe:
- $ref: "#/RecipeStubInformation"
- type: object
properties:
"@type":
type: string
example: "Recipe"
default: Recipe
description: Schema.org object type identifier
id:
type: string
description: The index of the recipe. Note the representation as a string as the representation might change in the future.
Expand Down