Skip to content

Commit

Permalink
docs: fix OpenAPI product_extended.yaml
Browse files Browse the repository at this point in the history
that was blocking rendering in rapidoc
  • Loading branch information
alexgarel committed Aug 7, 2023
1 parent 799f250 commit 88b8904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/api/ref/schemas/product_extended.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ properties:
description: |
you can retrieve all kind of properties, the same as on the parent object (the product).
It's not processed entries (like tags for example) but raw ones.
type:
oneOf:
- integer
- string
- object
type: object
oneOf:
- integer
- string
- object
nova_groups_markers:
type: object
description: |
Expand Down
1 change: 1 addition & 0 deletions docs/api/ref/schemas/product_nutrition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ properties:
[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html
[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)
type: string
enum: ['公斤', '公升', 'kg', 'кг', 'l', 'л', '毫克', 'mg', 'мг', 'mcg', 'µg', 'oz', 'fl oz', 'dl', 'дл', 'cl', 'кл', '斤', 'g', '', ' ', 'kj', '克', '公克', 'г', 'мл', 'ml', 'mmol/l', '毫升', '% vol', 'ph', '%', '% dv', '% vol (alcohol)', 'iu', 'mol/l', 'mval/l', 'ppm', '�rh', '�fh', '�e', '�dh', 'gpg']
'(?<nutrient>\w+)_100g':
description: |
Expand Down

0 comments on commit 88b8904

Please sign in to comment.