addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / a
Added value: +{
+ "additionalProperties": false,
+ "description": "First body for the compare operation: an object of unitSystem, weight, and height. Required only when operation is compare.",
+ "properties": {
+ "height": {
+ "description": "Height in cm (metric) or inches (imperial).",
+ "minimum": 0,
+ "type": "number"
+ },
+ "unitSystem": {
+ "description": "Unit system for this body weight and height.",
+ "enum": [
+ "metric",
+ "imperial"
+ ],
+ "type": "string"
+ },
+ "weight": {
+ "description": "Weight in kg (metric) or lb (imperial).",
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / b
Added value: +{
+ "additionalProperties": false,
+ "description": "Second body for the compare operation, same shape as a. Required only when operation is compare.",
+ "properties": {
+ "height": {
+ "description": "Height in cm (metric) or inches (imperial).",
+ "minimum": 0,
+ "type": "number"
+ },
+ "unitSystem": {
+ "description": "Unit system for this body weight and height.",
+ "enum": [
+ "metric",
+ "imperial"
+ ],
+ "type": "string"
+ },
+ "weight": {
+ "description": "Weight in kg (metric) or lb (imperial).",
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / height / description
Added value: +"Body height. In metric it is centimetres (max 300); in imperial it is total inches (max 120), or pass an object with feet and inches keys. Must be greater than zero. Required for compute and target-weight."
addedInput schema / properties / height / minimum
Added value: +0
addedInput schema / properties / operation / description
Added value: +"Which calculation to run: compute for BMI from weight plus height, target-weight to reverse a target BMI into the weight needed at a height, or compare to diff two bodies supplied as a and b."
addedInput schema / properties / operation / enum
Added value: +[
+ "compute",
+ "target-weight",
+ "compare"
+]
addedInput schema / properties / targetBmi
Added value: +{
+ "description": "Desired BMI to solve the matching weight for at the given height. Required only when operation is target-weight.",
+ "maximum": 100,
+ "minimum": 10,
+ "type": "number"
+}
addedInput schema / properties / unitSystem / description
Added value: +"Unit system for weight and height. Metric reads weight in kg and height in cm; imperial reads weight in lb and height in inches (or feet plus inches). Required for compute and target-weight."
addedInput schema / properties / unitSystem / enum
Added value: +[
+ "metric",
+ "imperial"
+]
addedInput schema / properties / weight / description
Added value: +"Body weight. In metric it is kilograms (max 1000); in imperial it is pounds (max 2200). Must be greater than zero. Required for compute."
addedInput schema / properties / weight / minimum
Added value: +0
changedInput schema / properties / weight / type
Previous value: -"integer"New value: +"number"
changedInput schema / required
Previous value: -[
- "operation",
- "unitSystem",
- "weight",
- "height"
-]New value: +[
+ "operation"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "data": {
+ "description": "Result payload. Shape depends on the operation; the compute fields are listed here.",
+ "properties": {
+ "bmi": {
+ "description": "Body Mass Index, rounded to 2 decimals.",
+ "type": "number"
+ },
+ "category": {
+ "description": "Human-readable WHO category label, for example Normal weight or Obese class I.",
+ "type": "string"
+ },
+ "categoryCode": {
+ "description": "Machine code for the category (severe_thin, moderate_thin, mild_thin, normal, overweight, obese_i, obese_ii, obese_iii).",
+ "type": "string"
+ },
+ "healthyWeightRange": {
+ "description": "Weight band that maps to a normal BMI (18.5 to 24.9) at this height.",
+ "properties": {
+ "maxKg": {
+ "description": "Upper healthy weight bound in kilograms.",
+ "type": "number"
+ },
+ "maxLb": {
+ "description": "Upper healthy weight bound in pounds.",
+ "type": "number"
+ },
+ "minKg": {
+ "description": "Lower healthy weight bound in kilograms.",
+ "type": "number"
+ },
+ "minLb": {
+ "description": "Lower healthy weight bound in pounds.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "heightIn": {
+ "description": "Normalized height in inches, rounded to 2 decimals.",
+ "type": "number"
+ },
+ "heightM": {
+ "description": "Normalized height in metres, rounded to 2 decimals.",
+ "type": "number"
+ },
+ "interpretation": {
+ "description": "Plain-language interpretation of the BMI and category, with the underlying range.",
+ "type": "string"
+ },
+ "unitSystem": {
+ "description": "Unit system used for the inputs (metric or imperial).",
+ "type": "string"
+ },
+ "weightKg": {
+ "description": "Normalized weight in kilograms, rounded to 1 decimal.",
+ "type": "number"
+ },
+ "weightLb": {
+ "description": "Normalized weight in pounds, rounded to 1 decimal.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "operation": {
+ "description": "The operation that was executed, echoed back.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+}