Validations history

Validation #839

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "player": {
      "additionalProperties": false,
      "properties": {
        "avatar": {
          "type": "integer"
        },
        "push_token": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    }
  },
  "required": [
    "player"
  ],
  "title": "Player - UpdatePlayer",
  "type": "object"
}

JSON instance

{
  "player": {}
}

Validation #838

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/bookings/0' did not contain a required property of 'booking_users' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503
  • The property '#/bookings/0' did not contain a required property of 'date' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503
  • The property '#/bookings/0' did not contain a required property of 'id' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503
  • The property '#/bookings/0' did not contain a required property of 'meeting_room_id' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503
  • The property '#/bookings/0' did not contain a required property of 'meeting_room_timeslot_id' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503
  • The property '#/bookings/0' did not contain a required property of 'meeting_room_timeslot_ids' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503
  • The property '#/bookings/0' did not contain a required property of 'subscription_id' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultBookingUser_1032": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "aerohive_ppsk": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "booking_id": {
          "type": "integer"
        },
        "brivo_pin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "custom_invitation_text": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "specific_end_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "specific_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_uid": {
          "type": "string"
        }
      },
      "required": [
        "aerohive_ppsk",
        "booking_id",
        "brivo_pin",
        "custom_invitation_text",
        "id",
        "specific_end_time",
        "specific_start_time",
        "user_uid"
      ],
      "title": "BookingUser - DefaultBookingUser",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "bookings": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "booking_users": {
            "items": {
              "$ref": "#/definitions/DefaultBookingUser_1032",
              "type": "object"
            },
            "type": "array"
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "meeting_room_id": {
            "type": "integer"
          },
          "meeting_room_timeslot_id": {
            "description": "DEPRECATED",
            "type": "integer"
          },
          "meeting_room_timeslot_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "subscription_id": {
            "type": "integer"
          }
        },
        "required": [
          "booking_users",
          "date",
          "id",
          "meeting_room_id",
          "meeting_room_timeslot_id",
          "meeting_room_timeslot_ids",
          "subscription_id"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "bookings"
  ],
  "title": "Booking - DefaultBooking",
  "type": "object"
}

JSON instance

{
  "bookings": [
    {}
  ]
}

Validation #837

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultBookingUser_1032": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "aerohive_ppsk": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "booking_id": {
          "type": "integer"
        },
        "brivo_pin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "custom_invitation_text": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "specific_end_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "specific_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_uid": {
          "type": "string"
        }
      },
      "required": [
        "aerohive_ppsk",
        "booking_id",
        "brivo_pin",
        "custom_invitation_text",
        "id",
        "specific_end_time",
        "specific_start_time",
        "user_uid"
      ],
      "title": "BookingUser - DefaultBookingUser",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "bookings": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "booking_users": {
            "items": {
              "$ref": "#/definitions/DefaultBookingUser_1032",
              "type": "object"
            },
            "type": "array"
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "meeting_room_id": {
            "type": "integer"
          },
          "meeting_room_timeslot_id": {
            "description": "DEPRECATED",
            "type": "integer"
          },
          "meeting_room_timeslot_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "subscription_id": {
            "type": "integer"
          }
        },
        "required": [
          "booking_users",
          "date",
          "id",
          "meeting_room_id",
          "meeting_room_timeslot_id",
          "meeting_room_timeslot_ids",
          "subscription_id"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "bookings"
  ],
  "title": "Booking - DefaultBooking",
  "type": "object"
}

JSON instance

{
  "bookings": []
}

