---
title: "NutrientQuantity"
url: "https://developer.migros.ch/apis/quality-data-8/versions/a330cc6d-f33b-4507-8cf4-5670df44909b/schemas/NutrientQuantity"
---

> Full API specification: https://developer.migros.ch/apis/quality-data-8/versions/a330cc6d-f33b-4507-8cf4-5670df44909b.md

# NutrientQuantity

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Quality Data
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api.migros.ch
components:
  schemas:
    ValueWithUnit:
      properties:
        numeric_value:
          description: Value as number for calculation or custom display.
          format: float
          nullable: true
          type: number
        unit:
          description: Unit of the value.
          nullable: true
          type: string
        value:
          description: Value as a string for display.
          nullable: true
          type: string
      type: object
    NutrientQuantity:
      properties:
        alternate:
          nullable: true
          oneOf:
            - $ref: "#/components/schemas/ValueWithUnit"
        numeric_value:
          example: 0.1
          format: float
          type: number
        unit:
          example: g
          nullable: true
          type: string
        value:
          description: Alternate quantity information.
          example: 0.10 g
          type: string
      type: object
```
