changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "count": {
+ "description": "Number of fruits matching the criteria",
+ "type": "number"
+ },
+ "fruits": {
+ "items": {
+ "properties": {
+ "family": {
+ "description": "Plant family classification",
+ "type": "string"
+ },
+ "genus": {
+ "description": "Genus classification",
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier for the fruit",
+ "type": "number"
+ },
+ "name": {
+ "description": "Name of the fruit",
+ "type": "string"
+ },
+ "nutritions": {
+ "properties": {
+ "calories": {
+ "description": "Calories per 100g",
+ "type": "number"
+ },
+ "carbohydrates": {
+ "description": "Carbohydrates per 100g in grams",
+ "type": "number"
+ },
+ "fat": {
+ "description": "Fat content per 100g in grams",
+ "type": "number"
+ },
+ "protein": {
+ "description": "Protein content per 100g in grams",
+ "type": "number"
+ },
+ "sugar": {
+ "description": "Sugar content per 100g in grams",
+ "type": "number"
+ }
+ },
+ "required": [
+ "calories",
+ "fat",
+ "sugar",
+ "carbohydrates",
+ "protein"
+ ],
+ "type": "object"
+ },
+ "order": {
+ "description": "Order classification",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "family",
+ "genus",
+ "order",
+ "nutritions"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "max": {
+ "description": "Maximum nutrient value for filtering",
+ "type": "number"
+ },
+ "min": {
+ "description": "Minimum nutrient value for filtering",
+ "type": "number"
+ },
+ "nutrient": {
+ "description": "The nutrient type used for filtering",
+ "type": "string"
+ }
+ },
+ "required": [
+ "nutrient",
+ "min",
+ "max",
+ "count",
+ "fruits"
+ ],
+ "type": "object"
+}