Validation #836

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/bookings' of type object did not match the following type: array in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultBookingUser_1032": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "aerohive_ppsk": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "booking_id": {
          "type": "integer"
        },
        "brivo_pin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "custom_invitation_text": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "specific_end_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "specific_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_uid": {
          "type": "string"
        }
      },
      "required": [
        "aerohive_ppsk",
        "booking_id",
        "brivo_pin",
        "custom_invitation_text",
        "id",
        "specific_end_time",
        "specific_start_time",
        "user_uid"
      ],
      "title": "BookingUser - DefaultBookingUser",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "bookings": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "booking_users": {
            "items": {
              "$ref": "#/definitions/DefaultBookingUser_1032",
              "type": "object"
            },
            "type": "array"
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "meeting_room_id": {
            "type": "integer"
          },
          "meeting_room_timeslot_id": {
            "description": "DEPRECATED",
            "type": "integer"
          },
          "meeting_room_timeslot_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "subscription_id": {
            "type": "integer"
          }
        },
        "required": [
          "booking_users",
          "date",
          "id",
          "meeting_room_id",
          "meeting_room_timeslot_id",
          "meeting_room_timeslot_ids",
          "subscription_id"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "bookings"
  ],
  "title": "Booking - DefaultBooking",
  "type": "object"
}

JSON instance

{
  "bookings": {}
}

Validation #835

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/' did not contain a required property of 'bookings' in schema 6372d8ce-bdd0-5f14-b733-f09adde1c503

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultBookingUser_1032": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "aerohive_ppsk": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "booking_id": {
          "type": "integer"
        },
        "brivo_pin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "custom_invitation_text": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "specific_end_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "specific_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_uid": {
          "type": "string"
        }
      },
      "required": [
        "aerohive_ppsk",
        "booking_id",
        "brivo_pin",
        "custom_invitation_text",
        "id",
        "specific_end_time",
        "specific_start_time",
        "user_uid"
      ],
      "title": "BookingUser - DefaultBookingUser",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "bookings": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "booking_users": {
            "items": {
              "$ref": "#/definitions/DefaultBookingUser_1032",
              "type": "object"
            },
            "type": "array"
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "meeting_room_id": {
            "type": "integer"
          },
          "meeting_room_timeslot_id": {
            "description": "DEPRECATED",
            "type": "integer"
          },
          "meeting_room_timeslot_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "subscription_id": {
            "type": "integer"
          }
        },
        "required": [
          "booking_users",
          "date",
          "id",
          "meeting_room_id",
          "meeting_room_timeslot_id",
          "meeting_room_timeslot_ids",
          "subscription_id"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "bookings"
  ],
  "title": "Booking - DefaultBooking",
  "type": "object"
}

JSON instance

{}

