john-hu / untitled

0 stars 0 forks source link

json schema bug, this should be invalid #71

Closed john-hu closed 2 years ago

john-hu commented 2 years ago
{
        "id": "https://www.yummly.co.uk/recipe/Bread-Machine-Pumpkin-Spice-Quick-Bread-1058651",
        "mainLink": "https://www.yummly.co.uk/recipe/Bread-Machine-Pumpkin-Spice-Quick-Bread-1058651",
        "title": "Bread Machine Pumpkin Spice Quick Bread",
        "yield": {
            "number": 4,
            "unit": "people"
        },
        "language": "en",
        "sourceSite": "Yummly",
        "authors": [
            "Betty Crocker"
        ],
        "categories": [
            "Breads"
        ],
        "cookTime": null,
        "cookingMethods": [
            "Baking"
        ],
        "cuisines": null,
        "dateCreated": null,
        "dateModified": null,
        "description": "Bread Machine Pumpkin Spice Quick Bread With Sugar, Canned Pumpkin, Vegetable Oil, Vanilla, Eggs, Gold Medal All-purpose Flour, Baking Powder, Salt, Ground Cinnamon, Ground Nutmeg, Ground Cloves, Chopped Nuts",
        "images": [
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h1280-c-rj-v1-e365",
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h960-c-rj-v1-e365",
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h720-c-rj-v1-e365"
        ],
        "videos": null,
        "ingredients": null,
        "ingredientsRaw": [
            "1 cup sugar ",
            "1 cup canned pumpkin ",
            "1/3 cup vegetable oil ",
            "1 teaspoon vanilla ",
            "2 eggs ",
            "1 1/2 cups Gold Medal All-Purpose Flour or Better for Bread\\u2122 flour",
            "2 teaspoons baking powder ",
            "1/4 teaspoon salt ",
            "1 teaspoon ground cinnamon ",
            "1/4 teaspoon ground nutmeg ",
            "1/8 teaspoon ground cloves ",
            "1/2 cup chopped nuts if desired, optional"
        ],
        "instructions": null,
        "instructionsRaw": null,
        "nutrition": {
            "calories": {
                "number": 690.0,
                "unit": "calories"
            },
            "carbohydrateContent": {
                "number": 96.0,
                "unit": "grams"
            },
            "cholesterolContent": {
                "number": 105.0,
                "unit": "milligrams"
            },
            "fatContent": {
                "number": 30.0,
                "unit": "grams"
            },
            "fiberContent": {
                "number": 5.0,
                "unit": "grams"
            },
            "proteinContent": {
                "number": 13.0,
                "unit": "grams"
            },
            "saturatedFatContent": {
                "number": 3.0,
                "unit": "grams"
            },
            "servingSize": null,
            "sodiumContent": {
                "number": 460.0,
                "unit": "milligrams"
            },
            "sugarContent": {
                "number": 53.0,
                "unit": "grams"
            },
            "transFatContent": null,
            "unsaturatedFatContent": null
        },
        "keywords": [
            "Breads",
            "Baking"
        ],
        "prepTime": null,
        "suitableForDiet": null,
        "version": "raw"
    }
{
        "id": "https://www.yummly.co.uk/recipe/Bread-Machine-Pumpkin-Spice-Quick-Bread-1058651",
        "mainLink": "https://www.yummly.co.uk/recipe/Bread-Machine-Pumpkin-Spice-Quick-Bread-1058651",
        "title": "Bread Machine Pumpkin Spice Quick Bread",
        "yield": {
            "number": 4,
            "unit": "people"
        },
        "language": "en",
        "sourceSite": "Yummly",
        "authors": [
            "Betty Crocker"
        ],
        "categories": [
            "Breads"
        ],
        "cookTime": null,
        "cookingMethods": [
            "Baking"
        ],
        "cuisines": null,
        "dateCreated": null,
        "dateModified": null,
        "description": "Bread Machine Pumpkin Spice Quick Bread With Sugar, Canned Pumpkin, Vegetable Oil, Vanilla, Eggs, Gold Medal All-purpose Flour, Baking Powder, Salt, Ground Cinnamon, Ground Nutmeg, Ground Cloves, Chopped Nuts",
        "images": [
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h1280-c-rj-v1-e365",
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h960-c-rj-v1-e365",
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h720-c-rj-v1-e365"
        ],
        "videos": null,
        "ingredients": null,
        "ingredientsRaw": [
            "1 cup sugar ",
            "1 cup canned pumpkin ",
            "1/3 cup vegetable oil ",
            "1 teaspoon vanilla ",
            "2 eggs ",
            "1 1/2 cups Gold Medal All-Purpose Flour or Better for Bread\\u2122 flour",
            "2 teaspoons baking powder ",
            "1/4 teaspoon salt ",
            "1 teaspoon ground cinnamon ",
            "1/4 teaspoon ground nutmeg ",
            "1/8 teaspoon ground cloves ",
            "1/2 cup chopped nuts if desired, optional"
        ],
        "instructions": null,
        "instructionsRaw": null,
        "nutrition": {
            "calories": {
                "number": 690.0,
                "unit": "calories"
            },
            "carbohydrateContent": {
                "number": 96.0,
                "unit": "grams"
            },
            "cholesterolContent": {
                "number": 105.0,
                "unit": "milligrams"
            },
            "fatContent": {
                "number": 30.0,
                "unit": "grams"
            },
            "fiberContent": {
                "number": 5.0,
                "unit": "grams"
            },
            "proteinContent": {
                "number": 13.0,
                "unit": "grams"
            },
            "saturatedFatContent": {
                "number": 3.0,
                "unit": "grams"
            },
            "servingSize": null,
            "sodiumContent": {
                "number": 460.0,
                "unit": "milligrams"
            },
            "sugarContent": {
                "number": 53.0,
                "unit": "grams"
            },
            "transFatContent": null,
            "unsaturatedFatContent": null
        },
        "keywords": [
            "Breads",
            "Baking"
        ],
        "prepTime": null,
        "suitableForDiet": null,
        "version": "raw"
    }
{
        "id": "https://www.yummly.co.uk/recipe/Bread-Machine-Pumpkin-Spice-Quick-Bread-1058651",
        "mainLink": "https://www.yummly.co.uk/recipe/Bread-Machine-Pumpkin-Spice-Quick-Bread-1058651",
        "title": "Bread Machine Pumpkin Spice Quick Bread",
        "yield": {
            "number": 4,
            "unit": "people"
        },
        "language": "en",
        "sourceSite": "Yummly",
        "authors": [
            "Betty Crocker"
        ],
        "categories": [
            "Breads"
        ],
        "cookTime": null,
        "cookingMethods": [
            "Baking"
        ],
        "cuisines": null,
        "dateCreated": null,
        "dateModified": null,
        "description": "Bread Machine Pumpkin Spice Quick Bread With Sugar, Canned Pumpkin, Vegetable Oil, Vanilla, Eggs, Gold Medal All-purpose Flour, Baking Powder, Salt, Ground Cinnamon, Ground Nutmeg, Ground Cloves, Chopped Nuts",
        "images": [
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h1280-c-rj-v1-e365",
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h960-c-rj-v1-e365",
            "https://lh3.googleusercontent.com/2uGFV-TZ2yFhYNgAzez-9uW4p1h_JvAcT-7kzwEqljmfncDJ2grDgJ2scjC-1jteUkYwNIms55LnPIoW9syFpw=w1280-h720-c-rj-v1-e365"
        ],
        "videos": null,
        "ingredients": null,
        "ingredientsRaw": [
            "1 cup sugar ",
            "1 cup canned pumpkin ",
            "1/3 cup vegetable oil ",
            "1 teaspoon vanilla ",
            "2 eggs ",
            "1 1/2 cups Gold Medal All-Purpose Flour or Better for Bread\\u2122 flour",
            "2 teaspoons baking powder ",
            "1/4 teaspoon salt ",
            "1 teaspoon ground cinnamon ",
            "1/4 teaspoon ground nutmeg ",
            "1/8 teaspoon ground cloves ",
            "1/2 cup chopped nuts if desired, optional"
        ],
        "instructions": null,
        "instructionsRaw": null,
        "nutrition": {
            "calories": {
                "number": 690.0,
                "unit": "calories"
            },
            "carbohydrateContent": {
                "number": 96.0,
                "unit": "grams"
            },
            "cholesterolContent": {
                "number": 105.0,
                "unit": "milligrams"
            },
            "fatContent": {
                "number": 30.0,
                "unit": "grams"
            },
            "fiberContent": {
                "number": 5.0,
                "unit": "grams"
            },
            "proteinContent": {
                "number": 13.0,
                "unit": "grams"
            },
            "saturatedFatContent": {
                "number": 3.0,
                "unit": "grams"
            },
            "servingSize": null,
            "sodiumContent": {
                "number": 460.0,
                "unit": "milligrams"
            },
            "sugarContent": {
                "number": 53.0,
                "unit": "grams"
            },
            "transFatContent": null,
            "unsaturatedFatContent": null
        },
        "keywords": [
            "Breads",
            "Baking"
        ],
        "prepTime": null,
        "suitableForDiet": null,
        "version": "raw"
    }

At least instructions should be filled. "instructions": null, "instructionsRaw": null,