Skip to content

Commit

Permalink
Merge pull request #1700 from nextcloud/revert/openapi-without-type
Browse files Browse the repository at this point in the history
Revert "Removed obsolete parameters from OpenAPI specs"
  • Loading branch information
christianlupus committed May 28, 2023
2 parents 91c7708 + 219e3a9 commit fc9a28e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
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

0 comments on commit fc9a28e

Please sign in to comment.