Validation #834

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/news/0/picture' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/news/0/picture' value "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsyT1RkbFlUVmlaQzFoTTJOakxUUXdORFl0WVdReU9DMWxNRGcyTWpGa056YzBZVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--9504a29b9533af5965677f5eca9582b9d2510d36/294-500x500.jpg?disposition=attachment" did not match the regex 'https:\/\/picsum\.photos\/250\/300' - anyOf #1: - The property '#/news/0/picture' of type string did not match the following type: null
  • The property '#/news/1/picture' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/news/1/picture' value "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtWlRJMk1qTm1aQzAzWWpCakxUUXdOVFF0T1dNMVpDMWxaalptWmpka056WTJNemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--2b12fe4c80254812a21b4f08ffade1b324edd275/294-500x500.jpg?disposition=attachment" did not match the regex 'https:\/\/picsum\.photos\/250\/300' - anyOf #1: - The property '#/news/1/picture' of type string did not match the following type: null
  • The property '#/news/2/picture' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/news/2/picture' value "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3WVRJME5XTTFPUzFtTldGaUxUUXdNemd0T1RjeFpTMWlORGt6TWpRd1pHVmxNR01HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--84d52c7eea553cb22ec2f309e8c3b4a28dd3ed9f/294-500x500.jpg?disposition=attachment" did not match the regex 'https:\/\/picsum\.photos\/250\/300' - anyOf #1: - The property '#/news/2/picture' of type string did not match the following type: null

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultNewsAttachment_2356": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "file": {
          "format": "uri",
          "type": "string"
        },
        "id": {
          "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "file",
        "id",
        "name"
      ],
      "title": "NewsAttachment - DefaultNewsAttachment",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "news": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "news_attachments": {
            "items": {
              "$ref": "#/definitions/DefaultNewsAttachment_2356",
              "type": "object"
            },
            "type": "array"
          },
          "picture": {
            "anyOf": [
              {
                "pattern": "https:\\/\\/picsum\\.photos\\/250\\/300",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publication_date": {
            "format": "date",
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "description",
          "id",
          "news_attachments",
          "picture",
          "publication_date",
          "title"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "news"
  ],
  "title": "News - DefaultNews",
  "type": "object"
}

JSON instance

{
  "news": [
    {
      "description": "Some description",
      "id": "02b1787e-6d79-4928-a1e7-cdb855f8a437",
      "news_attachments": [
        {
          "file": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWswTURnek1tTTFNeTB4WWpFekxUUXlZekl0T1dWa01DMW1aVEpoWVRoaU0yRTVZbUVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--e92d6f5011f8cfaf8e61d6f0eef19b2353ebb521/dummy.pdf?disposition=attachment",
          "id": "9bef4c07-2819-4c59-9d3a-6814b0a92b0d",
          "name": "Document"
        }
      ],
      "picture": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsyT1RkbFlUVmlaQzFoTTJOakxUUXdORFl0WVdReU9DMWxNRGcyTWpGa056YzBZVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--9504a29b9533af5965677f5eca9582b9d2510d36/294-500x500.jpg?disposition=attachment",
      "publication_date": "2020-04-02",
      "title": "My title"
    },
    {
      "description": "Some description",
      "id": "78a4dc4c-498e-433c-9aa5-76f44fc66c4c",
      "news_attachments": [],
      "picture": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtWlRJMk1qTm1aQzAzWWpCakxUUXdOVFF0T1dNMVpDMWxaalptWmpka056WTJNemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--2b12fe4c80254812a21b4f08ffade1b324edd275/294-500x500.jpg?disposition=attachment",
      "publication_date": "2020-04-02",
      "title": "My title"
    },
    {
      "description": "Some description",
      "id": "6796c7ad-03e2-461c-82e3-d9b017ab00f5",
      "news_attachments": [],
      "picture": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3WVRJME5XTTFPUzFtTldGaUxUUXdNemd0T1RjeFpTMWlORGt6TWpRd1pHVmxNR01HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--84d52c7eea553cb22ec2f309e8c3b4a28dd3ed9f/294-500x500.jpg?disposition=attachment",
      "publication_date": "2020-04-02",
      "title": "My title"
    }
  ]
}

Validation #833

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultNewsAttachment_2356": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "file": {
          "format": "uri",
          "type": "string"
        },
        "id": {
          "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "file",
        "id",
        "name"
      ],
      "title": "NewsAttachment - DefaultNewsAttachment",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "news": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "news_attachments": {
            "items": {
              "$ref": "#/definitions/DefaultNewsAttachment_2356",
              "type": "object"
            },
            "type": "array"
          },
          "picture": {
            "anyOf": [
              {
                "pattern": "https:\\/\\/picsum\\.photos\\/250\\/300",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publication_date": {
            "format": "date",
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "description",
          "id",
          "news_attachments",
          "picture",
          "publication_date",
          "title"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "news"
  ],
  "title": "News - DefaultNews",
  "type": "object"
}

JSON instance

{
  "news": [
    {
      "description": "ipsum officia anim ea elit",
      "id": "eu dolor esse",
      "news_attachments": [
        {
          "file": "https://XUeAobXgPfWtX.ztt9BS+sDtxtN912lvWa-FNX,AjEbWkCGMI+r8ziZ+aI..LA96htFdR0",
          "id": "0ac3b631-73a5-4c7d-9115-059c4cd496fb",
          "name": "Ut"
        },
        {
          "file": "https://eLncgVaHefpfYKRwmJnauCjNrxatPyw.bdjuhVEo7WZ5B0biagX-nV0Ns",
          "id": "b2f1ff17-bdf3-57d9-a897-4eb8d2272173",
          "name": "veniam ad nulla sunt"
        },
        {
          "file": "https://CjDLqVNBsSvLojxnLRjFcqOoyCWPk.ptgbUlitHQnpTMV8gtQq",
          "id": "621dad02-85e4-5810-8676-a61965922fcf",
          "name": "voluptate elit"
        },
        {
          "file": "https://YPrNKOflWklMKzPVFQBcXYwSHMSfiEFXU.zim.IW,Lm89WFHMyVMKzTL7tKVMmTzOHDoAXRdlvrs7y9kufDrELx7nO",
          "id": "3bcc1cb4-312e-3c0c-8d77-c1f7dc1b92bc",
          "name": "laboris minim"
        },
        {
          "file": "https://AVXaKjHD.rtvvJlBqzSPLxP0hbUkeXUdQ",
          "id": "5a38a3cc-7939-27d9-b44d-4eba1b14d300",
          "name": "deserunt mollit incididunt"
        }
      ],
      "picture": "https://picsum.photos/250/300",
      "publication_date": "1951-11-18",
      "title": "culpa eu"
    }
  ]
}

Validation #832

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/news/0/picture' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/news/0/picture' value "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsyT1RkbFlUVmlaQzFoTTJOakxUUXdORFl0WVdReU9DMWxNRGcyTWpGa056YzBZVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--9504a29b9533af5965677f5eca9582b9d2510d36/294-500x500.jpg?disposition=attachment" did not match the regex 'https:\/\/picsum\.photos\/250\/300' - anyOf #1: - The property '#/news/0/picture' of type string did not match the following type: null
  • The property '#/news/1/picture' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/news/1/picture' value "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtWlRJMk1qTm1aQzAzWWpCakxUUXdOVFF0T1dNMVpDMWxaalptWmpka056WTJNemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--2b12fe4c80254812a21b4f08ffade1b324edd275/294-500x500.jpg?disposition=attachment" did not match the regex 'https:\/\/picsum\.photos\/250\/300' - anyOf #1: - The property '#/news/1/picture' of type string did not match the following type: null
  • The property '#/news/2/picture' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/news/2/picture' value "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3WVRJME5XTTFPUzFtTldGaUxUUXdNemd0T1RjeFpTMWlORGt6TWpRd1pHVmxNR01HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--84d52c7eea553cb22ec2f309e8c3b4a28dd3ed9f/294-500x500.jpg?disposition=attachment" did not match the regex 'https:\/\/picsum\.photos\/250\/300' - anyOf #1: - The property '#/news/2/picture' of type string did not match the following type: null

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultNewsAttachment_2356": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "file": {
          "format": "uri",
          "type": "string"
        },
        "id": {
          "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "file",
        "id",
        "name"
      ],
      "title": "NewsAttachment - DefaultNewsAttachment",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "news": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "news_attachments": {
            "items": {
              "$ref": "#/definitions/DefaultNewsAttachment_2356",
              "type": "object"
            },
            "type": "array"
          },
          "picture": {
            "anyOf": [
              {
                "pattern": "https:\\/\\/picsum\\.photos\\/250\\/300",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publication_date": {
            "format": "date",
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "description",
          "id",
          "news_attachments",
          "picture",
          "publication_date",
          "title"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "news"
  ],
  "title": "News - DefaultNews",
  "type": "object"
}

JSON instance

{
  "news": [
    {
      "description": "Some description",
      "id": "02b1787e-6d79-4928-a1e7-cdb855f8a437",
      "news_attachments": [
        {
          "file": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWswTURnek1tTTFNeTB4WWpFekxUUXlZekl0T1dWa01DMW1aVEpoWVRoaU0yRTVZbUVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--e92d6f5011f8cfaf8e61d6f0eef19b2353ebb521/dummy.pdf?disposition=attachment",
          "id": "9bef4c07-2819-4c59-9d3a-6814b0a92b0d",
          "name": "Document"
        }
      ],
      "picture": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsyT1RkbFlUVmlaQzFoTTJOakxUUXdORFl0WVdReU9DMWxNRGcyTWpGa056YzBZVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--9504a29b9533af5965677f5eca9582b9d2510d36/294-500x500.jpg?disposition=attachment",
      "publication_date": "2020-04-02",
      "title": "My title"
    },
    {
      "description": "Some description",
      "id": "78a4dc4c-498e-433c-9aa5-76f44fc66c4c",
      "news_attachments": [],
      "picture": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtWlRJMk1qTm1aQzAzWWpCakxUUXdOVFF0T1dNMVpDMWxaalptWmpka056WTJNemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--2b12fe4c80254812a21b4f08ffade1b324edd275/294-500x500.jpg?disposition=attachment",
      "publication_date": "2020-04-02",
      "title": "My title"
    },
    {
      "description": "Some description",
      "id": "6796c7ad-03e2-461c-82e3-d9b017ab00f5",
      "news_attachments": [],
      "picture": "http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3WVRJME5XTTFPUzFtTldGaUxUUXdNemd0T1RjeFpTMWlORGt6TWpRd1pHVmxNR01HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--84d52c7eea553cb22ec2f309e8c3b4a28dd3ed9f/294-500x500.jpg?disposition=attachment",
      "publication_date": "2020-04-02",
      "title": "My title"
    }
  ]
}

Validation #831

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/observations/0' contains additional properties ["authorLabel"] outside of the schema when none are allowed in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/0/observationDate' must be a valid RFC3339 date/time string in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/1' contains additional properties ["authorLabel"] outside of the schema when none are allowed in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/1/cropPictureURL' of type null did not match the following type: string in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/1/observationDate' must be a valid RFC3339 date/time string in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/2' contains additional properties ["authorLabel"] outside of the schema when none are allowed in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/2/observationDate' must be a valid RFC3339 date/time string in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultPictures_1506": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "URL": {
          "type": "string"
        },
        "caption": {
          "type": "string"
        },
        "idPicture": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "URL",
        "idPicture"
      ],
      "title": "Pictures - DefaultPictures",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "observations": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "cityName": {
            "description": "Courceroy, Neuvy",
            "type": "string"
          },
          "cropId": {
            "type": "integer"
          },
          "cropNameCode": {
            "description": "wheat, corn",
            "type": "string"
          },
          "cropNameLabel": {
            "description": "blé tendre",
            "type": "string"
          },
          "cropObservationName": {
            "description": "Fusariose, Septoriose",
            "type": "string"
          },
          "cropPictureURL": {
            "type": "string"
          },
          "cropStageName": {
            "description": "1 feuille, 2 feuilles",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "idObservation": {
            "description": "Un entier",
            "minimum": 1,
            "type": "integer"
          },
          "latitude": {
            "description": "48.8566",
            "type": "number"
          },
          "longitude": {
            "description": "2.3522",
            "type": "number"
          },
          "observationDate": {
            "format": "date-time",
            "type": "string"
          },
          "observationTrustType": {
            "type": "integer"
          },
          "observationTypeCode": {
            "description": "sickness",
            "type": "string"
          },
          "observationTypeDescription": {
            "description": "ravageur, maladie",
            "type": "string"
          },
          "pictures": {
            "items": {
              "$ref": "#/definitions/DefaultPictures_1506",
              "type": "object"
            },
            "type": "array"
          },
          "pressureLevel": {
            "description": "85, 23",
            "type": "number"
          },
          "targetId": {
            "type": "integer"
          },
          "zipCode": {
            "type": "string"
          }
        },
        "required": [
          "cityName",
          "cropId",
          "cropNameCode",
          "cropNameLabel",
          "cropObservationName",
          "cropPictureURL",
          "cropStageName",
          "description",
          "idObservation",
          "latitude",
          "longitude",
          "observationDate",
          "observationTrustType",
          "observationTypeCode",
          "observationTypeDescription",
          "pictures",
          "targetId",
          "zipCode"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "observations"
  ],
  "title": "Observation - ObservationDetail",
  "type": "object"
}

