diff --git a/docs/api/ref/schemas/product_extended.yaml b/docs/api/ref/schemas/product_extended.yaml index 23ece91efaea2..b317ac606d2f5 100644 --- a/docs/api/ref/schemas/product_extended.yaml +++ b/docs/api/ref/schemas/product_extended.yaml @@ -92,11 +92,10 @@ 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 + oneOf: + - type: integer + - type: string + - type: object nova_groups_markers: type: object description: | diff --git a/docs/api/ref/schemas/product_nutrition.yaml b/docs/api/ref/schemas/product_nutrition.yaml index 9cf20b7c915d7..ef4ed9e44cbe3 100644 --- a/docs/api/ref/schemas/product_nutrition.yaml +++ b/docs/api/ref/schemas/product_nutrition.yaml @@ -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'] '(?\w+)_100g': description: |