JSON instance

{
  "observations": [
    {
      "authorLabel": "Expert Agronome Soufflet",
      "cityName": "Viefvillers",
      "cropId": 561,
      "cropNameCode": "COL",
      "cropNameLabel": "Colza",
      "cropObservationName": "Gros charançon de la tige du colza",
      "cropPictureURL": "https://sflapifarmiprd.blob.core.windows.net/collect/crops/COL_thumbnail.jpg",
      "cropStageName": "BBCH 53 : Boutons floraux dépassent les plus jeunes feuilles",
      "description": "BBCH 53 : Boutons floraux dépassent les plus jeunes feuilles \nAddition\n0 % touché\n",
      "idObservation": 264015,
      "latitude": 49.6066,
      "longitude": 2.11043,
      "observationDate": "2020-03-02T08:43:00",
      "observationTrustType": 10,
      "observationTypeCode": "Pest",
      "observationTypeDescription": "Ravageurs",
      "pictures": [],
      "pressureLevel": 1,
      "targetId": 22,
      "zipCode": "60360"
    },
    {
      "authorLabel": "Expert Agronome Soufflet",
      "cityName": "Saint-Ouen-en-Brie",
      "cropId": 689,
      "cropNameCode": "BT",
      "cropNameLabel": "Blé tendre",
      "cropObservationName": "Oïdium des céréales",
      "cropPictureURL": null,
      "cropStageName": "BBCH 29 : fin tallage",
      "description": "BBCH 29 : fin tallage \nChevignon\nOrgane : Feuilles\n",
      "idObservation": 264027,
      "latitude": 48.5753,
      "longitude": 2.84781,
      "observationDate": "2020-03-02T17:18:00",
      "observationTrustType": 10,
      "observationTypeCode": "Disease",
      "observationTypeDescription": "Maladies",
      "pictures": [],
      "pressureLevel": 1,
      "targetId": 57,
      "zipCode": "77720"
    },
    {
      "authorLabel": "Expert Agronome Soufflet",
      "cityName": "Verneuil-le-Château",
      "cropId": 567,
      "cropNameCode": "OH",
      "cropNameLabel": "Orge",
      "cropObservationName": "Helminthosporiose teres",
      "cropPictureURL": "https://sflapifarmiprd.blob.core.windows.net/collect/crops/OH_thumbnail.jpg",
      "cropStageName": "BBCH 30 : début montaison",
      "description": "BBCH 30 : début montaison \nOrgane : Feuilles\n0 % surface détruite\n",
      "idObservation": 264053,
      "latitude": 47.0296,
      "longitude": 0.430008,
      "observationDate": "2020-03-09T10:50:00",
      "observationTrustType": 10,
      "observationTypeCode": "Disease",
      "observationTypeDescription": "Maladies",
      "pictures": [],
      "pressureLevel": 0,
      "targetId": 39,
      "zipCode": "37120"
    }
  ]
}

Validation #830

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/observations/0' contains additional properties ["authorLabel"] outside of the schema when none are allowed in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/0/observationDate' must be a valid RFC3339 date/time string in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/1' contains additional properties ["authorLabel"] outside of the schema when none are allowed in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/1/cropPictureURL' of type null did not match the following type: string in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939
  • The property '#/observations/1/observationDate' must be a valid RFC3339 date/time string in schema 2a77a1f9-98dd-5ce3-966d-f41c5ab20939

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultPictures_1506": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "URL": {
          "type": "string"
        },
        "caption": {
          "type": "string"
        },
        "idPicture": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "URL",
        "idPicture"
      ],
      "title": "Pictures - DefaultPictures",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "observations": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "cityName": {
            "description": "Courceroy, Neuvy",
            "type": "string"
          },
          "cropId": {
            "type": "integer"
          },
          "cropNameCode": {
            "description": "wheat, corn",
            "type": "string"
          },
          "cropNameLabel": {
            "description": "blé tendre",
            "type": "string"
          },
          "cropObservationName": {
            "description": "Fusariose, Septoriose",
            "type": "string"
          },
          "cropPictureURL": {
            "type": "string"
          },
          "cropStageName": {
            "description": "1 feuille, 2 feuilles",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "idObservation": {
            "description": "Un entier",
            "minimum": 1,
            "type": "integer"
          },
          "latitude": {
            "description": "48.8566",
            "type": "number"
          },
          "longitude": {
            "description": "2.3522",
            "type": "number"
          },
          "observationDate": {
            "format": "date-time",
            "type": "string"
          },
          "observationTrustType": {
            "type": "integer"
          },
          "observationTypeCode": {
            "description": "sickness",
            "type": "string"
          },
          "observationTypeDescription": {
            "description": "ravageur, maladie",
            "type": "string"
          },
          "pictures": {
            "items": {
              "$ref": "#/definitions/DefaultPictures_1506",
              "type": "object"
            },
            "type": "array"
          },
          "pressureLevel": {
            "description": "85, 23",
            "type": "number"
          },
          "targetId": {
            "type": "integer"
          },
          "zipCode": {
            "type": "string"
          }
        },
        "required": [
          "cityName",
          "cropId",
          "cropNameCode",
          "cropNameLabel",
          "cropObservationName",
          "cropPictureURL",
          "cropStageName",
          "description",
          "idObservation",
          "latitude",
          "longitude",
          "observationDate",
          "observationTrustType",
          "observationTypeCode",
          "observationTypeDescription",
          "pictures",
          "targetId",
          "zipCode"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "observations"
  ],
  "title": "Observation - ObservationDetail",
  "type": "object"
}

JSON instance

{
  "observations": [
    {
      "authorLabel": "Expert Agronome Soufflet",
      "cityName": "Viefvillers",
      "cropId": 561,
      "cropNameCode": "COL",
      "cropNameLabel": "Colza",
      "cropObservationName": "Gros charançon de la tige du colza",
      "cropPictureURL": "https://sflapifarmiprd.blob.core.windows.net/collect/crops/COL_thumbnail.jpg",
      "cropStageName": "BBCH 53 : Boutons floraux dépassent les plus jeunes feuilles",
      "description": "BBCH 53 : Boutons floraux dépassent les plus jeunes feuilles \nAddition\n0 % touché\n",
      "idObservation": 264015,
      "latitude": 49.6066,
      "longitude": 2.11043,
      "observationDate": "2020-03-02T08:43:00",
      "observationTrustType": 10,
      "observationTypeCode": "Pest",
      "observationTypeDescription": "Ravageurs",
      "pictures": [],
      "pressureLevel": 1,
      "targetId": 22,
      "zipCode": "60360"
    },
    {
      "authorLabel": "Expert Agronome Soufflet",
      "cityName": "Saint-Ouen-en-Brie",
      "cropId": 689,
      "cropNameCode": "BT",
      "cropNameLabel": "Blé tendre",
      "cropObservationName": "Oïdium des céréales",
      "cropPictureURL": null,
      "cropStageName": "BBCH 29 : fin tallage",
      "description": "BBCH 29 : fin tallage \nChevignon\nOrgane : Feuilles\n",
      "idObservation": 264027,
      "latitude": 48.5753,
      "longitude": 2.84781,
      "observationDate": "2020-03-02T17:18:00",
      "observationTrustType": 10,
      "observationTypeCode": "Disease",
      "observationTypeDescription": "Maladies",
      "pictures": [],
      "pressureLevel": 1,
      "targetId": 57,
      "zipCode": "77720"
    }
  ]
}