diff --git a/clients/api/python/src/crosslab/api_client/schemas.py b/clients/api/python/src/crosslab/api_client/schemas.py index 41dae853..e3250acd 100644 --- a/clients/api/python/src/crosslab/api_client/schemas.py +++ b/clients/api/python/src/crosslab/api_client/schemas.py @@ -271,6 +271,7 @@ class ListDevicesResponse200Items(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. """ url: str name: str @@ -279,6 +280,7 @@ class ListDevicesResponse200Items(TypedDict): isPublic: bool viewer: NotRequired[List[ListDevicesResponse200ItemsViewerItems]] owner: NotRequired[List[ListDevicesResponse200ItemsOwnerItems]] + bookingEndpoint: str ListDevicesResponse200: TypeAlias = List[ListDevicesResponse200Items] @@ -325,6 +327,7 @@ class CreateDeviceRequestAlt1(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - instantiateUrl - services """ @@ -335,6 +338,7 @@ class CreateDeviceRequestAlt1(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceRequestAlt1ViewerItems]] owner: NotRequired[List[CreateDeviceRequestAlt1OwnerItems]] + bookingEndpoint: str instantiateUrl: NotRequired[str] services: NotRequired[List[CreateDeviceRequestAlt1ServicesItems]] @@ -387,6 +391,7 @@ class CreateDeviceRequestAlt2(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - connected: If true, the device is connected to the service and can be used. - announcedAvailability: A list of time slots that the maintainer of the device announced it is available @@ -401,6 +406,7 @@ class CreateDeviceRequestAlt2(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceRequestAlt2ViewerItems]] owner: NotRequired[List[CreateDeviceRequestAlt2OwnerItems]] + bookingEndpoint: str connected: NotRequired[bool] announcedAvailability: NotRequired[List[CreateDeviceRequestAlt2AnnouncedavailabilityItems]] experiment: NotRequired[str] @@ -445,6 +451,7 @@ class CreateDeviceRequestAlt3(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - codeUrl - services """ @@ -455,6 +462,7 @@ class CreateDeviceRequestAlt3(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceRequestAlt3ViewerItems]] owner: NotRequired[List[CreateDeviceRequestAlt3OwnerItems]] + bookingEndpoint: str codeUrl: NotRequired[str] services: NotRequired[List[CreateDeviceRequestAlt3ServicesItems]] @@ -493,6 +501,7 @@ class CreateDeviceRequestAlt4(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - devices """ url: str @@ -502,6 +511,7 @@ class CreateDeviceRequestAlt4(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceRequestAlt4ViewerItems]] owner: NotRequired[List[CreateDeviceRequestAlt4OwnerItems]] + bookingEndpoint: str devices: List[CreateDeviceRequestAlt4DevicesItems] @@ -546,6 +556,7 @@ class CreateDeviceResponse201Alt1(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - instantiateUrl - services """ @@ -556,6 +567,7 @@ class CreateDeviceResponse201Alt1(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceResponse201Alt1ViewerItems]] owner: NotRequired[List[CreateDeviceResponse201Alt1OwnerItems]] + bookingEndpoint: str instantiateUrl: NotRequired[str] services: NotRequired[List[CreateDeviceResponse201Alt1ServicesItems]] @@ -608,6 +620,7 @@ class CreateDeviceResponse201Alt2(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - connected: If true, the device is connected to the service and can be used. - announcedAvailability: A list of time slots that the maintainer of the device announced it is available @@ -622,6 +635,7 @@ class CreateDeviceResponse201Alt2(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceResponse201Alt2ViewerItems]] owner: NotRequired[List[CreateDeviceResponse201Alt2OwnerItems]] + bookingEndpoint: str connected: NotRequired[bool] announcedAvailability: NotRequired[List[CreateDeviceResponse201Alt2AnnouncedavailabilityItems]] experiment: NotRequired[str] @@ -666,6 +680,7 @@ class CreateDeviceResponse201Alt3(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - codeUrl - services """ @@ -676,6 +691,7 @@ class CreateDeviceResponse201Alt3(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceResponse201Alt3ViewerItems]] owner: NotRequired[List[CreateDeviceResponse201Alt3OwnerItems]] + bookingEndpoint: str codeUrl: NotRequired[str] services: NotRequired[List[CreateDeviceResponse201Alt3ServicesItems]] @@ -714,6 +730,7 @@ class CreateDeviceResponse201Alt4(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - devices """ url: str @@ -723,6 +740,7 @@ class CreateDeviceResponse201Alt4(TypedDict): isPublic: bool viewer: NotRequired[List[CreateDeviceResponse201Alt4ViewerItems]] owner: NotRequired[List[CreateDeviceResponse201Alt4OwnerItems]] + bookingEndpoint: str devices: List[CreateDeviceResponse201Alt4DevicesItems] @@ -770,6 +788,7 @@ class GetDeviceResponse200Alt1(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - instantiateUrl - services """ @@ -780,6 +799,7 @@ class GetDeviceResponse200Alt1(TypedDict): isPublic: bool viewer: NotRequired[List[GetDeviceResponse200Alt1ViewerItems]] owner: NotRequired[List[GetDeviceResponse200Alt1OwnerItems]] + bookingEndpoint: str instantiateUrl: NotRequired[str] services: NotRequired[List[GetDeviceResponse200Alt1ServicesItems]] @@ -832,6 +852,7 @@ class GetDeviceResponse200Alt2(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - connected: If true, the device is connected to the service and can be used. - announcedAvailability: A list of time slots that the maintainer of the device announced it is available @@ -846,6 +867,7 @@ class GetDeviceResponse200Alt2(TypedDict): isPublic: bool viewer: NotRequired[List[GetDeviceResponse200Alt2ViewerItems]] owner: NotRequired[List[GetDeviceResponse200Alt2OwnerItems]] + bookingEndpoint: str connected: NotRequired[bool] announcedAvailability: NotRequired[List[GetDeviceResponse200Alt2AnnouncedavailabilityItems]] experiment: NotRequired[str] @@ -890,6 +912,7 @@ class GetDeviceResponse200Alt3(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - codeUrl - services """ @@ -900,6 +923,7 @@ class GetDeviceResponse200Alt3(TypedDict): isPublic: bool viewer: NotRequired[List[GetDeviceResponse200Alt3ViewerItems]] owner: NotRequired[List[GetDeviceResponse200Alt3OwnerItems]] + bookingEndpoint: str codeUrl: NotRequired[str] services: NotRequired[List[GetDeviceResponse200Alt3ServicesItems]] @@ -938,6 +962,7 @@ class GetDeviceResponse200Alt4(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - devices """ url: str @@ -947,6 +972,7 @@ class GetDeviceResponse200Alt4(TypedDict): isPublic: bool viewer: NotRequired[List[GetDeviceResponse200Alt4ViewerItems]] owner: NotRequired[List[GetDeviceResponse200Alt4OwnerItems]] + bookingEndpoint: str devices: List[GetDeviceResponse200Alt4DevicesItems] @@ -1191,6 +1217,7 @@ class UpdateDeviceResponse200Alt1(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - instantiateUrl - services """ @@ -1201,6 +1228,7 @@ class UpdateDeviceResponse200Alt1(TypedDict): isPublic: bool viewer: NotRequired[List[UpdateDeviceResponse200Alt1ViewerItems]] owner: NotRequired[List[UpdateDeviceResponse200Alt1OwnerItems]] + bookingEndpoint: str instantiateUrl: NotRequired[str] services: NotRequired[List[UpdateDeviceResponse200Alt1ServicesItems]] @@ -1253,6 +1281,7 @@ class UpdateDeviceResponse200Alt2(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - connected: If true, the device is connected to the service and can be used. - announcedAvailability: A list of time slots that the maintainer of the device announced it is available @@ -1267,6 +1296,7 @@ class UpdateDeviceResponse200Alt2(TypedDict): isPublic: bool viewer: NotRequired[List[UpdateDeviceResponse200Alt2ViewerItems]] owner: NotRequired[List[UpdateDeviceResponse200Alt2OwnerItems]] + bookingEndpoint: str connected: NotRequired[bool] announcedAvailability: NotRequired[List[UpdateDeviceResponse200Alt2AnnouncedavailabilityItems]] experiment: NotRequired[str] @@ -1311,6 +1341,7 @@ class UpdateDeviceResponse200Alt3(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - codeUrl - services """ @@ -1321,6 +1352,7 @@ class UpdateDeviceResponse200Alt3(TypedDict): isPublic: bool viewer: NotRequired[List[UpdateDeviceResponse200Alt3ViewerItems]] owner: NotRequired[List[UpdateDeviceResponse200Alt3OwnerItems]] + bookingEndpoint: str codeUrl: NotRequired[str] services: NotRequired[List[UpdateDeviceResponse200Alt3ServicesItems]] @@ -1359,6 +1391,7 @@ class UpdateDeviceResponse200Alt4(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - devices """ url: str @@ -1368,6 +1401,7 @@ class UpdateDeviceResponse200Alt4(TypedDict): isPublic: bool viewer: NotRequired[List[UpdateDeviceResponse200Alt4ViewerItems]] owner: NotRequired[List[UpdateDeviceResponse200Alt4OwnerItems]] + bookingEndpoint: str devices: List[UpdateDeviceResponse200Alt4DevicesItems] @@ -1428,6 +1462,7 @@ class InstantiateDeviceResponse201Instance(TypedDict): - isPublic: If true, the device may be seen and used by every user. - viewer: List of users who can view the device - owner: List of users who own the device + - bookingEndpoint: Endpoint where the device may be booked. - connected: If true, the device is connected to the service and can be used. - announcedAvailability: A list of time slots that the maintainer of the device announced it is available @@ -1442,6 +1477,7 @@ class InstantiateDeviceResponse201Instance(TypedDict): isPublic: bool viewer: NotRequired[List[InstantiateDeviceResponse201InstanceViewerItems]] owner: NotRequired[List[InstantiateDeviceResponse201InstanceOwnerItems]] + bookingEndpoint: str connected: NotRequired[bool] announcedAvailability: NotRequired[List[InstantiateDeviceResponse201InstanceAnnouncedavailabilityItems]] experiment: NotRequired[str] diff --git a/clients/api/python/tests/test_openapi.py b/clients/api/python/tests/test_openapi.py index eb8da9f9..1baf4b3f 100644 --- a/clients/api/python/tests/test_openapi.py +++ b/clients/api/python/tests/test_openapi.py @@ -1376,28 +1376,28 @@ async def test_list_devices(aioresponses: aioresponses): parameter_list = [{}, ] for parameters in parameter_list: - response_200_dict = json.loads(r'[{"url":"http://sAsYaDUmX.olkrnaJIJxN8ZMAcK","type":"cloud instantiable","name":"occaecat in non","isPublic":true,"description":"do voluptate id"}]') + response_200_dict = json.loads(r'[{"url":"http://YevRqMXB.rqSqU,ouSqdhMvvwTOt5WCWCyR8QzMMIvT1xpodrKJfcgoqJf","type":"group","name":"culpa in","isPublic":false,"bookingEndpoint":"http://JDBJznVdXOBCisyVTbwZNzEpStSHrWn.zdITtRiJvW7nAT6xCb2L6r.+LK,fGqx4ki2IpP","description":"fugiat","viewer":[{"url":"https://R.laElDwFVxZbe"},{"url":"https://LNkUZWdep.jdegmnXw6zk75dW1B1OYjvGk8z0eajsJJ+FJfOf5QJ4"},{"url":"http://kmeWSBjZCXeVEJHzBHCmBWci.xmYk4rPnpm7TqVAFiNi8gltCZQmfmgBTu2P34R-V03bNlTT67rwOPkV3VS"}],"owner":[{"url":"http://iDhkNZ.sebdQRM1coZFgzWaTsSy.yL8eSaCsZc0nWYqhqSmaMobVIZlgVcYZdodB0OmxpYgVz"},{"url":"https://jzuQfCzjUqohUmSNlrgrPGSVsM.tvvNQRkRAbYjdSGLUORR6UIR6ncFGacuvwAp5EJ5+"}]},{"url":"https://HCHsdjXxVssUKDUFxuZtA.lnaziWouO7sO0m.iGoj7eAB26ff-yDuN56+qL","type":"device","name":"cupidatat reprehenderit do fugiat sit","isPublic":true,"bookingEndpoint":"https://xXbTRIeaDvHyAMoVBio.fjfCPjJ12kAjBEvzC4+rK7PXuZhJ1M3FK.,vpeNyWyoqRFentfVw3c","owner":[{"url":"https://evevHxIcdcTByhMSAAbR.anqF7zhbuwj5ON"},{"url":"https://WCDHDjgUfVu.nxbVo7TYoQwu0dYIyv.xLwLyTZK3zZDerQ-kV-iTtGLjzraE4XzXqfjIB0xqbo"},{"url":"https://SxJDBsqaKKCxZEPnhsVmiKOmS.pqzEFMmK+4UIRbao6hhHXq0vhqWVFPfW"},{"url":"https://vuAzGLEgwdvOQuNzzjhNTsTAwzI.yysTOcnA"},{"url":"http://qGkeHrKWwlyvqGWaJdyHdiU.qdie453ucCkxq"}],"description":"aliquip","viewer":[{"url":"http://G.biTKgRl"},{"url":"http://HxGlK.szpvZdxE2gYQbP+vBF6DwTdVsdix3kxXWF"},{"url":"http://ZqsSxYHQwCClFUaZb.dwzZgIZRtEDxROQ2EJIYnwFflNn5fotCKUyTxOxELlA7s3HmEDrlIcRlBF+"},{"url":"http://Npbzz.jmjtKO-D1VHdo0c6-bKNJB.vNisi-wS+kX7HHh.bDM05T7HAJ2"},{"url":"https://GuP.srorc+rz3LIS8aSHc04U44AupQd"}]},{"url":"https://wdvaJusALxNnULROqvZpsjOdzu.ilt-0svUybRF3DMcBecG","type":"edge instantiable","name":"deserunt consectetur culpa enim aliqua","isPublic":true,"bookingEndpoint":"https://PXOdQqMrfccPSdeF.hgdxH,zxO8M-EyFxne1N5Temt1OtelQt","owner":[{"url":"https://RAYDntakiAVsdVXMkfvyByWZmsGyylk.tsjz1Qbop0oB2,XK9xRdf0kUh36REpwIGHarB2IwOpacheRS2hLf0"},{"url":"https://n.awceM8gO70rWzdRKSElOmDnp"},{"url":"https://vdtspAYLxyXyEejIUwRP.qfgwF+l-"},{"url":"http://tLaeKL.bxaov7DyXVOgbjkWSlVYguHshNmzSJCPbsYpA2dYth+x1SgEHQpUld.aeW0DMov"},{"url":"https://uBkERPcLmKcNdddeVuRTdEuSSmTC.vqcMqcs-qOw9O"}],"viewer":[{"url":"http://uklDLNepI.ctnfTKgdH54AoO"},{"url":"https://MqOZCoacUYhFjTmExYis.gyqV6bKaDQ4Bj,5CWgTuZjgQOyS5xs3ZOz4LIFNOFAU32nAhBf5O3DG"},{"url":"https://ZMGGPBkeVHhQaGu.duadMr8mYQEyh3HQQw4dEXcw9LZoAfOfB8uZIA1dQ,E,wdHjQYpoxoUwOG6BXuuqaN"},{"url":"https://aiOmpCqMgAzAkuPpQShYqKgQ.nogvib886O+VeCoKMiTXfvqV5S8Z.t87PC.4XYyVawoLUHsldhKfCnGqFjX39IebU6pYpycaY"}],"description":"pariatur enim incididunt"},{"url":"http://EeoBiDneiPXWvNscqdfBGY.vinGMb,kzDU7xVOyjAD82sVVVZZ1.7DvlMw9ogfod2BYtG6Jx3zUWN","type":"cloud instantiable","name":"dolor eu in minim nisi","isPublic":true,"bookingEndpoint":"https://IwaqNCDkUf.dydolnbERkNbFHT4E6.rWCpTwcyul5XOSbJaz9AjqOsk9w3ex9pfLwkGzK0TxXuGwY7EV9","description":"dolor dolor dolore aute ipsum","viewer":[{"url":"https://xKImBnUPOFbKshYyAyZXqhaMVWK.rthfbCxFI8S3EgdBbkDIXfA8lJtkEOcsh2ThqbumxLJSxw3.2f1BE"}],"owner":[{"url":"http://GkiRqhmfxWoKZTUVWtrQlRSk.yvzkbcafRRXlzTHzcEgSrUjsobTmhwxUnJz8AbZ.T2Uo9-wYW0xr.003kPnPZBh+"},{"url":"http://WEnkIeKFirBgjdMxTprnxtty.xyDnK5zHx-UqXtApKeJc"},{"url":"https://JRSDWBZqViMRcyXkKEqVMlgxiV.vcpGwXx7v-Inndcj2JMDdJuQr8oPBkhUpQeYct"},{"url":"https://NgpYvUx.najZR0sPYE5lr,cxYQhTWQ+9NRs8y"},{"url":"http://dACQgmDeAR.fbzy5UrhKt"}]}]') aioresponses.get(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.list_devices(**parameters) assert normalize_result(resp) == normalize_result(response_200_dict) for parameters in parameter_list: - response_200_dict = json.loads(r'[{"url":"http://sAsYaDUmX.olkrnaJIJxN8ZMAcK","type":"cloud instantiable","name":"occaecat in non","isPublic":true,"description":"do voluptate id"}]') + response_200_dict = json.loads(r'[{"url":"http://YevRqMXB.rqSqU,ouSqdhMvvwTOt5WCWCyR8QzMMIvT1xpodrKJfcgoqJf","type":"group","name":"culpa in","isPublic":false,"bookingEndpoint":"http://JDBJznVdXOBCisyVTbwZNzEpStSHrWn.zdITtRiJvW7nAT6xCb2L6r.+LK,fGqx4ki2IpP","description":"fugiat","viewer":[{"url":"https://R.laElDwFVxZbe"},{"url":"https://LNkUZWdep.jdegmnXw6zk75dW1B1OYjvGk8z0eajsJJ+FJfOf5QJ4"},{"url":"http://kmeWSBjZCXeVEJHzBHCmBWci.xmYk4rPnpm7TqVAFiNi8gltCZQmfmgBTu2P34R-V03bNlTT67rwOPkV3VS"}],"owner":[{"url":"http://iDhkNZ.sebdQRM1coZFgzWaTsSy.yL8eSaCsZc0nWYqhqSmaMobVIZlgVcYZdodB0OmxpYgVz"},{"url":"https://jzuQfCzjUqohUmSNlrgrPGSVsM.tvvNQRkRAbYjdSGLUORR6UIR6ncFGacuvwAp5EJ5+"}]},{"url":"https://HCHsdjXxVssUKDUFxuZtA.lnaziWouO7sO0m.iGoj7eAB26ff-yDuN56+qL","type":"device","name":"cupidatat reprehenderit do fugiat sit","isPublic":true,"bookingEndpoint":"https://xXbTRIeaDvHyAMoVBio.fjfCPjJ12kAjBEvzC4+rK7PXuZhJ1M3FK.,vpeNyWyoqRFentfVw3c","owner":[{"url":"https://evevHxIcdcTByhMSAAbR.anqF7zhbuwj5ON"},{"url":"https://WCDHDjgUfVu.nxbVo7TYoQwu0dYIyv.xLwLyTZK3zZDerQ-kV-iTtGLjzraE4XzXqfjIB0xqbo"},{"url":"https://SxJDBsqaKKCxZEPnhsVmiKOmS.pqzEFMmK+4UIRbao6hhHXq0vhqWVFPfW"},{"url":"https://vuAzGLEgwdvOQuNzzjhNTsTAwzI.yysTOcnA"},{"url":"http://qGkeHrKWwlyvqGWaJdyHdiU.qdie453ucCkxq"}],"description":"aliquip","viewer":[{"url":"http://G.biTKgRl"},{"url":"http://HxGlK.szpvZdxE2gYQbP+vBF6DwTdVsdix3kxXWF"},{"url":"http://ZqsSxYHQwCClFUaZb.dwzZgIZRtEDxROQ2EJIYnwFflNn5fotCKUyTxOxELlA7s3HmEDrlIcRlBF+"},{"url":"http://Npbzz.jmjtKO-D1VHdo0c6-bKNJB.vNisi-wS+kX7HHh.bDM05T7HAJ2"},{"url":"https://GuP.srorc+rz3LIS8aSHc04U44AupQd"}]},{"url":"https://wdvaJusALxNnULROqvZpsjOdzu.ilt-0svUybRF3DMcBecG","type":"edge instantiable","name":"deserunt consectetur culpa enim aliqua","isPublic":true,"bookingEndpoint":"https://PXOdQqMrfccPSdeF.hgdxH,zxO8M-EyFxne1N5Temt1OtelQt","owner":[{"url":"https://RAYDntakiAVsdVXMkfvyByWZmsGyylk.tsjz1Qbop0oB2,XK9xRdf0kUh36REpwIGHarB2IwOpacheRS2hLf0"},{"url":"https://n.awceM8gO70rWzdRKSElOmDnp"},{"url":"https://vdtspAYLxyXyEejIUwRP.qfgwF+l-"},{"url":"http://tLaeKL.bxaov7DyXVOgbjkWSlVYguHshNmzSJCPbsYpA2dYth+x1SgEHQpUld.aeW0DMov"},{"url":"https://uBkERPcLmKcNdddeVuRTdEuSSmTC.vqcMqcs-qOw9O"}],"viewer":[{"url":"http://uklDLNepI.ctnfTKgdH54AoO"},{"url":"https://MqOZCoacUYhFjTmExYis.gyqV6bKaDQ4Bj,5CWgTuZjgQOyS5xs3ZOz4LIFNOFAU32nAhBf5O3DG"},{"url":"https://ZMGGPBkeVHhQaGu.duadMr8mYQEyh3HQQw4dEXcw9LZoAfOfB8uZIA1dQ,E,wdHjQYpoxoUwOG6BXuuqaN"},{"url":"https://aiOmpCqMgAzAkuPpQShYqKgQ.nogvib886O+VeCoKMiTXfvqV5S8Z.t87PC.4XYyVawoLUHsldhKfCnGqFjX39IebU6pYpycaY"}],"description":"pariatur enim incididunt"},{"url":"http://EeoBiDneiPXWvNscqdfBGY.vinGMb,kzDU7xVOyjAD82sVVVZZ1.7DvlMw9ogfod2BYtG6Jx3zUWN","type":"cloud instantiable","name":"dolor eu in minim nisi","isPublic":true,"bookingEndpoint":"https://IwaqNCDkUf.dydolnbERkNbFHT4E6.rWCpTwcyul5XOSbJaz9AjqOsk9w3ex9pfLwkGzK0TxXuGwY7EV9","description":"dolor dolor dolore aute ipsum","viewer":[{"url":"https://xKImBnUPOFbKshYyAyZXqhaMVWK.rthfbCxFI8S3EgdBbkDIXfA8lJtkEOcsh2ThqbumxLJSxw3.2f1BE"}],"owner":[{"url":"http://GkiRqhmfxWoKZTUVWtrQlRSk.yvzkbcafRRXlzTHzcEgSrUjsobTmhwxUnJz8AbZ.T2Uo9-wYW0xr.003kPnPZBh+"},{"url":"http://WEnkIeKFirBgjdMxTprnxtty.xyDnK5zHx-UqXtApKeJc"},{"url":"https://JRSDWBZqViMRcyXkKEqVMlgxiV.vcpGwXx7v-Inndcj2JMDdJuQr8oPBkhUpQeYct"},{"url":"https://NgpYvUx.najZR0sPYE5lr,cxYQhTWQ+9NRs8y"},{"url":"http://dACQgmDeAR.fbzy5UrhKt"}]}]') aioresponses.get(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.list_devices(url=url, **parameters) assert normalize_result(resp) == normalize_result(response_200_dict) for parameters in parameter_list: - response_200_dict = json.loads(r'[{"url":"http://sAsYaDUmX.olkrnaJIJxN8ZMAcK","type":"cloud instantiable","name":"occaecat in non","isPublic":true,"description":"do voluptate id"}]') + response_200_dict = json.loads(r'[{"url":"http://YevRqMXB.rqSqU,ouSqdhMvvwTOt5WCWCyR8QzMMIvT1xpodrKJfcgoqJf","type":"group","name":"culpa in","isPublic":false,"bookingEndpoint":"http://JDBJznVdXOBCisyVTbwZNzEpStSHrWn.zdITtRiJvW7nAT6xCb2L6r.+LK,fGqx4ki2IpP","description":"fugiat","viewer":[{"url":"https://R.laElDwFVxZbe"},{"url":"https://LNkUZWdep.jdegmnXw6zk75dW1B1OYjvGk8z0eajsJJ+FJfOf5QJ4"},{"url":"http://kmeWSBjZCXeVEJHzBHCmBWci.xmYk4rPnpm7TqVAFiNi8gltCZQmfmgBTu2P34R-V03bNlTT67rwOPkV3VS"}],"owner":[{"url":"http://iDhkNZ.sebdQRM1coZFgzWaTsSy.yL8eSaCsZc0nWYqhqSmaMobVIZlgVcYZdodB0OmxpYgVz"},{"url":"https://jzuQfCzjUqohUmSNlrgrPGSVsM.tvvNQRkRAbYjdSGLUORR6UIR6ncFGacuvwAp5EJ5+"}]},{"url":"https://HCHsdjXxVssUKDUFxuZtA.lnaziWouO7sO0m.iGoj7eAB26ff-yDuN56+qL","type":"device","name":"cupidatat reprehenderit do fugiat sit","isPublic":true,"bookingEndpoint":"https://xXbTRIeaDvHyAMoVBio.fjfCPjJ12kAjBEvzC4+rK7PXuZhJ1M3FK.,vpeNyWyoqRFentfVw3c","owner":[{"url":"https://evevHxIcdcTByhMSAAbR.anqF7zhbuwj5ON"},{"url":"https://WCDHDjgUfVu.nxbVo7TYoQwu0dYIyv.xLwLyTZK3zZDerQ-kV-iTtGLjzraE4XzXqfjIB0xqbo"},{"url":"https://SxJDBsqaKKCxZEPnhsVmiKOmS.pqzEFMmK+4UIRbao6hhHXq0vhqWVFPfW"},{"url":"https://vuAzGLEgwdvOQuNzzjhNTsTAwzI.yysTOcnA"},{"url":"http://qGkeHrKWwlyvqGWaJdyHdiU.qdie453ucCkxq"}],"description":"aliquip","viewer":[{"url":"http://G.biTKgRl"},{"url":"http://HxGlK.szpvZdxE2gYQbP+vBF6DwTdVsdix3kxXWF"},{"url":"http://ZqsSxYHQwCClFUaZb.dwzZgIZRtEDxROQ2EJIYnwFflNn5fotCKUyTxOxELlA7s3HmEDrlIcRlBF+"},{"url":"http://Npbzz.jmjtKO-D1VHdo0c6-bKNJB.vNisi-wS+kX7HHh.bDM05T7HAJ2"},{"url":"https://GuP.srorc+rz3LIS8aSHc04U44AupQd"}]},{"url":"https://wdvaJusALxNnULROqvZpsjOdzu.ilt-0svUybRF3DMcBecG","type":"edge instantiable","name":"deserunt consectetur culpa enim aliqua","isPublic":true,"bookingEndpoint":"https://PXOdQqMrfccPSdeF.hgdxH,zxO8M-EyFxne1N5Temt1OtelQt","owner":[{"url":"https://RAYDntakiAVsdVXMkfvyByWZmsGyylk.tsjz1Qbop0oB2,XK9xRdf0kUh36REpwIGHarB2IwOpacheRS2hLf0"},{"url":"https://n.awceM8gO70rWzdRKSElOmDnp"},{"url":"https://vdtspAYLxyXyEejIUwRP.qfgwF+l-"},{"url":"http://tLaeKL.bxaov7DyXVOgbjkWSlVYguHshNmzSJCPbsYpA2dYth+x1SgEHQpUld.aeW0DMov"},{"url":"https://uBkERPcLmKcNdddeVuRTdEuSSmTC.vqcMqcs-qOw9O"}],"viewer":[{"url":"http://uklDLNepI.ctnfTKgdH54AoO"},{"url":"https://MqOZCoacUYhFjTmExYis.gyqV6bKaDQ4Bj,5CWgTuZjgQOyS5xs3ZOz4LIFNOFAU32nAhBf5O3DG"},{"url":"https://ZMGGPBkeVHhQaGu.duadMr8mYQEyh3HQQw4dEXcw9LZoAfOfB8uZIA1dQ,E,wdHjQYpoxoUwOG6BXuuqaN"},{"url":"https://aiOmpCqMgAzAkuPpQShYqKgQ.nogvib886O+VeCoKMiTXfvqV5S8Z.t87PC.4XYyVawoLUHsldhKfCnGqFjX39IebU6pYpycaY"}],"description":"pariatur enim incididunt"},{"url":"http://EeoBiDneiPXWvNscqdfBGY.vinGMb,kzDU7xVOyjAD82sVVVZZ1.7DvlMw9ogfod2BYtG6Jx3zUWN","type":"cloud instantiable","name":"dolor eu in minim nisi","isPublic":true,"bookingEndpoint":"https://IwaqNCDkUf.dydolnbERkNbFHT4E6.rWCpTwcyul5XOSbJaz9AjqOsk9w3ex9pfLwkGzK0TxXuGwY7EV9","description":"dolor dolor dolore aute ipsum","viewer":[{"url":"https://xKImBnUPOFbKshYyAyZXqhaMVWK.rthfbCxFI8S3EgdBbkDIXfA8lJtkEOcsh2ThqbumxLJSxw3.2f1BE"}],"owner":[{"url":"http://GkiRqhmfxWoKZTUVWtrQlRSk.yvzkbcafRRXlzTHzcEgSrUjsobTmhwxUnJz8AbZ.T2Uo9-wYW0xr.003kPnPZBh+"},{"url":"http://WEnkIeKFirBgjdMxTprnxtty.xyDnK5zHx-UqXtApKeJc"},{"url":"https://JRSDWBZqViMRcyXkKEqVMlgxiV.vcpGwXx7v-Inndcj2JMDdJuQr8oPBkhUpQeYct"},{"url":"https://NgpYvUx.najZR0sPYE5lr,cxYQhTWQ+9NRs8y"},{"url":"http://dACQgmDeAR.fbzy5UrhKt"}]}]') aioresponses.get(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.list_devices(url=url_variant, **parameters) assert normalize_result(resp) == normalize_result(response_200_dict) for parameters in parameter_list: - response_200_dict = json.loads(r'[{"url":"http://sAsYaDUmX.olkrnaJIJxN8ZMAcK","type":"cloud instantiable","name":"occaecat in non","isPublic":true,"description":"do voluptate id"}]') + response_200_dict = json.loads(r'[{"url":"http://YevRqMXB.rqSqU,ouSqdhMvvwTOt5WCWCyR8QzMMIvT1xpodrKJfcgoqJf","type":"group","name":"culpa in","isPublic":false,"bookingEndpoint":"http://JDBJznVdXOBCisyVTbwZNzEpStSHrWn.zdITtRiJvW7nAT6xCb2L6r.+LK,fGqx4ki2IpP","description":"fugiat","viewer":[{"url":"https://R.laElDwFVxZbe"},{"url":"https://LNkUZWdep.jdegmnXw6zk75dW1B1OYjvGk8z0eajsJJ+FJfOf5QJ4"},{"url":"http://kmeWSBjZCXeVEJHzBHCmBWci.xmYk4rPnpm7TqVAFiNi8gltCZQmfmgBTu2P34R-V03bNlTT67rwOPkV3VS"}],"owner":[{"url":"http://iDhkNZ.sebdQRM1coZFgzWaTsSy.yL8eSaCsZc0nWYqhqSmaMobVIZlgVcYZdodB0OmxpYgVz"},{"url":"https://jzuQfCzjUqohUmSNlrgrPGSVsM.tvvNQRkRAbYjdSGLUORR6UIR6ncFGacuvwAp5EJ5+"}]},{"url":"https://HCHsdjXxVssUKDUFxuZtA.lnaziWouO7sO0m.iGoj7eAB26ff-yDuN56+qL","type":"device","name":"cupidatat reprehenderit do fugiat sit","isPublic":true,"bookingEndpoint":"https://xXbTRIeaDvHyAMoVBio.fjfCPjJ12kAjBEvzC4+rK7PXuZhJ1M3FK.,vpeNyWyoqRFentfVw3c","owner":[{"url":"https://evevHxIcdcTByhMSAAbR.anqF7zhbuwj5ON"},{"url":"https://WCDHDjgUfVu.nxbVo7TYoQwu0dYIyv.xLwLyTZK3zZDerQ-kV-iTtGLjzraE4XzXqfjIB0xqbo"},{"url":"https://SxJDBsqaKKCxZEPnhsVmiKOmS.pqzEFMmK+4UIRbao6hhHXq0vhqWVFPfW"},{"url":"https://vuAzGLEgwdvOQuNzzjhNTsTAwzI.yysTOcnA"},{"url":"http://qGkeHrKWwlyvqGWaJdyHdiU.qdie453ucCkxq"}],"description":"aliquip","viewer":[{"url":"http://G.biTKgRl"},{"url":"http://HxGlK.szpvZdxE2gYQbP+vBF6DwTdVsdix3kxXWF"},{"url":"http://ZqsSxYHQwCClFUaZb.dwzZgIZRtEDxROQ2EJIYnwFflNn5fotCKUyTxOxELlA7s3HmEDrlIcRlBF+"},{"url":"http://Npbzz.jmjtKO-D1VHdo0c6-bKNJB.vNisi-wS+kX7HHh.bDM05T7HAJ2"},{"url":"https://GuP.srorc+rz3LIS8aSHc04U44AupQd"}]},{"url":"https://wdvaJusALxNnULROqvZpsjOdzu.ilt-0svUybRF3DMcBecG","type":"edge instantiable","name":"deserunt consectetur culpa enim aliqua","isPublic":true,"bookingEndpoint":"https://PXOdQqMrfccPSdeF.hgdxH,zxO8M-EyFxne1N5Temt1OtelQt","owner":[{"url":"https://RAYDntakiAVsdVXMkfvyByWZmsGyylk.tsjz1Qbop0oB2,XK9xRdf0kUh36REpwIGHarB2IwOpacheRS2hLf0"},{"url":"https://n.awceM8gO70rWzdRKSElOmDnp"},{"url":"https://vdtspAYLxyXyEejIUwRP.qfgwF+l-"},{"url":"http://tLaeKL.bxaov7DyXVOgbjkWSlVYguHshNmzSJCPbsYpA2dYth+x1SgEHQpUld.aeW0DMov"},{"url":"https://uBkERPcLmKcNdddeVuRTdEuSSmTC.vqcMqcs-qOw9O"}],"viewer":[{"url":"http://uklDLNepI.ctnfTKgdH54AoO"},{"url":"https://MqOZCoacUYhFjTmExYis.gyqV6bKaDQ4Bj,5CWgTuZjgQOyS5xs3ZOz4LIFNOFAU32nAhBf5O3DG"},{"url":"https://ZMGGPBkeVHhQaGu.duadMr8mYQEyh3HQQw4dEXcw9LZoAfOfB8uZIA1dQ,E,wdHjQYpoxoUwOG6BXuuqaN"},{"url":"https://aiOmpCqMgAzAkuPpQShYqKgQ.nogvib886O+VeCoKMiTXfvqV5S8Z.t87PC.4XYyVawoLUHsldhKfCnGqFjX39IebU6pYpycaY"}],"description":"pariatur enim incididunt"},{"url":"http://EeoBiDneiPXWvNscqdfBGY.vinGMb,kzDU7xVOyjAD82sVVVZZ1.7DvlMw9ogfod2BYtG6Jx3zUWN","type":"cloud instantiable","name":"dolor eu in minim nisi","isPublic":true,"bookingEndpoint":"https://IwaqNCDkUf.dydolnbERkNbFHT4E6.rWCpTwcyul5XOSbJaz9AjqOsk9w3ex9pfLwkGzK0TxXuGwY7EV9","description":"dolor dolor dolore aute ipsum","viewer":[{"url":"https://xKImBnUPOFbKshYyAyZXqhaMVWK.rthfbCxFI8S3EgdBbkDIXfA8lJtkEOcsh2ThqbumxLJSxw3.2f1BE"}],"owner":[{"url":"http://GkiRqhmfxWoKZTUVWtrQlRSk.yvzkbcafRRXlzTHzcEgSrUjsobTmhwxUnJz8AbZ.T2Uo9-wYW0xr.003kPnPZBh+"},{"url":"http://WEnkIeKFirBgjdMxTprnxtty.xyDnK5zHx-UqXtApKeJc"},{"url":"https://JRSDWBZqViMRcyXkKEqVMlgxiV.vcpGwXx7v-Inndcj2JMDdJuQr8oPBkhUpQeYct"},{"url":"https://NgpYvUx.najZR0sPYE5lr,cxYQhTWQ+9NRs8y"},{"url":"http://dACQgmDeAR.fbzy5UrhKt"}]}]') aioresponses.get(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.list_devices(url=full_url, **parameters) @@ -1530,33 +1530,33 @@ async def test_create_device(aioresponses: aioresponses): url_variant = r'devices' full_url = BASE_URL+r'/devices' - request = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + request = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') parameter_list = [{"changedUrl": "test_string", }, {}, ] for parameters in parameter_list: - response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.post(re.compile(re.escape(full_url)+r'(\?.*)?'), status=201, payload=response_201_dict) async with APIClient(BASE_URL) as client: resp = await client.create_device(body=request, **parameters) assert normalize_result(resp) == normalize_result(response_201_dict) for parameters in parameter_list: - response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.post(re.compile(re.escape(full_url)+r'(\?.*)?'), status=201, payload=response_201_dict) async with APIClient(BASE_URL) as client: resp = await client.create_device(url=url, body=request, **parameters) assert normalize_result(resp) == normalize_result(response_201_dict) for parameters in parameter_list: - response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.post(re.compile(re.escape(full_url)+r'(\?.*)?'), status=201, payload=response_201_dict) async with APIClient(BASE_URL) as client: resp = await client.create_device(url=url_variant, body=request, **parameters) assert normalize_result(resp) == normalize_result(response_201_dict) for parameters in parameter_list: - response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_201_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.post(re.compile(re.escape(full_url)+r'(\?.*)?'), status=201, payload=response_201_dict) async with APIClient(BASE_URL) as client: resp = await client.create_device(url=full_url, body=request, **parameters) @@ -1692,21 +1692,21 @@ async def test_get_device(aioresponses: aioresponses): parameter_list = [{"flat_group": True, }, {}, ] for parameters in parameter_list: - response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.get(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.get_device(url=url, **parameters) assert normalize_result(resp) == normalize_result(response_200_dict) for parameters in parameter_list: - response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.get(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.get_device(url=url_variant, **parameters) assert normalize_result(resp) == normalize_result(response_200_dict) for parameters in parameter_list: - response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.get(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.get_device(url=full_url, **parameters) @@ -1814,21 +1814,21 @@ async def test_update_device(aioresponses: aioresponses): parameter_list = [{"changedUrl": "test_string", }, {}, ] for parameters in parameter_list: - response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.patch(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.update_device(url=url, body=request, **parameters) assert normalize_result(resp) == normalize_result(response_200_dict) for parameters in parameter_list: - response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.patch(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.update_device(url=url_variant, body=request, **parameters) assert normalize_result(resp) == normalize_result(response_200_dict) for parameters in parameter_list: - response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"devices":[{"url":"https://YOSZZLZEKMazHeFvjzy.gajTDGgI0e.7QLRAyQNvsosnxLXxQSwdSjMZxmIrHvBPiS307XfTFj"},{"url":"https://whIdyVWYlqjGvFh.laf9x.hv8W"},{"url":"https://ArxHAialfPGZWvcvzmXeBBci.qftdxpbzFf0kcgN3,iyJvCKIeH3"}],"description":"ullamco voluptate","owner":[{"url":"http://LzJabypElGcrYPpoRwUMrR.egvcVYYKiO3vR"},{"url":"https://pO.oyfalCavEYnWwwa"},{"url":"https://YaDyTldBsEGNQkRLRSJXERGYXt.eyRdoDLiiFKUzJ"},{"url":"https://MXGuntpubSQBEWaFeD.rnlWp4EV3uCrfkIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"}],"viewer":[{"url":"http://AEyxcJP.swmuJJqo6Vy-HPro8lm3WqKE3XOIfbopdGzXwAOsfaxcOlmihCF5aqk,F2"},{"url":"https://uUYlDOKMyeYnpfdudQZJODtjcpYIno.dxovc.5ldQCWcwLC4eTyRTGL9UHyN+U9wDarJbTwAUPO4ZV+fxGmoG6vfXuPFI"}]}') + response_200_dict = json.loads(r'{"url":"https://KMlhNcfBAeYBDdlNWpqiS.uhisZnfxWisWyA346eVjpoeK4BZYjE6oK.ZDneOU1atITfp","type":"group","name":"deserunt est sint magna labore","isPublic":false,"bookingEndpoint":"http://f.yjzdF8TxgI0e.UVQRAyQNqrmskvLXxQSwdSjMZxmIrHvBPiS307XfTFjCY4..V.NUWazfNBmGFdcL","devices":[{"url":"https://iO.ftdxiSeFV-oumPBOjoCbwDypbzFf0kcgN3,iyJvCKIeH3KwDQHkah0G+BcBFq+fII"},{"url":"https://WOEvUdgAIpRBEVeeKJbJUFMYxRPsgpOCG.coy,e42gdrOXCLnYfGzKAMPo"}],"description":"in reprehenderit","owner":[{"url":"https://GNQkRLRSJXERGYXtciXG.yxgwcDUAiyUGjJY-aE5oeJy"}],"viewer":[{"url":"https://MXGuntpubSQBEWaFeD.rnlqrfnbIbi4uyKVsM2f8Y.I.N+8VVCJDodc+0qPPltOEcKiJfWd"},{"url":"http://zkxkKeJlGcaYu.udivLLttm6JR"},{"url":"http://aKzxRMFBfKa.gbSHJJql7Sy-HPro8lm3W"}]}') aioresponses.patch(re.compile(re.escape(full_url)+r'(\?.*)?'), status=200, payload=response_200_dict) async with APIClient(BASE_URL) as client: resp = await client.update_device(url=full_url, body=request, **parameters) @@ -2048,21 +2048,21 @@ async def test_instantiate_device(aioresponses: aioresponses): parameter_list = [{"changedUrl": "test_string", }, {}, ] for parameters in parameter_list: - response_201_dict = json.loads(r'{"instance":{"url":"https://QXgchCqYONXUzAPMGRmTeYIQPH.teqoxG6A,","type":"device","name":"ut","isPublic":false,"services":[{"serviceDirection":"prosumer","serviceId":"qui"},{"serviceType":"https://farzjvMniZnNgZjFBlEPjd.xdcJlbVTd4ha7fdzBswHgBVXkun1bYFt4-W+cLaDmUm4NdFK5","serviceId":"fugiat commodo consectetur laborum officia","serviceDirection":"prosumer"},{"serviceId":"proident Lorem dolore enim eu","serviceType":"http://lGUlpUhSJkIblJFycFQKfNQXOXMnaGha.adqxair-Uw4wcN","serviceDirection":"producer"}],"viewer":[{"url":"https://rAgfDW.jeoReoqYH-ujUVRCNUQJl.H.DSGkgIf"}],"announcedAvailability":[{"start":"1962-06-24T01:12:14.0Z"},{"start":"1965-03-17T03:46:48.0Z"}],"connected":false,"description":"quis ad commodo nostrud dolor","owner":[{"url":"http://MOaPANKswMkLZU.gayowe-SJNQJJxwE91c"},{"url":"https://meHdIB.gtfohNXE2I.rYJB-M8lMOtQ.mNipN"},{"url":"http://LcMoQeSljZaYB.loz2engzXdRwWO"},{"url":"http://EhxkkgEUEzpVEW.tndkAtRmkLqm-llTcHmNW-xEQ4pZWb8DvDLtQyXJB1cSLVF4nQ-a3OPVNlMJjDnRSf2tBL"},{"url":"https://CFMhjTLrFIlCpjRPR.kdg3IhlruqyIIOwp6l6xrbCcT4slJ,15WIvaddW6qQCBVR5BG,KZj"}],"experiment":"http://tNjWjnLfGseMnTGbIPMHHQe.yyPMcOI"},"deviceToken":"Excepteur magna pariatur in"}') + response_201_dict = json.loads(r'{"instance":{"url":"https://QXgchCqYONXUzAPMGRmTeYIQPH.teqoxG6A,","type":"device","name":"ut","isPublic":false,"bookingEndpoint":"https://DYkUJegEHCxlLScEeVNLWUXWfhewFqXJq.ofgqPb+YU2YexCW","services":[{"serviceId":"ex fugiat non"}],"viewer":[{"url":"http://jFBlEPjdEVgfMVPOFpZTmnKGzfcWuEsUu.wcvSydFK5QharmBXqlZXi"},{"url":"https://CLcaFhSjlrWjjdO.ecmsLW-HrPsEIuTLoCx-mbS8o"},{"url":"http://YLJrLizqZVEgQDBKxrMqDElLJBgB.rsx7z8S,q.XpnPCjA,RMvHKxi7VK3"},{"url":"https://nnOHOZqhKL.lpxn7t7QUGerfa6h-UrwcN,oO7ptU5JRblNFcO1TgN+Z,WqaPjabjQ6PiLERe"},{"url":"http://ZUuhQUIHgMplzPWpIWTsmJkThMpqquER.cxvC.H.DSGkgIfiHihDPylLJROu.hqgrSoXIyxVgVy"}],"announcedAvailability":[{"start":"1996-05-08T22:55:36.0Z"},{"start":"1995-07-08T06:56:43.0Z"},{"end":"1994-09-27T01:32:35.0Z","start":"2012-01-11T07:46:06.0Z"}],"connected":false,"description":"qui","owner":[{"url":"https://zuQd.cmwipNlpgHIKqYpg"},{"url":"https://NJwvQbJLwLySk.ezaqdwWOyVdXof4om-a-JjKG-nDtRmkDPm-iTbGmNW-xMV4pZWb8DrVytQ"},{"url":"https://BBFrlUlDUsnbwcTmSoltBXP.ygniGNlXlJm6wRSetBLAMkDnng7MGt7MWXHiT3g3Ihlruqy"},{"url":"http://nLfGseM.wqcMqQK4BVR5BzKZldHKOWjlTwORpJtmR3eAkCb0AEFTyXm+"}],"experiment":"http://EHnuXfxiMhbCCxhqGdfWvApzjxrRCHkg.vqjPQQ1fv9+TKSfouZfp3DqT0zSJypBQtKcr9QseKklW-woz"},"deviceToken":"amet culpa reprehenderit veniam"}') aioresponses.post(re.compile(re.escape(full_url)+r'(\?.*)?'), status=201, payload=response_201_dict) async with APIClient(BASE_URL) as client: resp = await client.instantiate_device(url=url, **parameters) assert normalize_result(resp) == normalize_result(response_201_dict) for parameters in parameter_list: - response_201_dict = json.loads(r'{"instance":{"url":"https://QXgchCqYONXUzAPMGRmTeYIQPH.teqoxG6A,","type":"device","name":"ut","isPublic":false,"services":[{"serviceDirection":"prosumer","serviceId":"qui"},{"serviceType":"https://farzjvMniZnNgZjFBlEPjd.xdcJlbVTd4ha7fdzBswHgBVXkun1bYFt4-W+cLaDmUm4NdFK5","serviceId":"fugiat commodo consectetur laborum officia","serviceDirection":"prosumer"},{"serviceId":"proident Lorem dolore enim eu","serviceType":"http://lGUlpUhSJkIblJFycFQKfNQXOXMnaGha.adqxair-Uw4wcN","serviceDirection":"producer"}],"viewer":[{"url":"https://rAgfDW.jeoReoqYH-ujUVRCNUQJl.H.DSGkgIf"}],"announcedAvailability":[{"start":"1962-06-24T01:12:14.0Z"},{"start":"1965-03-17T03:46:48.0Z"}],"connected":false,"description":"quis ad commodo nostrud dolor","owner":[{"url":"http://MOaPANKswMkLZU.gayowe-SJNQJJxwE91c"},{"url":"https://meHdIB.gtfohNXE2I.rYJB-M8lMOtQ.mNipN"},{"url":"http://LcMoQeSljZaYB.loz2engzXdRwWO"},{"url":"http://EhxkkgEUEzpVEW.tndkAtRmkLqm-llTcHmNW-xEQ4pZWb8DvDLtQyXJB1cSLVF4nQ-a3OPVNlMJjDnRSf2tBL"},{"url":"https://CFMhjTLrFIlCpjRPR.kdg3IhlruqyIIOwp6l6xrbCcT4slJ,15WIvaddW6qQCBVR5BG,KZj"}],"experiment":"http://tNjWjnLfGseMnTGbIPMHHQe.yyPMcOI"},"deviceToken":"Excepteur magna pariatur in"}') + response_201_dict = json.loads(r'{"instance":{"url":"https://QXgchCqYONXUzAPMGRmTeYIQPH.teqoxG6A,","type":"device","name":"ut","isPublic":false,"bookingEndpoint":"https://DYkUJegEHCxlLScEeVNLWUXWfhewFqXJq.ofgqPb+YU2YexCW","services":[{"serviceId":"ex fugiat non"}],"viewer":[{"url":"http://jFBlEPjdEVgfMVPOFpZTmnKGzfcWuEsUu.wcvSydFK5QharmBXqlZXi"},{"url":"https://CLcaFhSjlrWjjdO.ecmsLW-HrPsEIuTLoCx-mbS8o"},{"url":"http://YLJrLizqZVEgQDBKxrMqDElLJBgB.rsx7z8S,q.XpnPCjA,RMvHKxi7VK3"},{"url":"https://nnOHOZqhKL.lpxn7t7QUGerfa6h-UrwcN,oO7ptU5JRblNFcO1TgN+Z,WqaPjabjQ6PiLERe"},{"url":"http://ZUuhQUIHgMplzPWpIWTsmJkThMpqquER.cxvC.H.DSGkgIfiHihDPylLJROu.hqgrSoXIyxVgVy"}],"announcedAvailability":[{"start":"1996-05-08T22:55:36.0Z"},{"start":"1995-07-08T06:56:43.0Z"},{"end":"1994-09-27T01:32:35.0Z","start":"2012-01-11T07:46:06.0Z"}],"connected":false,"description":"qui","owner":[{"url":"https://zuQd.cmwipNlpgHIKqYpg"},{"url":"https://NJwvQbJLwLySk.ezaqdwWOyVdXof4om-a-JjKG-nDtRmkDPm-iTbGmNW-xMV4pZWb8DrVytQ"},{"url":"https://BBFrlUlDUsnbwcTmSoltBXP.ygniGNlXlJm6wRSetBLAMkDnng7MGt7MWXHiT3g3Ihlruqy"},{"url":"http://nLfGseM.wqcMqQK4BVR5BzKZldHKOWjlTwORpJtmR3eAkCb0AEFTyXm+"}],"experiment":"http://EHnuXfxiMhbCCxhqGdfWvApzjxrRCHkg.vqjPQQ1fv9+TKSfouZfp3DqT0zSJypBQtKcr9QseKklW-woz"},"deviceToken":"amet culpa reprehenderit veniam"}') aioresponses.post(re.compile(re.escape(full_url)+r'(\?.*)?'), status=201, payload=response_201_dict) async with APIClient(BASE_URL) as client: resp = await client.instantiate_device(url=url_variant, **parameters) assert normalize_result(resp) == normalize_result(response_201_dict) for parameters in parameter_list: - response_201_dict = json.loads(r'{"instance":{"url":"https://QXgchCqYONXUzAPMGRmTeYIQPH.teqoxG6A,","type":"device","name":"ut","isPublic":false,"services":[{"serviceDirection":"prosumer","serviceId":"qui"},{"serviceType":"https://farzjvMniZnNgZjFBlEPjd.xdcJlbVTd4ha7fdzBswHgBVXkun1bYFt4-W+cLaDmUm4NdFK5","serviceId":"fugiat commodo consectetur laborum officia","serviceDirection":"prosumer"},{"serviceId":"proident Lorem dolore enim eu","serviceType":"http://lGUlpUhSJkIblJFycFQKfNQXOXMnaGha.adqxair-Uw4wcN","serviceDirection":"producer"}],"viewer":[{"url":"https://rAgfDW.jeoReoqYH-ujUVRCNUQJl.H.DSGkgIf"}],"announcedAvailability":[{"start":"1962-06-24T01:12:14.0Z"},{"start":"1965-03-17T03:46:48.0Z"}],"connected":false,"description":"quis ad commodo nostrud dolor","owner":[{"url":"http://MOaPANKswMkLZU.gayowe-SJNQJJxwE91c"},{"url":"https://meHdIB.gtfohNXE2I.rYJB-M8lMOtQ.mNipN"},{"url":"http://LcMoQeSljZaYB.loz2engzXdRwWO"},{"url":"http://EhxkkgEUEzpVEW.tndkAtRmkLqm-llTcHmNW-xEQ4pZWb8DvDLtQyXJB1cSLVF4nQ-a3OPVNlMJjDnRSf2tBL"},{"url":"https://CFMhjTLrFIlCpjRPR.kdg3IhlruqyIIOwp6l6xrbCcT4slJ,15WIvaddW6qQCBVR5BG,KZj"}],"experiment":"http://tNjWjnLfGseMnTGbIPMHHQe.yyPMcOI"},"deviceToken":"Excepteur magna pariatur in"}') + response_201_dict = json.loads(r'{"instance":{"url":"https://QXgchCqYONXUzAPMGRmTeYIQPH.teqoxG6A,","type":"device","name":"ut","isPublic":false,"bookingEndpoint":"https://DYkUJegEHCxlLScEeVNLWUXWfhewFqXJq.ofgqPb+YU2YexCW","services":[{"serviceId":"ex fugiat non"}],"viewer":[{"url":"http://jFBlEPjdEVgfMVPOFpZTmnKGzfcWuEsUu.wcvSydFK5QharmBXqlZXi"},{"url":"https://CLcaFhSjlrWjjdO.ecmsLW-HrPsEIuTLoCx-mbS8o"},{"url":"http://YLJrLizqZVEgQDBKxrMqDElLJBgB.rsx7z8S,q.XpnPCjA,RMvHKxi7VK3"},{"url":"https://nnOHOZqhKL.lpxn7t7QUGerfa6h-UrwcN,oO7ptU5JRblNFcO1TgN+Z,WqaPjabjQ6PiLERe"},{"url":"http://ZUuhQUIHgMplzPWpIWTsmJkThMpqquER.cxvC.H.DSGkgIfiHihDPylLJROu.hqgrSoXIyxVgVy"}],"announcedAvailability":[{"start":"1996-05-08T22:55:36.0Z"},{"start":"1995-07-08T06:56:43.0Z"},{"end":"1994-09-27T01:32:35.0Z","start":"2012-01-11T07:46:06.0Z"}],"connected":false,"description":"qui","owner":[{"url":"https://zuQd.cmwipNlpgHIKqYpg"},{"url":"https://NJwvQbJLwLySk.ezaqdwWOyVdXof4om-a-JjKG-nDtRmkDPm-iTbGmNW-xMV4pZWb8DrVytQ"},{"url":"https://BBFrlUlDUsnbwcTmSoltBXP.ygniGNlXlJm6wRSetBLAMkDnng7MGt7MWXHiT3g3Ihlruqy"},{"url":"http://nLfGseM.wqcMqQK4BVR5BzKZldHKOWjlTwORpJtmR3eAkCb0AEFTyXm+"}],"experiment":"http://EHnuXfxiMhbCCxhqGdfWvApzjxrRCHkg.vqjPQQ1fv9+TKSfouZfp3DqT0zSJypBQtKcr9QseKklW-woz"},"deviceToken":"amet culpa reprehenderit veniam"}') aioresponses.post(re.compile(re.escape(full_url)+r'(\?.*)?'), status=201, payload=response_201_dict) async with APIClient(BASE_URL) as client: resp = await client.instantiate_device(url=full_url, **parameters) diff --git a/helper/crosslab-typescript-addon/templates/service-client/client.ts.njk b/helper/crosslab-typescript-addon/templates/service-client/client.ts.njk index 07b723c4..2d4183d7 100644 --- a/helper/crosslab-typescript-addon/templates/service-client/client.ts.njk +++ b/helper/crosslab-typescript-addon/templates/service-client/client.ts.njk @@ -133,23 +133,10 @@ function parsePathParameters(url: string, endpoint: string): string[] { * // returns ["username", "role_name"] * validateUrl("https://api.example.com/users/username/roles/role_name", "/users/{}/roles/{}") */ -function validateUrl(url: string, baseUrl: string, endpoint: string): string[] { +function validateUrl(url: string, endpoint: string): string[] { if (!isValidHttpUrl(url)) throw new InvalidUrlError('Provided url is not a valid http url'); - if (!url.startsWith(baseUrl)) - throw new InvalidUrlError('Provided url does not start with the provided base url'); - const pathParameters = parsePathParameters(url, endpoint); - - let extendedBaseUrl = baseUrl + endpoint; - - pathParameters.forEach(pathParameter => { - extendedBaseUrl = extendedBaseUrl.replace('{}', pathParameter); - }); - - if (url !== extendedBaseUrl) - throw new InvalidUrlError('Provided url does not match extended base url'); - - return pathParameters; + return parsePathParameters(url, endpoint); } /** @@ -276,6 +263,7 @@ export class Client { {{ parameter.name }}?: {{ parameter.schema | typeDeclaration({ "prefixDirectlyResolved": "Types.", "inline": true }) }} {%- endfor %} {%- endif %} + {{- "baseUrl?: string," if optionalUrl -}} {{- "url?: string" if optionalUrl -}} } {%- endset %} @@ -334,8 +322,10 @@ export class Client { {#- Construct param tag for optional url #} {%- if optionalUrl -%} - {{- "\n\t *" }} @param options.url + {{- "\n\t *" }} @param options.baseUrl {{- "\n\t *" }} Url of the {{ operation.serviceName }} to be used. + {{- "\n\t *" }} @param options.url + {{- "\n\t *" }} Url of the to be used. {%- endif -%} {%- endset %} @@ -367,6 +357,7 @@ export class Client { {{- parameter.name + "?: " + (parameter.schema | typeDeclaration) -}}, {%- endfor -%} {%- endif -%} + {{- "baseUrl?: string," if optionalUrl -}} {{- "url?: string" if optionalUrl -}} } {%- endset %} @@ -404,8 +395,10 @@ export class Client { {#- Construct param tag for optional url #} {%- if optionalUrl -%} - {{- "\n\t * " -}} @param options.url + {{- "\n\t * " -}} @param options.baseUrl {{- "\n\t * " -}} Url of the {{ operation.serviceName }} to be used. + {{- "\n\t * " -}} @param options.url + {{- "\n\t * " -}} Url to be used. {%- endif -%} {%- endset %} @@ -475,15 +468,15 @@ export class Client { const urlSuffix = '{{ operation.path | replace(r/{.*?}/g, "{}") }}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) const [{{ operation.path | replace(r/(.*?{(.*?)})(\/\w*)*/g, "$2,") }}] = - {{- "" }} validateUrl(url, this.baseUrl, '{{ operation.path | replace(r/{.*?}/g, "{}") }}') + {{- "" }} validateUrl(url, '{{ operation.path | replace(r/{.*?}/g, "{}") }}') {%- else %} const url = appendToUrl( - {{ "options?.url ?? " if optionalUrl }}this.baseUrl, + {{ "options?.baseUrl ?? " if optionalUrl }}this.baseUrl, `{{ operation.path | replace(r/{(.*?)}/g, "\${$1}") }}` ) {%- endif %} {%- elif optionalUrl %} - const url = appendToUrl({{ "options?.url ?? " if optionalUrl }}this.baseUrl, "{{ operation.path }}") + const url = {{ "options?.url ?? " if optionalUrl }}appendToUrl({{ "options?.baseUrl ?? " if optionalUrl }}this.baseUrl, "{{ operation.path }}") {%- else %} const url = appendToUrl(this.baseUrl, "{{ operation.path }}") {%- endif %} diff --git a/integration-test/src/helper/experimentTest.ts b/integration-test/src/helper/experimentTest.ts index 5daecae3..01060387 100644 --- a/integration-test/src/helper/experimentTest.ts +++ b/integration-test/src/helper/experimentTest.ts @@ -12,6 +12,7 @@ import { DummyDevice, DummyDeviceEvents, } from '../fixtures/dummyDevice'; +import { config } from '../config'; function createDummyDevice(type: ClientType, index: number, context: Mocha.Context) { switch (type) { @@ -86,6 +87,7 @@ export class ExperimentTest extends TypedEmitter { type: 'device', name: 'Internal Test Device', isPublic: true, + bookingEndpoint: (config.API_URL + "/booking").replace("//booking","/booking") }); deviceMeta.devices.push(device); } @@ -226,6 +228,7 @@ export class ExperimentTest extends TypedEmitter { codeUrl: 'http://localhost/cloud_instantiable_device', announcedAvailability: [{ available: true }], devices: [], + bookingEndpoint: (config.API_URL + "/booking").replace("//booking","/booking") }); } diff --git a/integration-test/src/tests/cyclic_device_groups.spec.ts b/integration-test/src/tests/cyclic_device_groups.spec.ts index 7cff687b..5540b1f9 100644 --- a/integration-test/src/tests/cyclic_device_groups.spec.ts +++ b/integration-test/src/tests/cyclic_device_groups.spec.ts @@ -1,5 +1,6 @@ import { DeviceServiceTypes } from '@cross-lab-project/api-client'; import { assert } from 'chai'; +import { config } from '../config'; function validateDevices( deviceGroup: DeviceServiceTypes.DeviceGroup, @@ -30,6 +31,7 @@ describe('Cyclic Device Groups', function () { type: 'device', name: `Test Device ${i + 1}`, isPublic: true, + bookingEndpoint: (config.API_URL + "/booking").replace("//booking","/booking") }); devices.push(device); } @@ -39,6 +41,7 @@ describe('Cyclic Device Groups', function () { name: 'Test Device Group 1', devices: [devices[0], devices[1], devices[2]], isPublic: true, + bookingEndpoint: (config.API_URL + "/booking").replace("//booking","/booking") }); deviceGroup2 = await this.client.createDevice({ @@ -46,6 +49,7 @@ describe('Cyclic Device Groups', function () { name: 'Test Device Group 2', devices: [devices[3], devices[4], devices[5], devices[6]], isPublic: true, + bookingEndpoint: (config.API_URL + "/booking").replace("//booking","/booking") }); deviceGroup3 = await this.client.createDevice({ @@ -53,6 +57,7 @@ describe('Cyclic Device Groups', function () { name: 'Test Device Group 3', devices: [devices[7], devices[8], devices[9]], isPublic: true, + bookingEndpoint: (config.API_URL + "/booking").replace("//booking","/booking") }); assert(deviceGroup1.type === 'group'); diff --git a/services/device/api/schemas/devices/device_overview.yml b/services/device/api/schemas/devices/device_overview.yml index ea6b186a..61031fe3 100644 --- a/services/device/api/schemas/devices/device_overview.yml +++ b/services/device/api/schemas/devices/device_overview.yml @@ -34,9 +34,14 @@ properties: description: List of users who own the device items: $ref: ./references/user_reference.yml + bookingEndpoint: + type: string + description: Endpoint where the device may be booked. + format: uri required: - url - type - name - isPublic + - bookingEndpoint x-typeguard: true diff --git a/services/device/src/clients/authentication/client.ts b/services/device/src/clients/authentication/client.ts index e8accc34..0e0548d3 100644 --- a/services/device/src/clients/authentication/client.ts +++ b/services/device/src/clients/authentication/client.ts @@ -127,23 +127,10 @@ function parsePathParameters(url: string, endpoint: string): string[] { * // returns ["username", "role_name"] * validateUrl("https://api.example.com/users/username/roles/role_name", "/users/{}/roles/{}") */ -function validateUrl(url: string, baseUrl: string, endpoint: string): string[] { +function validateUrl(url: string, endpoint: string): string[] { if (!isValidHttpUrl(url)) throw new InvalidUrlError('Provided url is not a valid http url'); - if (!url.startsWith(baseUrl)) - throw new InvalidUrlError('Provided url does not start with the provided base url'); - const pathParameters = parsePathParameters(url, endpoint); - - let extendedBaseUrl = baseUrl + endpoint; - - pathParameters.forEach(pathParameter => { - extendedBaseUrl = extendedBaseUrl.replace('{}', pathParameter); - }); - - if (url !== extendedBaseUrl) - throw new InvalidUrlError('Provided url does not match extended base url'); - - return pathParameters; + return parsePathParameters(url, endpoint); } /** @@ -349,8 +336,10 @@ export class Client { * * @param options.username * filter for users with a specific username - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -367,9 +356,10 @@ export class Client { public async listUsers(options?: { headers?: [string, string][]; username?: string; + baseUrl?: string; url?: string; }): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/users'); + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/users'); const parameters = { username: options?.username, @@ -421,8 +411,10 @@ export class Client { * * @param user * User to be created. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -440,10 +432,11 @@ export class Client { user: Require, 'username' | 'password'>, options?: { headers?: [string, string][]; + baseUrl?: string; url?: string; }, ): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/users'); + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/users'); const body = user; @@ -507,7 +500,7 @@ export class Client { ): Promise { const urlSuffix = '/users/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [user_id] = validateUrl(url, this.baseUrl, '/users/{}'); + const [user_id] = validateUrl(url, '/users/{}'); const parameters = { user_id: user_id, @@ -575,7 +568,7 @@ export class Client { ): Promise { const urlSuffix = '/users/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [user_id] = validateUrl(url, this.baseUrl, '/users/{}'); + const [user_id] = validateUrl(url, '/users/{}'); const body = user; @@ -643,7 +636,7 @@ export class Client { ): Promise { const urlSuffix = '/users/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [user_id] = validateUrl(url, this.baseUrl, '/users/{}'); + const [user_id] = validateUrl(url, '/users/{}'); const parameters = { user_id: user_id, diff --git a/services/device/src/clients/device/basicValidation.cjs b/services/device/src/clients/device/basicValidation.cjs index c1a37652..30f9c743 100644 --- a/services/device/src/clients/device/basicValidation.cjs +++ b/services/device/src/clients/device/basicValidation.cjs @@ -604,8 +604,13 @@ const schema9 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, 'x-standalone': true, 'x-name': 'DeviceOverview', @@ -625,7 +630,8 @@ function validate24( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate24.errors = [ { @@ -1049,6 +1055,50 @@ function validate24( } else { var valid0 = true; } + if (valid0) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs23 = errors; + if (errors === _errs23) { + if (errors === _errs23) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate24.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: schema9.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate24.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema9.properties.bookingEndpoint.type, + parentSchema: schema9.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid0 = _errs23 === errors; + } else { + var valid0 = true; + } + } } } } @@ -1274,8 +1324,13 @@ const schema11 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -1322,7 +1377,8 @@ function validate26( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate26.errors = [ { @@ -1753,6 +1809,54 @@ function validate26( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate26.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema11.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate26.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema11.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema11.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -1778,13 +1882,13 @@ function validate26( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data12) { validate26.errors = [ { instancePath: instancePath + '/type', @@ -1794,23 +1898,23 @@ function validate26( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema11.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate26.errors = [ { instancePath: instancePath + '/instantiateUrl', @@ -1820,7 +1924,7 @@ function validate26( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema11.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; @@ -1835,37 +1939,37 @@ function validate26( message: 'must be string', schema: schema11.allOf[1].properties.instantiateUrl.type, parentSchema: schema11.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate26.errors = [ { instancePath: @@ -1879,7 +1983,7 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -1900,22 +2004,22 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate26.errors = [ { instancePath: @@ -1931,20 +2035,20 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate26.errors = [ { instancePath: @@ -1963,16 +2067,16 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate26.errors = [ @@ -1997,12 +2101,12 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -2018,13 +2122,13 @@ function validate26( message: 'must be object', schema: schema11.allOf[1].properties.services.items.type, parentSchema: schema11.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -2039,13 +2143,13 @@ function validate26( message: 'must be array', schema: schema11.allOf[1].properties.services.type, parentSchema: schema11.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -2067,7 +2171,7 @@ function validate26( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate26.errors = vErrors; return errors === 0; @@ -2085,7 +2189,7 @@ const schema12 = { 'x-location': '#/components/schemas/time_slot', 'x-schema-type': 'all', }; -const formats22 = require('ajv-formats/dist/formats').fullFormats['date-time']; +const formats26 = require('ajv-formats/dist/formats').fullFormats['date-time']; function validate27( data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}, @@ -2100,7 +2204,7 @@ function validate27( if (errors === _errs1) { if (errors === _errs1) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate27.errors = [ { instancePath: instancePath + '/start', @@ -2143,7 +2247,7 @@ function validate27( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate27.errors = [ { instancePath: instancePath + '/end', @@ -2239,7 +2343,7 @@ function validate28( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate28.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -2282,7 +2386,7 @@ function validate28( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate28.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -2411,8 +2515,13 @@ const schema14 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -2480,7 +2589,8 @@ function validate29( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate29.errors = [ { @@ -2911,6 +3021,54 @@ function validate29( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate29.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema14.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate29.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema14.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema14.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -2936,13 +3094,13 @@ function validate29( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('device' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('device' !== data12) { validate29.errors = [ { instancePath: instancePath + '/type', @@ -2952,20 +3110,20 @@ function validate29( message: 'must be equal to constant', schema: 'device', parentSchema: schema14.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.connected !== undefined) { - let data12 = data.connected; - const _errs27 = errors; - if (typeof data12 !== 'boolean') { + let data13 = data.connected; + const _errs29 = errors; + if (typeof data13 !== 'boolean') { validate29.errors = [ { instancePath: instancePath + '/connected', @@ -2975,35 +3133,35 @@ function validate29( message: 'must be boolean', schema: schema14.allOf[1].properties.connected.type, parentSchema: schema14.allOf[1].properties.connected, - data: data12, + data: data13, }, ]; return false; } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.announcedAvailability !== undefined) { - let data13 = data.announcedAvailability; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.announcedAvailability; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.start !== undefined) { - let data15 = data14.start; - const _errs33 = errors; - if (errors === _errs33) { - if (errors === _errs33) { - if (typeof data15 === 'string') { - if (!formats22.validate(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.start !== undefined) { + let data16 = data15.start; + const _errs35 = errors; + if (errors === _errs35) { + if (errors === _errs35) { + if (typeof data16 === 'string') { + if (!formats26.validate(data16)) { validate29.errors = [ { instancePath: @@ -3020,7 +3178,7 @@ function validate29( parentSchema: schema14.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; @@ -3044,25 +3202,25 @@ function validate29( parentSchema: schema14.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.end !== undefined) { - let data16 = data14.end; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data15.end !== undefined) { + let data17 = data15.end; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate29.errors = [ { instancePath: @@ -3080,7 +3238,7 @@ function validate29( parentSchema: schema14.allOf[1].properties .announcedAvailability.items.properties.end, - data: data16, + data: data17, }, ]; return false; @@ -3104,14 +3262,14 @@ function validate29( parentSchema: schema14.allOf[1].properties.announcedAvailability .items.properties.end, - data: data16, + data: data17, }, ]; return false; } } } - var valid8 = _errs35 === errors; + var valid8 = _errs37 === errors; } else { var valid8 = true; } @@ -3130,13 +3288,13 @@ function validate29( .type, parentSchema: schema14.allOf[1].properties.announcedAvailability.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -3151,24 +3309,24 @@ function validate29( message: 'must be array', schema: schema14.allOf[1].properties.announcedAvailability.type, parentSchema: schema14.allOf[1].properties.announcedAvailability, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } if (valid6) { if (data.experiment !== undefined) { - let data17 = data.experiment; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { + let data18 = data.experiment; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { validate29.errors = [ { instancePath: instancePath + '/experiment', @@ -3178,7 +3336,7 @@ function validate29( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema14.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; @@ -3193,41 +3351,41 @@ function validate29( message: 'must be string', schema: schema14.allOf[1].properties.experiment.type, parentSchema: schema14.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; } } } - var valid6 = _errs37 === errors; + var valid6 = _errs39 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data18 = data.services; - const _errs39 = errors; - if (errors === _errs39) { - if (Array.isArray(data18)) { + let data19 = data.services; + const _errs41 = errors; + if (errors === _errs41) { + if (Array.isArray(data19)) { var valid9 = true; - const len3 = data18.length; + const len3 = data19.length; for (let i3 = 0; i3 < len3; i3++) { - let data19 = data18[i3]; - const _errs41 = errors; - if (errors === _errs41) { + let data20 = data19[i3]; + const _errs43 = errors; + if (errors === _errs43) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs44 = errors; - if (errors === _errs44) { - if (errors === _errs44) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs46 = errors; + if (errors === _errs46) { + if (errors === _errs46) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { validate29.errors = [ { instancePath: @@ -3244,7 +3402,7 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; @@ -3268,22 +3426,22 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; } } } - var valid10 = _errs44 === errors; + var valid10 = _errs46 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs46 = errors; - if (typeof data21 !== 'string') { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs48 = errors; + if (typeof data22 !== 'string') { validate29.errors = [ { instancePath: @@ -3299,20 +3457,20 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceId, - data: data21, + data: data22, }, ]; return false; } - var valid10 = _errs46 === errors; + var valid10 = _errs48 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate29.errors = [ { instancePath: @@ -3331,16 +3489,16 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { validate29.errors = [ @@ -3366,12 +3524,12 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } - var valid10 = _errs48 === errors; + var valid10 = _errs50 === errors; } else { var valid10 = true; } @@ -3387,13 +3545,13 @@ function validate29( message: 'must be object', schema: schema14.allOf[1].properties.services.items.type, parentSchema: schema14.allOf[1].properties.services.items, - data: data19, + data: data20, }, ]; return false; } } - var valid9 = _errs41 === errors; + var valid9 = _errs43 === errors; if (!valid9) { break; } @@ -3408,13 +3566,13 @@ function validate29( message: 'must be array', schema: schema14.allOf[1].properties.services.type, parentSchema: schema14.allOf[1].properties.services, - data: data18, + data: data19, }, ]; return false; } } - var valid6 = _errs39 === errors; + var valid6 = _errs41 === errors; } else { var valid6 = true; } @@ -3438,7 +3596,7 @@ function validate29( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate29.errors = vErrors; return errors === 0; @@ -3495,8 +3653,13 @@ const schema15 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -3543,7 +3706,8 @@ function validate30( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate30.errors = [ { @@ -3974,6 +4138,54 @@ function validate30( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate30.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema15.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate30.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema15.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema15.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -3999,13 +4211,13 @@ function validate30( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('edge instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('edge instantiable' !== data12) { validate30.errors = [ { instancePath: instancePath + '/type', @@ -4015,23 +4227,23 @@ function validate30( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema15.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.codeUrl !== undefined) { - let data12 = data.codeUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.codeUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate30.errors = [ { instancePath: instancePath + '/codeUrl', @@ -4041,7 +4253,7 @@ function validate30( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema15.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; @@ -4056,37 +4268,37 @@ function validate30( message: 'must be string', schema: schema15.allOf[1].properties.codeUrl.type, parentSchema: schema15.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate30.errors = [ { instancePath: @@ -4100,7 +4312,7 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -4121,22 +4333,22 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate30.errors = [ { instancePath: @@ -4152,20 +4364,20 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate30.errors = [ { instancePath: @@ -4184,16 +4396,16 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate30.errors = [ @@ -4218,12 +4430,12 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -4239,13 +4451,13 @@ function validate30( message: 'must be object', schema: schema15.allOf[1].properties.services.items.type, parentSchema: schema15.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -4260,13 +4472,13 @@ function validate30( message: 'must be array', schema: schema15.allOf[1].properties.services.type, parentSchema: schema15.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -4288,7 +4500,7 @@ function validate30( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate30.errors = vErrors; return errors === 0; @@ -4441,8 +4653,13 @@ const schema17 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -4484,7 +4701,8 @@ function validate32( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate32.errors = [ { @@ -4915,6 +5133,54 @@ function validate32( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate32.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema17.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate32.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema17.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema17.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -4940,8 +5206,8 @@ function validate32( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if (data.devices === undefined && (missing3 = 'devices')) { @@ -4960,9 +5226,9 @@ function validate32( return false; } else { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('group' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('group' !== data12) { validate32.errors = [ { instancePath: instancePath + '/type', @@ -4972,30 +5238,30 @@ function validate32( message: 'must be equal to constant', schema: 'group', parentSchema: schema17.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.devices !== undefined) { - let data12 = data.devices; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.devices; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { let missing4; - if (data13.url === undefined && (missing4 = 'url')) { + if (data14.url === undefined && (missing4 = 'url')) { validate32.errors = [ { instancePath: instancePath + '/devices/' + i2, @@ -5005,18 +5271,18 @@ function validate32( message: "must have required property '" + missing4 + "'", schema: schema17.allOf[1].properties.devices.items.required, parentSchema: schema17.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } else { - if (data13.url !== undefined) { - let data14 = data13.url; - const _errs31 = errors; - if (errors === _errs31) { - if (errors === _errs31) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + if (data14.url !== undefined) { + let data15 = data14.url; + const _errs33 = errors; + if (errors === _errs33) { + if (errors === _errs33) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate32.errors = [ { instancePath: @@ -5030,7 +5296,7 @@ function validate32( parentSchema: schema17.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -5051,7 +5317,7 @@ function validate32( parentSchema: schema17.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -5070,13 +5336,13 @@ function validate32( message: 'must be object', schema: schema17.allOf[1].properties.devices.items.type, parentSchema: schema17.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -5091,13 +5357,13 @@ function validate32( message: 'must be array', schema: schema17.allOf[1].properties.devices.type, parentSchema: schema17.allOf[1].properties.devices, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -5119,7 +5385,7 @@ function validate32( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate32.errors = vErrors; return errors === 0; @@ -5179,117 +5445,127 @@ const schema18 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -5362,8 +5638,13 @@ const schema18 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -5443,8 +5724,13 @@ const schema18 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -5496,7 +5782,8 @@ function validate33( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -5990,6 +6277,62 @@ function validate33( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema18.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -5998,7 +6341,7 @@ function validate33( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -6009,23 +6352,23 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -6033,28 +6376,28 @@ function validate33( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema18.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -6062,17 +6405,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -6080,42 +6423,42 @@ function validate33( message: 'must be string', schema: schema18.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema18.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -6127,17 +6470,17 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -6151,27 +6494,27 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -6185,25 +6528,25 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -6220,23 +6563,23 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -6257,23 +6600,23 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -6283,23 +6626,23 @@ function validate33( schema18.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema18.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -6307,24 +6650,24 @@ function validate33( message: 'must be array', schema: schema18.anyOf[0].allOf[1].properties.services.type, parentSchema: schema18.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -6335,30 +6678,31 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -6369,20 +6713,20 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -6390,17 +6734,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -6408,27 +6752,27 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.url.type, parentSchema: schema18.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -6436,25 +6780,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.name.type, parentSchema: schema18.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -6462,25 +6806,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.description.type, parentSchema: schema18.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -6488,24 +6832,24 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.type.type, parentSchema: schema18.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -6515,25 +6859,25 @@ function validate33( message: 'must be equal to one of the allowed values', schema: schema18.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema18.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -6541,39 +6885,39 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema18.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -6586,23 +6930,23 @@ function validate33( .required, parentSchema: schema18.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -6615,17 +6959,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -6639,12 +6983,12 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -6653,7 +6997,7 @@ function validate33( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -6665,23 +7009,23 @@ function validate33( .type, parentSchema: schema18.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -6689,40 +7033,40 @@ function validate33( message: 'must be array', schema: schema18.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema18.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -6735,23 +7079,23 @@ function validate33( .required, parentSchema: schema18.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -6764,17 +7108,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -6788,12 +7132,12 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -6802,7 +7146,7 @@ function validate33( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -6814,23 +7158,23 @@ function validate33( .type, parentSchema: schema18.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -6838,20 +7182,77 @@ function validate33( message: 'must be array', schema: schema18.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema18.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema18.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -6860,7 +7261,7 @@ function validate33( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -6871,23 +7272,23 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -6895,25 +7296,25 @@ function validate33( message: 'must be equal to constant', schema: 'device', parentSchema: schema18.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -6921,44 +7322,44 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema18.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -6973,17 +7374,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -7001,30 +7402,30 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -7040,17 +7441,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -7068,24 +7469,24 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -7098,23 +7499,23 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -7125,29 +7526,29 @@ function validate33( schema18.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema18.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -7156,17 +7557,17 @@ function validate33( schema: 'uri', parentSchema: schema18.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -7174,46 +7575,46 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema18.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -7228,17 +7629,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -7255,27 +7656,27 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -7289,25 +7690,25 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -7324,23 +7725,23 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -7362,23 +7763,23 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -7390,23 +7791,23 @@ function validate33( .type, parentSchema: schema18.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -7414,17 +7815,17 @@ function validate33( message: 'must be array', schema: schema18.anyOf[1].allOf[1].properties.services.type, parentSchema: schema18.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -7433,7 +7834,7 @@ function validate33( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -7444,30 +7845,31 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -7478,20 +7880,20 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -7499,17 +7901,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -7517,27 +7919,27 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.url.type, parentSchema: schema18.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -7545,25 +7947,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.name.type, parentSchema: schema18.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -7571,25 +7973,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.description.type, parentSchema: schema18.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -7597,24 +7999,24 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.type.type, parentSchema: schema18.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -7624,25 +8026,25 @@ function validate33( message: 'must be equal to one of the allowed values', schema: schema18.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema18.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -7650,39 +8052,39 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema18.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -7696,23 +8098,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -7725,17 +8127,17 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -7749,12 +8151,12 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -7763,7 +8165,7 @@ function validate33( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -7775,23 +8177,23 @@ function validate33( .type, parentSchema: schema18.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -7799,40 +8201,40 @@ function validate33( message: 'must be array', schema: schema18.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema18.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -7848,23 +8250,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -7880,17 +8282,17 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -7904,12 +8306,12 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -7918,7 +8320,7 @@ function validate33( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -7930,23 +8332,23 @@ function validate33( .type, parentSchema: schema18.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -7954,20 +8356,78 @@ function validate33( message: 'must be array', schema: schema18.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema18.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema18.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -7976,7 +8436,7 @@ function validate33( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -7987,23 +8447,23 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -8011,28 +8471,28 @@ function validate33( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema18.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -8040,17 +8500,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -8058,46 +8518,46 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema18.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -8112,17 +8572,17 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -8136,27 +8596,27 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -8170,25 +8630,25 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -8205,23 +8665,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -8243,23 +8703,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -8270,23 +8730,23 @@ function validate33( schema18.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema18.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -8294,24 +8754,24 @@ function validate33( message: 'must be array', schema: schema18.anyOf[2].allOf[1].properties.services.type, parentSchema: schema18.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -8322,30 +8782,31 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -8356,20 +8817,20 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -8377,17 +8838,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -8395,27 +8856,27 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.url.type, parentSchema: schema18.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -8423,25 +8884,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.name.type, parentSchema: schema18.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -8449,25 +8910,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.description.type, parentSchema: schema18.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -8475,24 +8936,24 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.type.type, parentSchema: schema18.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -8503,25 +8964,25 @@ function validate33( message: 'must be equal to one of the allowed values', schema: schema18.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema18.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -8529,39 +8990,39 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema18.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -8577,23 +9038,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -8609,17 +9070,17 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -8636,12 +9097,12 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -8650,7 +9111,7 @@ function validate33( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -8663,23 +9124,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -8688,43 +9149,43 @@ function validate33( schema: schema18.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema18.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -8740,23 +9201,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -8773,17 +9234,17 @@ function validate33( schema18.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -8800,12 +9261,12 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -8814,7 +9275,7 @@ function validate33( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -8827,23 +9288,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -8853,20 +9314,78 @@ function validate33( schema18.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema18.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema18.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -8875,7 +9394,7 @@ function validate33( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -8886,21 +9405,21 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -8911,17 +9430,17 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -8929,39 +9448,39 @@ function validate33( message: 'must be equal to constant', schema: 'group', parentSchema: schema18.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -8974,23 +9493,23 @@ function validate33( .required, parentSchema: schema18.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -9002,17 +9521,17 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -9026,12 +9545,12 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -9040,7 +9559,7 @@ function validate33( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -9052,23 +9571,23 @@ function validate33( .type, parentSchema: schema18.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -9076,24 +9595,24 @@ function validate33( message: 'must be array', schema: schema18.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema18.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -9104,22 +9623,22 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -9130,9 +9649,9 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate33.errors = vErrors; @@ -9516,8 +10035,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -9611,8 +10135,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -9727,8 +10256,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -9822,8 +10356,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -10108,7 +10647,9 @@ function validate36( (data4.url === undefined && (missing3 = 'url')) || (data4.type === undefined && (missing3 = 'type')) || (data4.name === undefined && (missing3 = 'name')) || - (data4.isPublic === undefined && (missing3 = 'isPublic')) + (data4.isPublic === undefined && (missing3 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing3 = 'bookingEndpoint')) ) { const err0 = { instancePath: instancePath + '/device', @@ -10702,6 +11243,68 @@ function validate36( } else { var valid7 = true; } + if (valid7) { + if (data4.bookingEndpoint !== undefined) { + let data16 = data4.bookingEndpoint; + const _errs42 = errors; + if (errors === _errs42) { + if (errors === _errs42) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err18 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid7 = _errs42 === errors; + } else { + var valid7 = true; + } + } } } } @@ -10710,7 +11313,7 @@ function validate36( } } } else { - const err18 = { + const err20 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/0/type', keyword: 'type', @@ -10721,23 +11324,23 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid6 = _errs18 === errors; if (valid6) { - const _errs42 = errors; - if (errors === _errs42) { + const _errs44 = errors; + if (errors === _errs44) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data16 = data4.type; - const _errs44 = errors; - if ('cloud instantiable' !== data16) { - const err19 = { + let data17 = data4.type; + const _errs46 = errors; + if ('cloud instantiable' !== data17) { + const err21 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/type/const', @@ -10748,28 +11351,28 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.type, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid12 = _errs44 === errors; + var valid12 = _errs46 === errors; } else { var valid12 = true; } if (valid12) { if (data4.instantiateUrl !== undefined) { - let data17 = data4.instantiateUrl; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { - const err20 = { + let data18 = data4.instantiateUrl; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { + const err22 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/format', @@ -10780,17 +11383,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/type', @@ -10803,46 +11406,46 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid12 = _errs45 === errors; + var valid12 = _errs47 === errors; } else { var valid12 = true; } if (valid12) { if (data4.services !== undefined) { - let data18 = data4.services; - const _errs47 = errors; - if (errors === _errs47) { - if (Array.isArray(data18)) { + let data19 = data4.services; + const _errs49 = errors; + if (errors === _errs49) { + if (Array.isArray(data19)) { var valid13 = true; - const len2 = data18.length; + const len2 = data19.length; for (let i2 = 0; i2 < len2; i2++) { - let data19 = data18[i2]; - const _errs49 = errors; - if (errors === _errs49) { + let data20 = data19[i2]; + const _errs51 = errors; + if (errors === _errs51) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs52 = errors; - if (errors === _errs52) { - if (errors === _errs52) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { - const err22 = { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs54 = errors; + if (errors === _errs54) { + if (errors === _errs54) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { + const err24 = { instancePath: instancePath + '/device/services/' + @@ -10859,17 +11462,17 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/device/services/' + @@ -10888,27 +11491,27 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid14 = _errs52 === errors; + var valid14 = _errs54 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs54 = errors; - if (typeof data21 !== 'string') { - const err24 = { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs56 = errors; + if (typeof data22 !== 'string') { + const err26 = { instancePath: instancePath + '/device/services/' + @@ -10927,25 +11530,25 @@ function validate36( schema21.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items .properties.serviceId, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid14 = _errs54 === errors; + var valid14 = _errs56 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs56 = errors; - if (typeof data22 !== 'string') { - const err25 = { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs58 = errors; + if (typeof data23 !== 'string') { + const err27 = { instancePath: instancePath + '/device/services/' + @@ -10964,23 +11567,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/device/services/' + @@ -11006,23 +11609,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid14 = _errs56 === errors; + var valid14 = _errs58 === errors; } else { var valid14 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/device/services/' + i2, schemaPath: @@ -11036,23 +11639,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid13 = _errs49 === errors; + var valid13 = _errs51 === errors; if (!valid13) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/services/type', @@ -11065,24 +11668,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.services, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid12 = _errs47 === errors; + var valid12 = _errs49 === errors; } else { var valid12 = true; } } } } else { - const err29 = { + const err31 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/type', keyword: 'type', @@ -11093,30 +11696,32 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid6 = _errs42 === errors; + var valid6 = _errs44 === errors; } var _valid0 = _errs17 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs58 = errors; - const _errs59 = errors; - if (errors === _errs59) { + const _errs60 = errors; + const _errs61 = errors; + if (errors === _errs61) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing6; if ( (data4.url === undefined && (missing6 = 'url')) || (data4.type === undefined && (missing6 = 'type')) || (data4.name === undefined && (missing6 = 'name')) || - (data4.isPublic === undefined && (missing6 = 'isPublic')) + (data4.isPublic === undefined && (missing6 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing6 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/required', @@ -11130,20 +11735,20 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data4.url !== undefined) { - let data23 = data4.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err31 = { + let data24 = data4.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err33 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/format', @@ -11154,17 +11759,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/type', @@ -11177,27 +11782,27 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid16 = _errs61 === errors; + var valid16 = _errs63 === errors; } else { var valid16 = true; } if (valid16) { if (data4.name !== undefined) { - let data24 = data4.name; - const _errs63 = errors; - if (typeof data24 !== 'string') { - const err33 = { + let data25 = data4.name; + const _errs65 = errors; + if (typeof data25 !== 'string') { + const err35 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/name/type', @@ -11210,25 +11815,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.name, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid16 = _errs63 === errors; + var valid16 = _errs65 === errors; } else { var valid16 = true; } if (valid16) { if (data4.description !== undefined) { - let data25 = data4.description; - const _errs65 = errors; - if (typeof data25 !== 'string') { - const err34 = { + let data26 = data4.description; + const _errs67 = errors; + if (typeof data26 !== 'string') { + const err36 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/description/type', @@ -11241,25 +11846,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.description, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs67 === errors; } else { var valid16 = true; } if (valid16) { if (data4.type !== undefined) { - let data26 = data4.type; - const _errs67 = errors; - if (typeof data26 !== 'string') { - const err35 = { + let data27 = data4.type; + const _errs69 = errors; + if (typeof data27 !== 'string') { + const err37 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/type', @@ -11272,24 +11877,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data26 === 'device' || - data26 === 'group' || - data26 === 'edge instantiable' || - data26 === 'cloud instantiable' + data27 === 'device' || + data27 === 'group' || + data27 === 'edge instantiable' || + data27 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/enum', @@ -11306,25 +11911,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid16 = _errs67 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data4.isPublic !== undefined) { - let data27 = data4.isPublic; - const _errs69 = errors; - if (typeof data27 !== 'boolean') { - const err37 = { + let data28 = data4.isPublic; + const _errs71 = errors; + if (typeof data28 !== 'boolean') { + const err39 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/isPublic/type', @@ -11337,42 +11942,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[0].properties.isPublic, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs71 === errors; } else { var valid16 = true; } if (valid16) { if (data4.viewer !== undefined) { - let data28 = data4.viewer; - const _errs71 = errors; - if (errors === _errs71) { - if (Array.isArray(data28)) { + let data29 = data4.viewer; + const _errs73 = errors; + if (errors === _errs73) { + if (Array.isArray(data29)) { var valid17 = true; - const len3 = data28.length; + const len3 = data29.length; for (let i3 = 0; i3 < len3; i3++) { - let data29 = data28[i3]; - const _errs73 = errors; - if (errors === _errs73) { + let data30 = data29[i3]; + const _errs75 = errors; + if (errors === _errs75) { if ( - data29 && - typeof data29 == 'object' && - !Array.isArray(data29) + data30 && + typeof data30 == 'object' && + !Array.isArray(data30) ) { let missing7; if ( - data29.url === undefined && + data30.url === undefined && (missing7 = 'url') ) { - const err38 = { + const err40 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -11391,23 +11996,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data29.url !== undefined) { - let data30 = data29.url; - const _errs75 = errors; - if (errors === _errs75) { - if (errors === _errs75) { - if (typeof data30 === 'string') { - if (!formats0(data30)) { - const err39 = { + if (data30.url !== undefined) { + let data31 = data30.url; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data31 === 'string') { + if (!formats0(data31)) { + const err41 = { instancePath: instancePath + '/device/viewer/' + @@ -11427,17 +12032,17 @@ function validate36( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/device/viewer/' + @@ -11458,12 +12063,12 @@ function validate36( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -11472,7 +12077,7 @@ function validate36( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -11488,23 +12093,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid17 = _errs73 === errors; + var valid17 = _errs75 === errors; if (!valid17) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/viewer/type', @@ -11517,43 +12122,43 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[0].properties.viewer, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid16 = _errs71 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data4.owner !== undefined) { - let data31 = data4.owner; - const _errs77 = errors; - if (errors === _errs77) { - if (Array.isArray(data31)) { + let data32 = data4.owner; + const _errs79 = errors; + if (errors === _errs79) { + if (Array.isArray(data32)) { var valid19 = true; - const len4 = data31.length; + const len4 = data32.length; for (let i4 = 0; i4 < len4; i4++) { - let data32 = data31[i4]; - const _errs79 = errors; - if (errors === _errs79) { + let data33 = data32[i4]; + const _errs81 = errors; + if (errors === _errs81) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data33 && + typeof data33 == 'object' && + !Array.isArray(data33) ) { let missing8; if ( - data32.url === undefined && + data33.url === undefined && (missing8 = 'url') ) { - const err43 = { + const err45 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -11572,23 +12177,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data32.url !== undefined) { - let data33 = data32.url; - const _errs81 = errors; - if (errors === _errs81) { - if (errors === _errs81) { - if (typeof data33 === 'string') { - if (!formats0(data33)) { - const err44 = { + if (data33.url !== undefined) { + let data34 = data33.url; + const _errs83 = errors; + if (errors === _errs83) { + if (errors === _errs83) { + if (typeof data34 === 'string') { + if (!formats0(data34)) { + const err46 = { instancePath: instancePath + '/device/owner/' + @@ -11608,17 +12213,17 @@ function validate36( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/device/owner/' + @@ -11639,12 +12244,12 @@ function validate36( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -11653,7 +12258,7 @@ function validate36( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -11669,23 +12274,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid19 = _errs79 === errors; + var valid19 = _errs81 === errors; if (!valid19) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/owner/type', @@ -11698,20 +12303,85 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[0].properties.owner, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid16 = _errs77 === errors; + var valid16 = _errs79 === errors; } else { var valid16 = true; } + if (valid16) { + if (data4.bookingEndpoint !== undefined) { + let data35 = data4.bookingEndpoint; + const _errs85 = errors; + if (errors === _errs85) { + if (errors === _errs85) { + if (typeof data35 === 'string') { + if (!formats0(data35)) { + const err50 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid16 = _errs85 === errors; + } else { + var valid16 = true; + } + } } } } @@ -11720,7 +12390,7 @@ function validate36( } } } else { - const err48 = { + const err52 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/type', keyword: 'type', @@ -11731,23 +12401,23 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid15 = _errs59 === errors; + var valid15 = _errs61 === errors; if (valid15) { - const _errs83 = errors; - if (errors === _errs83) { + const _errs87 = errors; + if (errors === _errs87) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data34 = data4.type; - const _errs85 = errors; - if ('device' !== data34) { - const err49 = { + let data36 = data4.type; + const _errs89 = errors; + if ('device' !== data36) { + const err53 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/type/const', @@ -11758,25 +12428,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[1] .properties.type, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid21 = _errs85 === errors; + var valid21 = _errs89 === errors; } else { var valid21 = true; } if (valid21) { if (data4.connected !== undefined) { - let data35 = data4.connected; - const _errs86 = errors; - if (typeof data35 !== 'boolean') { - const err50 = { + let data37 = data4.connected; + const _errs90 = errors; + if (typeof data37 !== 'boolean') { + const err54 = { instancePath: instancePath + '/device/connected', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/connected/type', @@ -11789,44 +12459,44 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[1] .properties.connected, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid21 = _errs86 === errors; + var valid21 = _errs90 === errors; } else { var valid21 = true; } if (valid21) { if (data4.announcedAvailability !== undefined) { - let data36 = data4.announcedAvailability; - const _errs88 = errors; - if (errors === _errs88) { - if (Array.isArray(data36)) { + let data38 = data4.announcedAvailability; + const _errs92 = errors; + if (errors === _errs92) { + if (Array.isArray(data38)) { var valid22 = true; - const len5 = data36.length; + const len5 = data38.length; for (let i5 = 0; i5 < len5; i5++) { - let data37 = data36[i5]; - const _errs90 = errors; - if (errors === _errs90) { + let data39 = data38[i5]; + const _errs94 = errors; + if (errors === _errs94) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.start !== undefined) { - let data38 = data37.start; - const _errs92 = errors; - if (errors === _errs92) { - if (errors === _errs92) { - if (typeof data38 === 'string') { - if (!formats22.validate(data38)) { - const err51 = { + if (data39.start !== undefined) { + let data40 = data39.start; + const _errs96 = errors; + if (errors === _errs96) { + if (errors === _errs96) { + if (typeof data40 === 'string') { + if (!formats26.validate(data40)) { + const err55 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11846,17 +12516,17 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11877,30 +12547,30 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid23 = _errs92 === errors; + var valid23 = _errs96 === errors; } else { var valid23 = true; } if (valid23) { - if (data37.end !== undefined) { - let data39 = data37.end; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data39 === 'string') { - if (!formats22.validate(data39)) { - const err53 = { + if (data39.end !== undefined) { + let data41 = data39.end; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data41 === 'string') { + if (!formats26.validate(data41)) { + const err57 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11920,17 +12590,17 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11951,24 +12621,24 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid23 = _errs94 === errors; + var valid23 = _errs98 === errors; } else { var valid23 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11986,23 +12656,23 @@ function validate36( schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.announcedAvailability .items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid22 = _errs90 === errors; + var valid22 = _errs94 === errors; if (!valid22) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/device/announcedAvailability', schemaPath: @@ -12016,29 +12686,29 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[1] .properties.announcedAvailability, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid21 = _errs88 === errors; + var valid21 = _errs92 === errors; } else { var valid21 = true; } if (valid21) { if (data4.experiment !== undefined) { - let data40 = data4.experiment; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err57 = { + let data42 = data4.experiment; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err61 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/format', @@ -12049,17 +12719,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/type', @@ -12072,46 +12742,46 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid21 = _errs96 === errors; + var valid21 = _errs100 === errors; } else { var valid21 = true; } if (valid21) { if (data4.services !== undefined) { - let data41 = data4.services; - const _errs98 = errors; - if (errors === _errs98) { - if (Array.isArray(data41)) { + let data43 = data4.services; + const _errs102 = errors; + if (errors === _errs102) { + if (Array.isArray(data43)) { var valid24 = true; - const len6 = data41.length; + const len6 = data43.length; for (let i6 = 0; i6 < len6; i6++) { - let data42 = data41[i6]; - const _errs100 = errors; - if (errors === _errs100) { + let data44 = data43[i6]; + const _errs104 = errors; + if (errors === _errs104) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { - if (data42.serviceType !== undefined) { - let data43 = data42.serviceType; - const _errs103 = errors; - if (errors === _errs103) { - if (errors === _errs103) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err59 = { + if (data44.serviceType !== undefined) { + let data45 = data44.serviceType; + const _errs107 = errors; + if (errors === _errs107) { + if (errors === _errs107) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err63 = { instancePath: instancePath + '/device/services/' + @@ -12131,17 +12801,17 @@ function validate36( .device.anyOf[1].allOf[1] .properties.services.items .properties.serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/device/services/' + @@ -12162,27 +12832,27 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid25 = _errs103 === errors; + var valid25 = _errs107 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceId !== undefined) { - let data44 = data42.serviceId; - const _errs105 = errors; - if (typeof data44 !== 'string') { - const err61 = { + if (data44.serviceId !== undefined) { + let data46 = data44.serviceId; + const _errs109 = errors; + if (typeof data46 !== 'string') { + const err65 = { instancePath: instancePath + '/device/services/' + @@ -12203,25 +12873,25 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceId, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid25 = _errs105 === errors; + var valid25 = _errs109 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceDirection !== undefined) { - let data45 = data42.serviceDirection; - const _errs107 = errors; - if (typeof data45 !== 'string') { - const err62 = { + if (data44.serviceDirection !== undefined) { + let data47 = data44.serviceDirection; + const _errs111 = errors; + if (typeof data47 !== 'string') { + const err66 = { instancePath: instancePath + '/device/services/' + @@ -12242,23 +12912,23 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data45 === 'consumer' || - data45 === 'producer' || - data45 === 'prosumer' + data47 === 'consumer' || + data47 === 'producer' || + data47 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/device/services/' + @@ -12287,23 +12957,23 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid25 = _errs107 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/device/services/' + i6, schemaPath: @@ -12317,23 +12987,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid24 = _errs100 === errors; + var valid24 = _errs104 === errors; if (!valid24) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/services/type', @@ -12346,17 +13016,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs98 === errors; + var valid21 = _errs102 === errors; } else { var valid21 = true; } @@ -12365,7 +13035,7 @@ function validate36( } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/type', keyword: 'type', @@ -12378,30 +13048,32 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid15 = _errs83 === errors; + var valid15 = _errs87 === errors; } - var _valid0 = _errs58 === errors; + var _valid0 = _errs60 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs109 = errors; - const _errs110 = errors; - if (errors === _errs110) { + const _errs113 = errors; + const _errs114 = errors; + if (errors === _errs114) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing9; if ( (data4.url === undefined && (missing9 = 'url')) || (data4.type === undefined && (missing9 = 'type')) || (data4.name === undefined && (missing9 = 'name')) || - (data4.isPublic === undefined && (missing9 = 'isPublic')) + (data4.isPublic === undefined && (missing9 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing9 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/required', @@ -12416,20 +13088,20 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data4.url !== undefined) { - let data46 = data4.url; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data46 === 'string') { - if (!formats0(data46)) { - const err68 = { + let data48 = data4.url; + const _errs116 = errors; + if (errors === _errs116) { + if (errors === _errs116) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err72 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/format', @@ -12440,17 +13112,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/type', @@ -12463,27 +13135,27 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[0] .properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs116 === errors; } else { var valid27 = true; } if (valid27) { if (data4.name !== undefined) { - let data47 = data4.name; - const _errs114 = errors; - if (typeof data47 !== 'string') { - const err70 = { + let data49 = data4.name; + const _errs118 = errors; + if (typeof data49 !== 'string') { + const err74 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/name/type', @@ -12496,25 +13168,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[0] .properties.name, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { if (data4.description !== undefined) { - let data48 = data4.description; - const _errs116 = errors; - if (typeof data48 !== 'string') { - const err71 = { + let data50 = data4.description; + const _errs120 = errors; + if (typeof data50 !== 'string') { + const err75 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/description/type', @@ -12527,25 +13199,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[0] .properties.description, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { if (data4.type !== undefined) { - let data49 = data4.type; - const _errs118 = errors; - if (typeof data49 !== 'string') { - const err72 = { + let data51 = data4.type; + const _errs122 = errors; + if (typeof data51 !== 'string') { + const err76 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/type', @@ -12558,24 +13230,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data49 === 'device' || - data49 === 'group' || - data49 === 'edge instantiable' || - data49 === 'cloud instantiable' + data51 === 'device' || + data51 === 'group' || + data51 === 'edge instantiable' || + data51 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/enum', @@ -12592,25 +13264,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid27 = _errs118 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } if (valid27) { if (data4.isPublic !== undefined) { - let data50 = data4.isPublic; - const _errs120 = errors; - if (typeof data50 !== 'boolean') { - const err74 = { + let data52 = data4.isPublic; + const _errs124 = errors; + if (typeof data52 !== 'boolean') { + const err78 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/isPublic/type', @@ -12623,42 +13295,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.isPublic, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs124 === errors; } else { var valid27 = true; } if (valid27) { if (data4.viewer !== undefined) { - let data51 = data4.viewer; - const _errs122 = errors; - if (errors === _errs122) { - if (Array.isArray(data51)) { + let data53 = data4.viewer; + const _errs126 = errors; + if (errors === _errs126) { + if (Array.isArray(data53)) { var valid28 = true; - const len7 = data51.length; + const len7 = data53.length; for (let i7 = 0; i7 < len7; i7++) { - let data52 = data51[i7]; - const _errs124 = errors; - if (errors === _errs124) { + let data54 = data53[i7]; + const _errs128 = errors; + if (errors === _errs128) { if ( - data52 && - typeof data52 == 'object' && - !Array.isArray(data52) + data54 && + typeof data54 == 'object' && + !Array.isArray(data54) ) { let missing10; if ( - data52.url === undefined && + data54.url === undefined && (missing10 = 'url') ) { - const err75 = { + const err79 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -12677,23 +13349,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data52.url !== undefined) { - let data53 = data52.url; - const _errs126 = errors; - if (errors === _errs126) { - if (errors === _errs126) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err76 = { + if (data54.url !== undefined) { + let data55 = data54.url; + const _errs130 = errors; + if (errors === _errs130) { + if (errors === _errs130) { + if (typeof data55 === 'string') { + if (!formats0(data55)) { + const err80 = { instancePath: instancePath + '/device/viewer/' + @@ -12713,17 +13385,17 @@ function validate36( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/device/viewer/' + @@ -12744,12 +13416,12 @@ function validate36( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -12758,7 +13430,7 @@ function validate36( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -12774,23 +13446,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid28 = _errs124 === errors; + var valid28 = _errs128 === errors; if (!valid28) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/viewer/type', @@ -12803,43 +13475,43 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.viewer, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid27 = _errs122 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data4.owner !== undefined) { - let data54 = data4.owner; - const _errs128 = errors; - if (errors === _errs128) { - if (Array.isArray(data54)) { + let data56 = data4.owner; + const _errs132 = errors; + if (errors === _errs132) { + if (Array.isArray(data56)) { var valid30 = true; - const len8 = data54.length; + const len8 = data56.length; for (let i8 = 0; i8 < len8; i8++) { - let data55 = data54[i8]; - const _errs130 = errors; - if (errors === _errs130) { + let data57 = data56[i8]; + const _errs134 = errors; + if (errors === _errs134) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data57 && + typeof data57 == 'object' && + !Array.isArray(data57) ) { let missing11; if ( - data55.url === undefined && + data57.url === undefined && (missing11 = 'url') ) { - const err80 = { + const err84 = { instancePath: instancePath + '/device/owner/' + @@ -12862,23 +13534,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties .owner.items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data55.url !== undefined) { - let data56 = data55.url; - const _errs132 = errors; - if (errors === _errs132) { - if (errors === _errs132) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err81 = { + if (data57.url !== undefined) { + let data58 = data57.url; + const _errs136 = errors; + if (errors === _errs136) { + if (errors === _errs136) { + if (typeof data58 === 'string') { + if (!formats0(data58)) { + const err85 = { instancePath: instancePath + '/device/owner/' + @@ -12899,17 +13571,17 @@ function validate36( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/device/owner/' + @@ -12930,12 +13602,12 @@ function validate36( .device.anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -12944,7 +13616,7 @@ function validate36( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/device/owner/' + i8, schemaPath: @@ -12960,23 +13632,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid30 = _errs130 === errors; + var valid30 = _errs134 === errors; if (!valid30) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/owner/type', @@ -12989,20 +13661,86 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.owner, - data: data54, + data: data56, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid27 = _errs128 === errors; + var valid27 = _errs132 === errors; } else { var valid27 = true; } + if (valid27) { + if (data4.bookingEndpoint !== undefined) { + let data59 = data4.bookingEndpoint; + const _errs138 = errors; + if (errors === _errs138) { + if (errors === _errs138) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err89 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid27 = _errs138 === errors; + } else { + var valid27 = true; + } + } } } } @@ -13011,7 +13749,7 @@ function validate36( } } } else { - const err85 = { + const err91 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/type', keyword: 'type', @@ -13024,23 +13762,23 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid26 = _errs110 === errors; + var valid26 = _errs114 === errors; if (valid26) { - const _errs134 = errors; - if (errors === _errs134) { + const _errs140 = errors; + if (errors === _errs140) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data57 = data4.type; - const _errs136 = errors; - if ('edge instantiable' !== data57) { - const err86 = { + let data60 = data4.type; + const _errs142 = errors; + if ('edge instantiable' !== data60) { + const err92 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/type/const', @@ -13051,28 +13789,28 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[1] .properties.type, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid32 = _errs136 === errors; + var valid32 = _errs142 === errors; } else { var valid32 = true; } if (valid32) { if (data4.codeUrl !== undefined) { - let data58 = data4.codeUrl; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data58 === 'string') { - if (!formats0(data58)) { - const err87 = { + let data61 = data4.codeUrl; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data61 === 'string') { + if (!formats0(data61)) { + const err93 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/format', @@ -13083,17 +13821,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/type', @@ -13106,46 +13844,46 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; } else { var valid32 = true; } if (valid32) { if (data4.services !== undefined) { - let data59 = data4.services; - const _errs139 = errors; - if (errors === _errs139) { - if (Array.isArray(data59)) { + let data62 = data4.services; + const _errs145 = errors; + if (errors === _errs145) { + if (Array.isArray(data62)) { var valid33 = true; - const len9 = data59.length; + const len9 = data62.length; for (let i9 = 0; i9 < len9; i9++) { - let data60 = data59[i9]; - const _errs141 = errors; - if (errors === _errs141) { + let data63 = data62[i9]; + const _errs147 = errors; + if (errors === _errs147) { if ( - data60 && - typeof data60 == 'object' && - !Array.isArray(data60) + data63 && + typeof data63 == 'object' && + !Array.isArray(data63) ) { - if (data60.serviceType !== undefined) { - let data61 = data60.serviceType; - const _errs144 = errors; - if (errors === _errs144) { - if (errors === _errs144) { - if (typeof data61 === 'string') { - if (!formats0(data61)) { - const err89 = { + if (data63.serviceType !== undefined) { + let data64 = data63.serviceType; + const _errs150 = errors; + if (errors === _errs150) { + if (errors === _errs150) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err95 = { instancePath: instancePath + '/device/services/' + @@ -13163,17 +13901,17 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/device/services/' + @@ -13194,27 +13932,27 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid34 = _errs144 === errors; + var valid34 = _errs150 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceId !== undefined) { - let data62 = data60.serviceId; - const _errs146 = errors; - if (typeof data62 !== 'string') { - const err91 = { + if (data63.serviceId !== undefined) { + let data65 = data63.serviceId; + const _errs152 = errors; + if (typeof data65 !== 'string') { + const err97 = { instancePath: instancePath + '/device/services/' + @@ -13233,25 +13971,25 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid34 = _errs146 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceDirection !== undefined) { - let data63 = data60.serviceDirection; - const _errs148 = errors; - if (typeof data63 !== 'string') { - const err92 = { + if (data63.serviceDirection !== undefined) { + let data66 = data63.serviceDirection; + const _errs154 = errors; + if (typeof data66 !== 'string') { + const err98 = { instancePath: instancePath + '/device/services/' + @@ -13272,23 +14010,23 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data63 === 'consumer' || - data63 === 'producer' || - data63 === 'prosumer' + data66 === 'consumer' || + data66 === 'producer' || + data66 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/device/services/' + @@ -13316,23 +14054,23 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid34 = _errs148 === errors; + var valid34 = _errs154 === errors; } else { var valid34 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/device/services/' + i9, schemaPath: @@ -13346,23 +14084,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services.items, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid33 = _errs141 === errors; + var valid33 = _errs147 === errors; if (!valid33) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/services/type', @@ -13375,24 +14113,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid32 = _errs139 === errors; + var valid32 = _errs145 === errors; } else { var valid32 = true; } } } } else { - const err96 = { + const err102 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/type', keyword: 'type', @@ -13405,30 +14143,32 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid26 = _errs134 === errors; + var valid26 = _errs140 === errors; } - var _valid0 = _errs109 === errors; + var _valid0 = _errs113 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs150 = errors; - const _errs151 = errors; - if (errors === _errs151) { + const _errs156 = errors; + const _errs157 = errors; + if (errors === _errs157) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing12; if ( (data4.url === undefined && (missing12 = 'url')) || (data4.type === undefined && (missing12 = 'type')) || (data4.name === undefined && (missing12 = 'name')) || - (data4.isPublic === undefined && (missing12 = 'isPublic')) + (data4.isPublic === undefined && (missing12 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing12 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/required', @@ -13443,20 +14183,20 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data4.url !== undefined) { - let data64 = data4.url; - const _errs153 = errors; - if (errors === _errs153) { - if (errors === _errs153) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err98 = { + let data67 = data4.url; + const _errs159 = errors; + if (errors === _errs159) { + if (errors === _errs159) { + if (typeof data67 === 'string') { + if (!formats0(data67)) { + const err104 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/format', @@ -13467,17 +14207,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/type', @@ -13490,27 +14230,27 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid36 = _errs153 === errors; + var valid36 = _errs159 === errors; } else { var valid36 = true; } if (valid36) { if (data4.name !== undefined) { - let data65 = data4.name; - const _errs155 = errors; - if (typeof data65 !== 'string') { - const err100 = { + let data68 = data4.name; + const _errs161 = errors; + if (typeof data68 !== 'string') { + const err106 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/name/type', @@ -13523,25 +14263,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3].allOf[0] .properties.name, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid36 = _errs155 === errors; + var valid36 = _errs161 === errors; } else { var valid36 = true; } if (valid36) { if (data4.description !== undefined) { - let data66 = data4.description; - const _errs157 = errors; - if (typeof data66 !== 'string') { - const err101 = { + let data69 = data4.description; + const _errs163 = errors; + if (typeof data69 !== 'string') { + const err107 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/description/type', @@ -13554,25 +14294,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.description, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid36 = _errs157 === errors; + var valid36 = _errs163 === errors; } else { var valid36 = true; } if (valid36) { if (data4.type !== undefined) { - let data67 = data4.type; - const _errs159 = errors; - if (typeof data67 !== 'string') { - const err102 = { + let data70 = data4.type; + const _errs165 = errors; + if (typeof data70 !== 'string') { + const err108 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/type', @@ -13585,24 +14325,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data67 === 'device' || - data67 === 'group' || - data67 === 'edge instantiable' || - data67 === 'cloud instantiable' + data70 === 'device' || + data70 === 'group' || + data70 === 'edge instantiable' || + data70 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/enum', @@ -13620,25 +14360,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid36 = _errs159 === errors; + var valid36 = _errs165 === errors; } else { var valid36 = true; } if (valid36) { if (data4.isPublic !== undefined) { - let data68 = data4.isPublic; - const _errs161 = errors; - if (typeof data68 !== 'boolean') { - const err104 = { + let data71 = data4.isPublic; + const _errs167 = errors; + if (typeof data71 !== 'boolean') { + const err110 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/isPublic/type', @@ -13651,42 +14391,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.isPublic, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs167 === errors; } else { var valid36 = true; } if (valid36) { if (data4.viewer !== undefined) { - let data69 = data4.viewer; - const _errs163 = errors; - if (errors === _errs163) { - if (Array.isArray(data69)) { + let data72 = data4.viewer; + const _errs169 = errors; + if (errors === _errs169) { + if (Array.isArray(data72)) { var valid37 = true; - const len10 = data69.length; + const len10 = data72.length; for (let i10 = 0; i10 < len10; i10++) { - let data70 = data69[i10]; - const _errs165 = errors; - if (errors === _errs165) { + let data73 = data72[i10]; + const _errs171 = errors; + if (errors === _errs171) { if ( - data70 && - typeof data70 == 'object' && - !Array.isArray(data70) + data73 && + typeof data73 == 'object' && + !Array.isArray(data73) ) { let missing13; if ( - data70.url === undefined && + data73.url === undefined && (missing13 = 'url') ) { - const err105 = { + const err111 = { instancePath: instancePath + '/device/viewer/' + @@ -13709,23 +14449,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties .viewer.items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data70.url !== undefined) { - let data71 = data70.url; - const _errs167 = errors; - if (errors === _errs167) { - if (errors === _errs167) { - if (typeof data71 === 'string') { - if (!formats0(data71)) { - const err106 = { + if (data73.url !== undefined) { + let data74 = data73.url; + const _errs173 = errors; + if (errors === _errs173) { + if (errors === _errs173) { + if (typeof data74 === 'string') { + if (!formats0(data74)) { + const err112 = { instancePath: instancePath + '/device/viewer/' + @@ -13746,17 +14486,17 @@ function validate36( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/device/viewer/' + @@ -13777,12 +14517,12 @@ function validate36( .device.anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -13791,7 +14531,7 @@ function validate36( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/device/viewer/' + @@ -13809,23 +14549,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid37 = _errs165 === errors; + var valid37 = _errs171 === errors; if (!valid37) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/viewer/type', @@ -13838,43 +14578,43 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.viewer, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid36 = _errs163 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data4.owner !== undefined) { - let data72 = data4.owner; - const _errs169 = errors; - if (errors === _errs169) { - if (Array.isArray(data72)) { + let data75 = data4.owner; + const _errs175 = errors; + if (errors === _errs175) { + if (Array.isArray(data75)) { var valid39 = true; - const len11 = data72.length; + const len11 = data75.length; for (let i11 = 0; i11 < len11; i11++) { - let data73 = data72[i11]; - const _errs171 = errors; - if (errors === _errs171) { + let data76 = data75[i11]; + const _errs177 = errors; + if (errors === _errs177) { if ( - data73 && - typeof data73 == 'object' && - !Array.isArray(data73) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing14; if ( - data73.url === undefined && + data76.url === undefined && (missing14 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/device/owner/' + @@ -13898,25 +14638,25 @@ function validate36( schema21.allOf[1].properties .device.anyOf[3].allOf[0] .properties.owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data73.url !== undefined) { - let data74 = data73.url; - const _errs173 = errors; - if (errors === _errs173) { - if (errors === _errs173) { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs179 = errors; + if (errors === _errs179) { + if (errors === _errs179) { if ( - typeof data74 === 'string' + typeof data77 === 'string' ) { - if (!formats0(data74)) { - const err111 = { + if (!formats0(data77)) { + const err117 = { instancePath: instancePath + '/device/owner/' + @@ -13937,17 +14677,17 @@ function validate36( .anyOf[3].allOf[0] .properties.owner .items.properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/device/owner/' + @@ -13970,12 +14710,12 @@ function validate36( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -13984,7 +14724,7 @@ function validate36( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/device/owner/' + @@ -14002,23 +14742,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties .owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid39 = _errs171 === errors; + var valid39 = _errs177 === errors; if (!valid39) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/device/owner', schemaPath: @@ -14033,20 +14773,86 @@ function validate36( parentSchema: schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner, - data: data72, + data: data75, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid36 = _errs169 === errors; + var valid36 = _errs175 === errors; } else { var valid36 = true; } + if (valid36) { + if (data4.bookingEndpoint !== undefined) { + let data78 = data4.bookingEndpoint; + const _errs181 = errors; + if (errors === _errs181) { + if (errors === _errs181) { + if (typeof data78 === 'string') { + if (!formats0(data78)) { + const err121 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid36 = _errs181 === errors; + } else { + var valid36 = true; + } + } } } } @@ -14055,7 +14861,7 @@ function validate36( } } } else { - const err115 = { + const err123 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/type', keyword: 'type', @@ -14068,21 +14874,21 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid35 = _errs151 === errors; + var valid35 = _errs157 === errors; if (valid35) { - const _errs175 = errors; - if (errors === _errs175) { + const _errs183 = errors; + if (errors === _errs183) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing15; if (data4.devices === undefined && (missing15 = 'devices')) { - const err116 = { + const err124 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/required', @@ -14097,17 +14903,17 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data4.type !== undefined) { - let data75 = data4.type; - const _errs177 = errors; - if ('group' !== data75) { - const err117 = { + let data79 = data4.type; + const _errs185 = errors; + if ('group' !== data79) { + const err125 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/type/const', @@ -14118,42 +14924,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3].allOf[1] .properties.type, - data: data75, + data: data79, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid41 = _errs177 === errors; + var valid41 = _errs185 === errors; } else { var valid41 = true; } if (valid41) { if (data4.devices !== undefined) { - let data76 = data4.devices; - const _errs178 = errors; - if (errors === _errs178) { - if (Array.isArray(data76)) { + let data80 = data4.devices; + const _errs186 = errors; + if (errors === _errs186) { + if (Array.isArray(data80)) { var valid42 = true; - const len12 = data76.length; + const len12 = data80.length; for (let i12 = 0; i12 < len12; i12++) { - let data77 = data76[i12]; - const _errs180 = errors; - if (errors === _errs180) { + let data81 = data80[i12]; + const _errs188 = errors; + if (errors === _errs188) { if ( - data77 && - typeof data77 == 'object' && - !Array.isArray(data77) + data81 && + typeof data81 == 'object' && + !Array.isArray(data81) ) { let missing16; if ( - data77.url === undefined && + data81.url === undefined && (missing16 = 'url') ) { - const err118 = { + const err126 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -14172,23 +14978,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data77.url !== undefined) { - let data78 = data77.url; - const _errs182 = errors; - if (errors === _errs182) { - if (errors === _errs182) { - if (typeof data78 === 'string') { - if (!formats0(data78)) { - const err119 = { + if (data81.url !== undefined) { + let data82 = data81.url; + const _errs190 = errors; + if (errors === _errs190) { + if (errors === _errs190) { + if (typeof data82 === 'string') { + if (!formats0(data82)) { + const err127 = { instancePath: instancePath + '/device/devices/' + @@ -14208,17 +15014,17 @@ function validate36( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/device/devices/' + @@ -14239,12 +15045,12 @@ function validate36( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -14253,7 +15059,7 @@ function validate36( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -14267,23 +15073,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices.items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid42 = _errs180 === errors; + var valid42 = _errs188 === errors; if (!valid42) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/device/devices', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/devices/type', @@ -14296,24 +15102,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices, - data: data76, + data: data80, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid41 = _errs178 === errors; + var valid41 = _errs186 === errors; } else { var valid41 = true; } } } } else { - const err123 = { + const err131 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/type', @@ -14327,22 +15133,22 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid35 = _errs175 === errors; + var valid35 = _errs183 === errors; } - var _valid0 = _errs150 === errors; + var _valid0 = _errs156 === errors; valid5 = valid5 || _valid0; } } } if (!valid5) { - const err124 = { + const err132 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf', keyword: 'anyOf', @@ -14353,9 +15159,9 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate36.errors = vErrors; @@ -21415,7 +22221,7 @@ function validate43( if (errors === _errs3) { if (errors === _errs3) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate43.errors = [ { instancePath: instancePath + '/start', @@ -21458,7 +22264,7 @@ function validate43( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate43.errors = [ { instancePath: instancePath + '/end', @@ -21616,7 +22422,7 @@ function validate43( if (errors === _errs15) { if (errors === _errs15) { if (typeof data5 === 'string') { - if (!formats22.validate(data5)) { + if (!formats26.validate(data5)) { validate43.errors = [ { instancePath: instancePath + '/repeat/until', @@ -28181,7 +28987,7 @@ const schema45 = { 'x-location': '#/components/parameters/device_id/schema', 'x-schema-type': 'all', }; -const formats258 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; +const formats284 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; function validate60( data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}, @@ -28191,7 +28997,7 @@ function validate60( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate60.errors = [ { instancePath, @@ -28277,7 +29083,7 @@ function validate62( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate62.errors = [ { instancePath, @@ -28330,7 +29136,7 @@ function validate63( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate63.errors = [ { instancePath, @@ -28489,7 +29295,7 @@ function validate66( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate66.errors = [ { instancePath, @@ -28628,8 +29434,13 @@ const schema53 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, 'x-standalone': false, @@ -28657,7 +29468,8 @@ function validate68( (data0.url === undefined && (missing0 = 'url')) || (data0.type === undefined && (missing0 = 'type')) || (data0.name === undefined && (missing0 = 'name')) || - (data0.isPublic === undefined && (missing0 = 'isPublic')) + (data0.isPublic === undefined && (missing0 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate68.errors = [ { @@ -29130,6 +29942,57 @@ function validate68( } else { var valid1 = true; } + if (valid1) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs25 = errors; + if (errors === _errs25) { + if (errors === _errs25) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate68.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema53.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate68.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema53.items.properties.bookingEndpoint.type, + parentSchema: + schema53.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid1 = _errs25 === errors; + } else { + var valid1 = true; + } + } } } } @@ -29232,8 +30095,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29313,8 +30181,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29415,8 +30288,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29496,8 +30374,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29549,7 +30432,8 @@ function validate69( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -30043,6 +30927,62 @@ function validate69( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema54.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -30051,7 +30991,7 @@ function validate69( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -30062,23 +31002,23 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -30086,28 +31026,28 @@ function validate69( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema54.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -30115,17 +31055,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -30133,42 +31073,42 @@ function validate69( message: 'must be string', schema: schema54.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema54.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -30180,17 +31120,17 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -30204,27 +31144,27 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -30238,25 +31178,25 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -30273,23 +31213,23 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -30310,23 +31250,23 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -30336,23 +31276,23 @@ function validate69( schema54.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema54.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -30360,24 +31300,24 @@ function validate69( message: 'must be array', schema: schema54.anyOf[0].allOf[1].properties.services.type, parentSchema: schema54.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -30388,30 +31328,31 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -30422,20 +31363,20 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -30443,17 +31384,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -30461,27 +31402,27 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.url.type, parentSchema: schema54.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -30489,25 +31430,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.name.type, parentSchema: schema54.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -30515,25 +31456,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.description.type, parentSchema: schema54.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -30541,24 +31482,24 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.type.type, parentSchema: schema54.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -30568,25 +31509,25 @@ function validate69( message: 'must be equal to one of the allowed values', schema: schema54.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema54.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -30594,39 +31535,39 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema54.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -30639,23 +31580,23 @@ function validate69( .required, parentSchema: schema54.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -30668,17 +31609,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -30692,12 +31633,12 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -30706,7 +31647,7 @@ function validate69( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -30718,23 +31659,23 @@ function validate69( .type, parentSchema: schema54.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -30742,40 +31683,40 @@ function validate69( message: 'must be array', schema: schema54.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema54.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -30788,23 +31729,23 @@ function validate69( .required, parentSchema: schema54.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -30817,17 +31758,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -30841,12 +31782,12 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -30855,7 +31796,7 @@ function validate69( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -30867,23 +31808,23 @@ function validate69( .type, parentSchema: schema54.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -30891,20 +31832,77 @@ function validate69( message: 'must be array', schema: schema54.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema54.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema54.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -30913,7 +31911,7 @@ function validate69( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -30924,23 +31922,23 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -30948,25 +31946,25 @@ function validate69( message: 'must be equal to constant', schema: 'device', parentSchema: schema54.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -30974,44 +31972,44 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema54.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31026,17 +32024,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31054,30 +32052,30 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31093,17 +32091,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31121,24 +32119,24 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -31151,23 +32149,23 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -31178,29 +32176,29 @@ function validate69( schema54.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema54.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -31209,17 +32207,17 @@ function validate69( schema: 'uri', parentSchema: schema54.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -31227,46 +32225,46 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema54.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -31281,17 +32279,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -31308,27 +32306,27 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -31342,25 +32340,25 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -31377,23 +32375,23 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -31415,23 +32413,23 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -31443,23 +32441,23 @@ function validate69( .type, parentSchema: schema54.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -31467,17 +32465,17 @@ function validate69( message: 'must be array', schema: schema54.anyOf[1].allOf[1].properties.services.type, parentSchema: schema54.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -31486,7 +32484,7 @@ function validate69( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -31497,30 +32495,31 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -31531,20 +32530,20 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -31552,17 +32551,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -31570,27 +32569,27 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.url.type, parentSchema: schema54.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -31598,25 +32597,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.name.type, parentSchema: schema54.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -31624,25 +32623,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.description.type, parentSchema: schema54.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -31650,24 +32649,24 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.type.type, parentSchema: schema54.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -31677,25 +32676,25 @@ function validate69( message: 'must be equal to one of the allowed values', schema: schema54.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema54.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -31703,39 +32702,39 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema54.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -31749,23 +32748,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -31778,17 +32777,17 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -31802,12 +32801,12 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -31816,7 +32815,7 @@ function validate69( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -31828,23 +32827,23 @@ function validate69( .type, parentSchema: schema54.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -31852,40 +32851,40 @@ function validate69( message: 'must be array', schema: schema54.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema54.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -31901,23 +32900,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -31933,17 +32932,17 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -31957,12 +32956,12 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -31971,7 +32970,7 @@ function validate69( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -31983,23 +32982,23 @@ function validate69( .type, parentSchema: schema54.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -32007,20 +33006,78 @@ function validate69( message: 'must be array', schema: schema54.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema54.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema54.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -32029,7 +33086,7 @@ function validate69( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -32040,23 +33097,23 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -32064,28 +33121,28 @@ function validate69( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema54.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -32093,17 +33150,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -32111,46 +33168,46 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema54.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -32165,17 +33222,17 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -32189,27 +33246,27 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -32223,25 +33280,25 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -32258,23 +33315,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -32296,23 +33353,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -32323,23 +33380,23 @@ function validate69( schema54.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema54.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -32347,24 +33404,24 @@ function validate69( message: 'must be array', schema: schema54.anyOf[2].allOf[1].properties.services.type, parentSchema: schema54.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -32375,30 +33432,31 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -32409,20 +33467,20 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -32430,17 +33488,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -32448,27 +33506,27 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.url.type, parentSchema: schema54.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -32476,25 +33534,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.name.type, parentSchema: schema54.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -32502,25 +33560,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.description.type, parentSchema: schema54.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -32528,24 +33586,24 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.type.type, parentSchema: schema54.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -32556,25 +33614,25 @@ function validate69( message: 'must be equal to one of the allowed values', schema: schema54.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema54.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -32582,39 +33640,39 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema54.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -32630,23 +33688,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -32662,17 +33720,17 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -32689,12 +33747,12 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -32703,7 +33761,7 @@ function validate69( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -32716,23 +33774,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -32741,43 +33799,43 @@ function validate69( schema: schema54.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema54.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -32793,23 +33851,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -32826,17 +33884,17 @@ function validate69( schema54.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -32853,12 +33911,12 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -32867,7 +33925,7 @@ function validate69( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -32880,23 +33938,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -32906,20 +33964,78 @@ function validate69( schema54.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema54.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema54.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -32928,7 +34044,7 @@ function validate69( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -32939,21 +34055,21 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -32964,17 +34080,17 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -32982,39 +34098,39 @@ function validate69( message: 'must be equal to constant', schema: 'group', parentSchema: schema54.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -33027,23 +34143,23 @@ function validate69( .required, parentSchema: schema54.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -33055,17 +34171,17 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -33079,12 +34195,12 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -33093,7 +34209,7 @@ function validate69( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -33105,23 +34221,23 @@ function validate69( .type, parentSchema: schema54.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -33129,24 +34245,24 @@ function validate69( message: 'must be array', schema: schema54.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema54.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -33157,22 +34273,22 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -33183,9 +34299,9 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate69.errors = vErrors; @@ -33258,8 +34374,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33339,8 +34460,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33441,8 +34567,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33522,8 +34653,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33575,7 +34711,8 @@ function validate70( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -34069,6 +35206,62 @@ function validate70( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema55.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -34077,7 +35270,7 @@ function validate70( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -34088,23 +35281,23 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -34112,28 +35305,28 @@ function validate70( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema55.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -34141,17 +35334,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -34159,42 +35352,42 @@ function validate70( message: 'must be string', schema: schema55.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema55.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -34206,17 +35399,17 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -34230,27 +35423,27 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -34264,25 +35457,25 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -34299,23 +35492,23 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -34336,23 +35529,23 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -34362,23 +35555,23 @@ function validate70( schema55.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema55.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -34386,24 +35579,24 @@ function validate70( message: 'must be array', schema: schema55.anyOf[0].allOf[1].properties.services.type, parentSchema: schema55.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -34414,30 +35607,31 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -34448,20 +35642,20 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -34469,17 +35663,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -34487,27 +35681,27 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.url.type, parentSchema: schema55.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -34515,25 +35709,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.name.type, parentSchema: schema55.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -34541,25 +35735,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.description.type, parentSchema: schema55.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -34567,24 +35761,24 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.type.type, parentSchema: schema55.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -34594,25 +35788,25 @@ function validate70( message: 'must be equal to one of the allowed values', schema: schema55.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema55.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -34620,39 +35814,39 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema55.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -34665,23 +35859,23 @@ function validate70( .required, parentSchema: schema55.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -34694,17 +35888,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -34718,12 +35912,12 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -34732,7 +35926,7 @@ function validate70( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -34744,23 +35938,23 @@ function validate70( .type, parentSchema: schema55.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -34768,40 +35962,40 @@ function validate70( message: 'must be array', schema: schema55.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema55.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -34814,23 +36008,23 @@ function validate70( .required, parentSchema: schema55.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -34843,17 +36037,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -34867,12 +36061,12 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -34881,7 +36075,7 @@ function validate70( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -34893,23 +36087,23 @@ function validate70( .type, parentSchema: schema55.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -34917,20 +36111,77 @@ function validate70( message: 'must be array', schema: schema55.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema55.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema55.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -34939,7 +36190,7 @@ function validate70( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -34950,23 +36201,23 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -34974,25 +36225,25 @@ function validate70( message: 'must be equal to constant', schema: 'device', parentSchema: schema55.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -35000,44 +36251,44 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema55.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35052,17 +36303,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35080,30 +36331,30 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35119,17 +36370,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35147,24 +36398,24 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -35177,23 +36428,23 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -35204,29 +36455,29 @@ function validate70( schema55.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema55.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -35235,17 +36486,17 @@ function validate70( schema: 'uri', parentSchema: schema55.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -35253,46 +36504,46 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema55.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -35307,17 +36558,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -35334,27 +36585,27 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -35368,25 +36619,25 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -35403,23 +36654,23 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -35441,23 +36692,23 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -35469,23 +36720,23 @@ function validate70( .type, parentSchema: schema55.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -35493,17 +36744,17 @@ function validate70( message: 'must be array', schema: schema55.anyOf[1].allOf[1].properties.services.type, parentSchema: schema55.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -35512,7 +36763,7 @@ function validate70( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -35523,30 +36774,31 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -35557,20 +36809,20 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -35578,17 +36830,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -35596,27 +36848,27 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.url.type, parentSchema: schema55.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -35624,25 +36876,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.name.type, parentSchema: schema55.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -35650,25 +36902,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.description.type, parentSchema: schema55.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -35676,24 +36928,24 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.type.type, parentSchema: schema55.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -35703,25 +36955,25 @@ function validate70( message: 'must be equal to one of the allowed values', schema: schema55.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema55.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -35729,39 +36981,39 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema55.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -35775,23 +37027,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -35804,17 +37056,17 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -35828,12 +37080,12 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -35842,7 +37094,7 @@ function validate70( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -35854,23 +37106,23 @@ function validate70( .type, parentSchema: schema55.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -35878,40 +37130,40 @@ function validate70( message: 'must be array', schema: schema55.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema55.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -35927,23 +37179,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -35959,17 +37211,17 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -35983,12 +37235,12 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -35997,7 +37249,7 @@ function validate70( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -36009,23 +37261,23 @@ function validate70( .type, parentSchema: schema55.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -36033,20 +37285,78 @@ function validate70( message: 'must be array', schema: schema55.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema55.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema55.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -36055,7 +37365,7 @@ function validate70( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -36066,23 +37376,23 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -36090,28 +37400,28 @@ function validate70( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema55.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -36119,17 +37429,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -36137,46 +37447,46 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema55.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -36191,17 +37501,17 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -36215,27 +37525,27 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -36249,25 +37559,25 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -36284,23 +37594,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -36322,23 +37632,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -36349,23 +37659,23 @@ function validate70( schema55.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema55.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -36373,24 +37683,24 @@ function validate70( message: 'must be array', schema: schema55.anyOf[2].allOf[1].properties.services.type, parentSchema: schema55.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -36401,30 +37711,31 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -36435,20 +37746,20 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -36456,17 +37767,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -36474,27 +37785,27 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.url.type, parentSchema: schema55.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -36502,25 +37813,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.name.type, parentSchema: schema55.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -36528,25 +37839,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.description.type, parentSchema: schema55.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -36554,24 +37865,24 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.type.type, parentSchema: schema55.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -36582,25 +37893,25 @@ function validate70( message: 'must be equal to one of the allowed values', schema: schema55.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema55.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -36608,39 +37919,39 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema55.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -36656,23 +37967,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -36688,17 +37999,17 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -36715,12 +38026,12 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -36729,7 +38040,7 @@ function validate70( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -36742,23 +38053,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -36767,43 +38078,43 @@ function validate70( schema: schema55.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema55.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -36819,23 +38130,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -36852,17 +38163,17 @@ function validate70( schema55.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -36879,12 +38190,12 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -36893,7 +38204,7 @@ function validate70( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -36906,23 +38217,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -36932,20 +38243,78 @@ function validate70( schema55.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema55.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema55.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -36954,7 +38323,7 @@ function validate70( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -36965,21 +38334,21 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -36990,17 +38359,17 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -37008,39 +38377,39 @@ function validate70( message: 'must be equal to constant', schema: 'group', parentSchema: schema55.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -37053,23 +38422,23 @@ function validate70( .required, parentSchema: schema55.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -37081,17 +38450,17 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -37105,12 +38474,12 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -37119,7 +38488,7 @@ function validate70( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -37131,23 +38500,23 @@ function validate70( .type, parentSchema: schema55.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -37155,24 +38524,24 @@ function validate70( message: 'must be array', schema: schema55.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema55.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -37183,22 +38552,22 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -37209,9 +38578,9 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate70.errors = vErrors; @@ -37284,8 +38653,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37365,8 +38739,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37467,8 +38846,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37548,8 +38932,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37602,7 +38991,8 @@ function validate71( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -38096,6 +39486,62 @@ function validate71( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema56.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -38104,7 +39550,7 @@ function validate71( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -38115,23 +39561,23 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -38139,28 +39585,28 @@ function validate71( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema56.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -38168,17 +39614,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -38186,42 +39632,42 @@ function validate71( message: 'must be string', schema: schema56.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema56.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -38233,17 +39679,17 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -38257,27 +39703,27 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -38291,25 +39737,25 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -38326,23 +39772,23 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -38363,23 +39809,23 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -38389,23 +39835,23 @@ function validate71( schema56.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema56.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -38413,24 +39859,24 @@ function validate71( message: 'must be array', schema: schema56.anyOf[0].allOf[1].properties.services.type, parentSchema: schema56.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -38441,30 +39887,31 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -38475,20 +39922,20 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -38496,17 +39943,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -38514,27 +39961,27 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.url.type, parentSchema: schema56.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -38542,25 +39989,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.name.type, parentSchema: schema56.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -38568,25 +40015,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.description.type, parentSchema: schema56.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -38594,24 +40041,24 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.type.type, parentSchema: schema56.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -38621,25 +40068,25 @@ function validate71( message: 'must be equal to one of the allowed values', schema: schema56.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema56.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -38647,39 +40094,39 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema56.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -38692,23 +40139,23 @@ function validate71( .required, parentSchema: schema56.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -38721,17 +40168,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -38745,12 +40192,12 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -38759,7 +40206,7 @@ function validate71( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -38771,23 +40218,23 @@ function validate71( .type, parentSchema: schema56.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -38795,40 +40242,40 @@ function validate71( message: 'must be array', schema: schema56.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema56.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -38841,23 +40288,23 @@ function validate71( .required, parentSchema: schema56.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -38870,17 +40317,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -38894,12 +40341,12 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -38908,7 +40355,7 @@ function validate71( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -38920,23 +40367,23 @@ function validate71( .type, parentSchema: schema56.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -38944,20 +40391,77 @@ function validate71( message: 'must be array', schema: schema56.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema56.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema56.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -38966,7 +40470,7 @@ function validate71( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -38977,23 +40481,23 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -39001,25 +40505,25 @@ function validate71( message: 'must be equal to constant', schema: 'device', parentSchema: schema56.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -39027,44 +40531,44 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema56.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39079,17 +40583,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39107,30 +40611,30 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39146,17 +40650,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39174,24 +40678,24 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -39204,23 +40708,23 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -39231,29 +40735,29 @@ function validate71( schema56.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema56.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -39262,17 +40766,17 @@ function validate71( schema: 'uri', parentSchema: schema56.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -39280,46 +40784,46 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema56.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -39334,17 +40838,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -39361,27 +40865,27 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -39395,25 +40899,25 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -39430,23 +40934,23 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -39468,23 +40972,23 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -39496,23 +41000,23 @@ function validate71( .type, parentSchema: schema56.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -39520,17 +41024,17 @@ function validate71( message: 'must be array', schema: schema56.anyOf[1].allOf[1].properties.services.type, parentSchema: schema56.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -39539,7 +41043,7 @@ function validate71( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -39550,30 +41054,31 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -39584,20 +41089,20 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -39605,17 +41110,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -39623,27 +41128,27 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.url.type, parentSchema: schema56.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -39651,25 +41156,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.name.type, parentSchema: schema56.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -39677,25 +41182,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.description.type, parentSchema: schema56.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -39703,24 +41208,24 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.type.type, parentSchema: schema56.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -39730,25 +41235,25 @@ function validate71( message: 'must be equal to one of the allowed values', schema: schema56.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema56.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -39756,39 +41261,39 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema56.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -39802,23 +41307,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -39831,17 +41336,17 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -39855,12 +41360,12 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -39869,7 +41374,7 @@ function validate71( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -39881,23 +41386,23 @@ function validate71( .type, parentSchema: schema56.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -39905,40 +41410,40 @@ function validate71( message: 'must be array', schema: schema56.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema56.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -39954,23 +41459,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -39986,17 +41491,17 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -40010,12 +41515,12 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -40024,7 +41529,7 @@ function validate71( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -40036,23 +41541,23 @@ function validate71( .type, parentSchema: schema56.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -40060,20 +41565,78 @@ function validate71( message: 'must be array', schema: schema56.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema56.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema56.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -40082,7 +41645,7 @@ function validate71( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -40093,23 +41656,23 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -40117,28 +41680,28 @@ function validate71( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema56.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -40146,17 +41709,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -40164,46 +41727,46 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema56.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -40218,17 +41781,17 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -40242,27 +41805,27 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -40276,25 +41839,25 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -40311,23 +41874,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -40349,23 +41912,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -40376,23 +41939,23 @@ function validate71( schema56.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema56.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -40400,24 +41963,24 @@ function validate71( message: 'must be array', schema: schema56.anyOf[2].allOf[1].properties.services.type, parentSchema: schema56.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -40428,30 +41991,31 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -40462,20 +42026,20 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -40483,17 +42047,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -40501,27 +42065,27 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.url.type, parentSchema: schema56.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -40529,25 +42093,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.name.type, parentSchema: schema56.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -40555,25 +42119,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.description.type, parentSchema: schema56.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -40581,24 +42145,24 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.type.type, parentSchema: schema56.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -40609,25 +42173,25 @@ function validate71( message: 'must be equal to one of the allowed values', schema: schema56.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema56.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -40635,39 +42199,39 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema56.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -40683,23 +42247,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -40715,17 +42279,17 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -40742,12 +42306,12 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -40756,7 +42320,7 @@ function validate71( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -40769,23 +42333,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -40794,43 +42358,43 @@ function validate71( schema: schema56.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema56.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -40846,23 +42410,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -40879,17 +42443,17 @@ function validate71( schema56.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -40906,12 +42470,12 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -40920,7 +42484,7 @@ function validate71( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -40933,23 +42497,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -40959,20 +42523,78 @@ function validate71( schema56.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema56.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema56.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -40981,7 +42603,7 @@ function validate71( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -40992,21 +42614,21 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -41017,17 +42639,17 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -41035,39 +42657,39 @@ function validate71( message: 'must be equal to constant', schema: 'group', parentSchema: schema56.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -41080,23 +42702,23 @@ function validate71( .required, parentSchema: schema56.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -41108,17 +42730,17 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -41132,12 +42754,12 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -41146,7 +42768,7 @@ function validate71( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -41158,23 +42780,23 @@ function validate71( .type, parentSchema: schema56.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -41182,24 +42804,24 @@ function validate71( message: 'must be array', schema: schema56.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema56.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -41210,22 +42832,22 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -41236,9 +42858,9 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate71.errors = vErrors; @@ -44767,8 +46389,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -44848,8 +46475,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -44950,8 +46582,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -45031,8 +46668,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -45085,7 +46727,8 @@ function validate73( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -45579,6 +47222,62 @@ function validate73( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema58.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -45587,7 +47286,7 @@ function validate73( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -45598,23 +47297,23 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -45622,28 +47321,28 @@ function validate73( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema58.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -45651,17 +47350,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -45669,42 +47368,42 @@ function validate73( message: 'must be string', schema: schema58.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema58.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -45716,17 +47415,17 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -45740,27 +47439,27 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -45774,25 +47473,25 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -45809,23 +47508,23 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -45846,23 +47545,23 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -45872,23 +47571,23 @@ function validate73( schema58.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema58.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -45896,24 +47595,24 @@ function validate73( message: 'must be array', schema: schema58.anyOf[0].allOf[1].properties.services.type, parentSchema: schema58.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -45924,30 +47623,31 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -45958,20 +47658,20 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -45979,17 +47679,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -45997,27 +47697,27 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.url.type, parentSchema: schema58.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -46025,25 +47725,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.name.type, parentSchema: schema58.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -46051,25 +47751,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.description.type, parentSchema: schema58.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -46077,24 +47777,24 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.type.type, parentSchema: schema58.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -46104,25 +47804,25 @@ function validate73( message: 'must be equal to one of the allowed values', schema: schema58.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema58.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -46130,39 +47830,39 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema58.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -46175,23 +47875,23 @@ function validate73( .required, parentSchema: schema58.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -46204,17 +47904,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -46228,12 +47928,12 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -46242,7 +47942,7 @@ function validate73( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -46254,23 +47954,23 @@ function validate73( .type, parentSchema: schema58.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -46278,40 +47978,40 @@ function validate73( message: 'must be array', schema: schema58.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema58.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -46324,23 +48024,23 @@ function validate73( .required, parentSchema: schema58.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -46353,17 +48053,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -46377,12 +48077,12 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -46391,7 +48091,7 @@ function validate73( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -46403,23 +48103,23 @@ function validate73( .type, parentSchema: schema58.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -46427,20 +48127,77 @@ function validate73( message: 'must be array', schema: schema58.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema58.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema58.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -46449,7 +48206,7 @@ function validate73( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -46460,23 +48217,23 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -46484,25 +48241,25 @@ function validate73( message: 'must be equal to constant', schema: 'device', parentSchema: schema58.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -46510,44 +48267,44 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema58.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46562,17 +48319,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46590,30 +48347,30 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46629,17 +48386,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46657,24 +48414,24 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -46687,23 +48444,23 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -46714,29 +48471,29 @@ function validate73( schema58.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema58.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -46745,17 +48502,17 @@ function validate73( schema: 'uri', parentSchema: schema58.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -46763,46 +48520,46 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema58.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -46817,17 +48574,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -46844,27 +48601,27 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -46878,25 +48635,25 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -46913,23 +48670,23 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -46951,23 +48708,23 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -46979,23 +48736,23 @@ function validate73( .type, parentSchema: schema58.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -47003,17 +48760,17 @@ function validate73( message: 'must be array', schema: schema58.anyOf[1].allOf[1].properties.services.type, parentSchema: schema58.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -47022,7 +48779,7 @@ function validate73( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -47033,30 +48790,31 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -47067,20 +48825,20 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -47088,17 +48846,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -47106,27 +48864,27 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.url.type, parentSchema: schema58.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -47134,25 +48892,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.name.type, parentSchema: schema58.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -47160,25 +48918,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.description.type, parentSchema: schema58.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -47186,24 +48944,24 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.type.type, parentSchema: schema58.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -47213,25 +48971,25 @@ function validate73( message: 'must be equal to one of the allowed values', schema: schema58.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema58.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -47239,39 +48997,39 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema58.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -47285,23 +49043,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -47314,17 +49072,17 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -47338,12 +49096,12 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -47352,7 +49110,7 @@ function validate73( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -47364,23 +49122,23 @@ function validate73( .type, parentSchema: schema58.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -47388,40 +49146,40 @@ function validate73( message: 'must be array', schema: schema58.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema58.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -47437,23 +49195,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -47469,17 +49227,17 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -47493,12 +49251,12 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -47507,7 +49265,7 @@ function validate73( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -47519,23 +49277,23 @@ function validate73( .type, parentSchema: schema58.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -47543,20 +49301,78 @@ function validate73( message: 'must be array', schema: schema58.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema58.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema58.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -47565,7 +49381,7 @@ function validate73( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -47576,23 +49392,23 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -47600,28 +49416,28 @@ function validate73( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema58.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -47629,17 +49445,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -47647,46 +49463,46 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema58.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -47701,17 +49517,17 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -47725,27 +49541,27 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -47759,25 +49575,25 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -47794,23 +49610,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -47832,23 +49648,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -47859,23 +49675,23 @@ function validate73( schema58.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema58.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -47883,24 +49699,24 @@ function validate73( message: 'must be array', schema: schema58.anyOf[2].allOf[1].properties.services.type, parentSchema: schema58.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -47911,30 +49727,31 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -47945,20 +49762,20 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -47966,17 +49783,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -47984,27 +49801,27 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.url.type, parentSchema: schema58.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -48012,25 +49829,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.name.type, parentSchema: schema58.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -48038,25 +49855,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.description.type, parentSchema: schema58.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -48064,24 +49881,24 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.type.type, parentSchema: schema58.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -48092,25 +49909,25 @@ function validate73( message: 'must be equal to one of the allowed values', schema: schema58.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema58.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -48118,39 +49935,39 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema58.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -48166,23 +49983,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -48198,17 +50015,17 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -48225,12 +50042,12 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -48239,7 +50056,7 @@ function validate73( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -48252,23 +50069,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -48277,43 +50094,43 @@ function validate73( schema: schema58.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema58.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -48329,23 +50146,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -48362,17 +50179,17 @@ function validate73( schema58.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -48389,12 +50206,12 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -48403,7 +50220,7 @@ function validate73( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -48416,23 +50233,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -48442,20 +50259,78 @@ function validate73( schema58.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema58.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema58.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -48464,7 +50339,7 @@ function validate73( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -48475,21 +50350,21 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -48500,17 +50375,17 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -48518,39 +50393,39 @@ function validate73( message: 'must be equal to constant', schema: 'group', parentSchema: schema58.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -48563,23 +50438,23 @@ function validate73( .required, parentSchema: schema58.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -48591,17 +50466,17 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -48615,12 +50490,12 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -48629,7 +50504,7 @@ function validate73( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -48641,23 +50516,23 @@ function validate73( .type, parentSchema: schema58.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -48665,24 +50540,24 @@ function validate73( message: 'must be array', schema: schema58.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema58.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -48693,22 +50568,22 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -48719,9 +50594,9 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate73.errors = vErrors; @@ -48794,8 +50669,13 @@ const schema59 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -48892,7 +50772,8 @@ function validate74( (data0.url === undefined && (missing1 = 'url')) || (data0.type === undefined && (missing1 = 'type')) || (data0.name === undefined && (missing1 = 'name')) || - (data0.isPublic === undefined && (missing1 = 'isPublic')) + (data0.isPublic === undefined && (missing1 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing1 = 'bookingEndpoint')) ) { validate74.errors = [ { @@ -49409,6 +51290,60 @@ function validate74( } else { var valid2 = true; } + if (valid2) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate74.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema59.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate74.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema59.properties.instance.allOf[0] + .properties.bookingEndpoint.type, + parentSchema: + schema59.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -49434,13 +51369,13 @@ function validate74( } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data0 && typeof data0 == 'object' && !Array.isArray(data0)) { if (data0.type !== undefined) { - let data12 = data0.type; - const _errs28 = errors; - if ('device' !== data12) { + let data13 = data0.type; + const _errs30 = errors; + if ('device' !== data13) { validate74.errors = [ { instancePath: instancePath + '/instance/type', @@ -49451,20 +51386,20 @@ function validate74( schema: 'device', parentSchema: schema59.properties.instance.allOf[1].properties.type, - data: data12, + data: data13, }, ]; return false; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data0.connected !== undefined) { - let data13 = data0.connected; - const _errs29 = errors; - if (typeof data13 !== 'boolean') { + let data14 = data0.connected; + const _errs31 = errors; + if (typeof data14 !== 'boolean') { validate74.errors = [ { instancePath: instancePath + '/instance/connected', @@ -49478,39 +51413,39 @@ function validate74( .type, parentSchema: schema59.properties.instance.allOf[1].properties.connected, - data: data13, + data: data14, }, ]; return false; } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data0.announcedAvailability !== undefined) { - let data14 = data0.announcedAvailability; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data14)) { + let data15 = data0.announcedAvailability; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data15)) { var valid8 = true; - const len2 = data14.length; + const len2 = data15.length; for (let i2 = 0; i2 < len2; i2++) { - let data15 = data14[i2]; - const _errs33 = errors; - if (errors === _errs33) { + let data16 = data15[i2]; + const _errs35 = errors; + if (errors === _errs35) { if ( - data15 && - typeof data15 == 'object' && - !Array.isArray(data15) + data16 && + typeof data16 == 'object' && + !Array.isArray(data16) ) { - if (data15.start !== undefined) { - let data16 = data15.start; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data16.start !== undefined) { + let data17 = data16.start; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate74.errors = [ { instancePath: @@ -49529,7 +51464,7 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; @@ -49555,25 +51490,25 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; } } } - var valid9 = _errs35 === errors; + var valid9 = _errs37 === errors; } else { var valid9 = true; } if (valid9) { - if (data15.end !== undefined) { - let data17 = data15.end; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats22.validate(data17)) { + if (data16.end !== undefined) { + let data18 = data16.end; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats26.validate(data18)) { validate74.errors = [ { instancePath: @@ -49594,7 +51529,7 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability .items.properties.end, - data: data17, + data: data18, }, ]; return false; @@ -49620,14 +51555,14 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.end, - data: data17, + data: data18, }, ]; return false; } } } - var valid9 = _errs37 === errors; + var valid9 = _errs39 === errors; } else { var valid9 = true; } @@ -49650,13 +51585,13 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .announcedAvailability.items, - data: data15, + data: data16, }, ]; return false; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } @@ -49677,24 +51612,24 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .announcedAvailability, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } if (valid7) { if (data0.experiment !== undefined) { - let data18 = data0.experiment; - const _errs39 = errors; - if (errors === _errs39) { - if (errors === _errs39) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { + let data19 = data0.experiment; + const _errs41 = errors; + if (errors === _errs41) { + if (errors === _errs41) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { validate74.errors = [ { instancePath: instancePath + '/instance/experiment', @@ -49707,7 +51642,7 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; @@ -49727,41 +51662,41 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; } } } - var valid7 = _errs39 === errors; + var valid7 = _errs41 === errors; } else { var valid7 = true; } if (valid7) { if (data0.services !== undefined) { - let data19 = data0.services; - const _errs41 = errors; - if (errors === _errs41) { - if (Array.isArray(data19)) { + let data20 = data0.services; + const _errs43 = errors; + if (errors === _errs43) { + if (Array.isArray(data20)) { var valid10 = true; - const len3 = data19.length; + const len3 = data20.length; for (let i3 = 0; i3 < len3; i3++) { - let data20 = data19[i3]; - const _errs43 = errors; - if (errors === _errs43) { + let data21 = data20[i3]; + const _errs45 = errors; + if (errors === _errs45) { if ( - data20 && - typeof data20 == 'object' && - !Array.isArray(data20) + data21 && + typeof data21 == 'object' && + !Array.isArray(data21) ) { - if (data20.serviceType !== undefined) { - let data21 = data20.serviceType; - const _errs46 = errors; - if (errors === _errs46) { - if (errors === _errs46) { - if (typeof data21 === 'string') { - if (!formats0(data21)) { + if (data21.serviceType !== undefined) { + let data22 = data21.serviceType; + const _errs48 = errors; + if (errors === _errs48) { + if (errors === _errs48) { + if (typeof data22 === 'string') { + if (!formats0(data22)) { validate74.errors = [ { instancePath: @@ -49780,7 +51715,7 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items .properties.serviceType, - data: data21, + data: data22, }, ]; return false; @@ -49806,22 +51741,22 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data21, + data: data22, }, ]; return false; } } } - var valid11 = _errs46 === errors; + var valid11 = _errs48 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceId !== undefined) { - let data22 = data20.serviceId; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data21.serviceId !== undefined) { + let data23 = data21.serviceId; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate74.errors = [ { instancePath: @@ -49842,20 +51777,20 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceId, - data: data22, + data: data23, }, ]; return false; } - var valid11 = _errs48 === errors; + var valid11 = _errs50 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceDirection !== undefined) { - let data23 = data20.serviceDirection; - const _errs50 = errors; - if (typeof data23 !== 'string') { + if (data21.serviceDirection !== undefined) { + let data24 = data21.serviceDirection; + const _errs52 = errors; + if (typeof data24 !== 'string') { validate74.errors = [ { instancePath: @@ -49876,16 +51811,16 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } if ( !( - data23 === 'consumer' || - data23 === 'producer' || - data23 === 'prosumer' + data24 === 'consumer' || + data24 === 'producer' || + data24 === 'prosumer' ) ) { validate74.errors = [ @@ -49914,12 +51849,12 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } - var valid11 = _errs50 === errors; + var valid11 = _errs52 === errors; } else { var valid11 = true; } @@ -49941,13 +51876,13 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .services.items, - data: data20, + data: data21, }, ]; return false; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (!valid10) { break; } @@ -49967,13 +51902,13 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .services, - data: data19, + data: data20, }, ]; return false; } } - var valid7 = _errs41 === errors; + var valid7 = _errs43 === errors; } else { var valid7 = true; } @@ -49997,7 +51932,7 @@ function validate74( return false; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var valid0 = _errs1 === errors; } else { @@ -50005,9 +51940,9 @@ function validate74( } if (valid0) { if (data.deviceToken !== undefined) { - let data24 = data.deviceToken; - const _errs52 = errors; - if (typeof data24 !== 'string') { + let data25 = data.deviceToken; + const _errs54 = errors; + if (typeof data25 !== 'string') { validate74.errors = [ { instancePath: instancePath + '/deviceToken', @@ -50017,12 +51952,12 @@ function validate74( message: 'must be string', schema: schema59.properties.deviceToken.type, parentSchema: schema59.properties.deviceToken, - data: data24, + data: data25, }, ]; return false; } - var valid0 = _errs52 === errors; + var valid0 = _errs54 === errors; } else { var valid0 = true; } @@ -50088,7 +52023,7 @@ function validate75( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate75.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -50131,7 +52066,7 @@ function validate75( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate75.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -50294,7 +52229,7 @@ function validate76( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate76.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -50337,7 +52272,7 @@ function validate76( if (errors === _errs7) { if (errors === _errs7) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate76.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -50505,7 +52440,7 @@ function validate76( if (errors === _errs17) { if (errors === _errs17) { if (typeof data6 === 'string') { - if (!formats22.validate(data6)) { + if (!formats26.validate(data6)) { validate76.errors = [ { instancePath: @@ -50695,7 +52630,7 @@ function validate77( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate77.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -50738,7 +52673,7 @@ function validate77( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate77.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -57414,8 +59349,13 @@ const schema77 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, 'x-standalone': true, 'x-name': 'DeviceOverviewRequest', @@ -57434,7 +59374,8 @@ function validate92( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate92.errors = [ { @@ -57814,6 +59755,50 @@ function validate92( } else { var valid0 = true; } + if (valid0) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs21 = errors; + if (errors === _errs21) { + if (errors === _errs21) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate92.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: schema77.properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate92.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema77.properties.bookingEndpoint.type, + parentSchema: schema77.properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid0 = _errs21 === errors; + } else { + var valid0 = true; + } + } } } } @@ -57888,8 +59873,13 @@ const schema78 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, 'x-standalone': true, 'x-name': 'DeviceOverviewResponse', @@ -57909,7 +59899,8 @@ function validate93( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate93.errors = [ { @@ -58333,6 +60324,50 @@ function validate93( } else { var valid0 = true; } + if (valid0) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs23 = errors; + if (errors === _errs23) { + if (errors === _errs23) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate93.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: schema78.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate93.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema78.properties.bookingEndpoint.type, + parentSchema: schema78.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid0 = _errs23 === errors; + } else { + var valid0 = true; + } + } } } } @@ -58699,8 +60734,13 @@ const schema81 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -58746,7 +60786,8 @@ function validate96( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate96.errors = [ { @@ -59131,6 +61172,53 @@ function validate96( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate96.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema81.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate96.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema81.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema81.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -59155,13 +61243,13 @@ function validate96( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('cloud instantiable' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('cloud instantiable' !== data11) { validate96.errors = [ { instancePath: instancePath + '/type', @@ -59171,23 +61259,23 @@ function validate96( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema81.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs25 = errors; - if (errors === _errs25) { - if (errors === _errs25) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { + let data12 = data.instantiateUrl; + const _errs27 = errors; + if (errors === _errs27) { + if (errors === _errs27) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { validate96.errors = [ { instancePath: instancePath + '/instantiateUrl', @@ -59197,7 +61285,7 @@ function validate96( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema81.allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }, ]; return false; @@ -59212,37 +61300,37 @@ function validate96( message: 'must be string', schema: schema81.allOf[1].properties.instantiateUrl.type, parentSchema: schema81.allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }, ]; return false; } } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data12 = data.services; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs32 = errors; - if (errors === _errs32) { - if (errors === _errs32) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs34 = errors; + if (errors === _errs34) { + if (errors === _errs34) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate96.errors = [ { instancePath: @@ -59256,7 +61344,7 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; @@ -59277,22 +61365,22 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; } } } - var valid8 = _errs32 === errors; + var valid8 = _errs34 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs34 = errors; - if (typeof data15 !== 'string') { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs36 = errors; + if (typeof data16 !== 'string') { validate96.errors = [ { instancePath: @@ -59308,20 +61396,20 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items.properties .serviceId, - data: data15, + data: data16, }, ]; return false; } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate96.errors = [ { instancePath: @@ -59340,16 +61428,16 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { validate96.errors = [ @@ -59374,12 +61462,12 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } @@ -59395,13 +61483,13 @@ function validate96( message: 'must be object', schema: schema81.allOf[1].properties.services.items.type, parentSchema: schema81.allOf[1].properties.services.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -59416,13 +61504,13 @@ function validate96( message: 'must be array', schema: schema81.allOf[1].properties.services.type, parentSchema: schema81.allOf[1].properties.services, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -59444,7 +61532,7 @@ function validate96( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate96.errors = vErrors; return errors === 0; @@ -59501,8 +61589,13 @@ const schema82 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -59549,7 +61642,8 @@ function validate97( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate97.errors = [ { @@ -59980,6 +62074,54 @@ function validate97( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate97.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema82.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate97.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema82.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema82.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -60005,13 +62147,13 @@ function validate97( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data12) { validate97.errors = [ { instancePath: instancePath + '/type', @@ -60021,23 +62163,23 @@ function validate97( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema82.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate97.errors = [ { instancePath: instancePath + '/instantiateUrl', @@ -60047,7 +62189,7 @@ function validate97( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema82.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; @@ -60062,37 +62204,37 @@ function validate97( message: 'must be string', schema: schema82.allOf[1].properties.instantiateUrl.type, parentSchema: schema82.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate97.errors = [ { instancePath: @@ -60106,7 +62248,7 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -60127,22 +62269,22 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate97.errors = [ { instancePath: @@ -60158,20 +62300,20 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate97.errors = [ { instancePath: @@ -60190,16 +62332,16 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate97.errors = [ @@ -60224,12 +62366,12 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -60245,13 +62387,13 @@ function validate97( message: 'must be object', schema: schema82.allOf[1].properties.services.items.type, parentSchema: schema82.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -60266,13 +62408,13 @@ function validate97( message: 'must be array', schema: schema82.allOf[1].properties.services.type, parentSchema: schema82.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -60294,7 +62436,7 @@ function validate97( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate97.errors = vErrors; return errors === 0; @@ -60326,7 +62468,7 @@ function validate98( if (errors === _errs1) { if (errors === _errs1) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate98.errors = [ { instancePath: instancePath + '/start', @@ -60369,7 +62511,7 @@ function validate98( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate98.errors = [ { instancePath: instancePath + '/end', @@ -60452,7 +62594,7 @@ function validate99( if (errors === _errs1) { if (errors === _errs1) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate99.errors = [ { instancePath: instancePath + '/start', @@ -60495,7 +62637,7 @@ function validate99( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate99.errors = [ { instancePath: instancePath + '/end', @@ -60591,7 +62733,7 @@ function validate100( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate100.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -60634,7 +62776,7 @@ function validate100( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate100.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -60751,7 +62893,7 @@ function validate101( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate101.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -60794,7 +62936,7 @@ function validate101( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate101.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -60917,8 +63059,13 @@ const schema87 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -60964,7 +63111,8 @@ function validate102( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate102.errors = [ { @@ -61349,6 +63497,53 @@ function validate102( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate102.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema87.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate102.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema87.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema87.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -61373,13 +63568,13 @@ function validate102( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('device' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('device' !== data11) { validate102.errors = [ { instancePath: instancePath + '/type', @@ -61389,23 +63584,23 @@ function validate102( message: 'must be equal to constant', schema: 'device', parentSchema: schema87.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.experiment !== undefined) { - let data11 = data.experiment; - const _errs25 = errors; - if (errors === _errs25) { - if (errors === _errs25) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { + let data12 = data.experiment; + const _errs27 = errors; + if (errors === _errs27) { + if (errors === _errs27) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { validate102.errors = [ { instancePath: instancePath + '/experiment', @@ -61415,7 +63610,7 @@ function validate102( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema87.allOf[1].properties.experiment, - data: data11, + data: data12, }, ]; return false; @@ -61430,37 +63625,37 @@ function validate102( message: 'must be string', schema: schema87.allOf[1].properties.experiment.type, parentSchema: schema87.allOf[1].properties.experiment, - data: data11, + data: data12, }, ]; return false; } } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data12 = data.services; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs32 = errors; - if (errors === _errs32) { - if (errors === _errs32) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs34 = errors; + if (errors === _errs34) { + if (errors === _errs34) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate102.errors = [ { instancePath: @@ -61474,7 +63669,7 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; @@ -61495,22 +63690,22 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; } } } - var valid8 = _errs32 === errors; + var valid8 = _errs34 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs34 = errors; - if (typeof data15 !== 'string') { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs36 = errors; + if (typeof data16 !== 'string') { validate102.errors = [ { instancePath: @@ -61526,20 +63721,20 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items.properties .serviceId, - data: data15, + data: data16, }, ]; return false; } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate102.errors = [ { instancePath: @@ -61558,16 +63753,16 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { validate102.errors = [ @@ -61592,12 +63787,12 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } @@ -61613,13 +63808,13 @@ function validate102( message: 'must be object', schema: schema87.allOf[1].properties.services.items.type, parentSchema: schema87.allOf[1].properties.services.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -61634,13 +63829,13 @@ function validate102( message: 'must be array', schema: schema87.allOf[1].properties.services.type, parentSchema: schema87.allOf[1].properties.services, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -61662,7 +63857,7 @@ function validate102( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate102.errors = vErrors; return errors === 0; @@ -61719,8 +63914,13 @@ const schema88 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -61788,7 +63988,8 @@ function validate103( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate103.errors = [ { @@ -62219,6 +64420,54 @@ function validate103( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate103.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema88.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate103.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema88.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema88.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -62244,13 +64493,13 @@ function validate103( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('device' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('device' !== data12) { validate103.errors = [ { instancePath: instancePath + '/type', @@ -62260,20 +64509,20 @@ function validate103( message: 'must be equal to constant', schema: 'device', parentSchema: schema88.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.connected !== undefined) { - let data12 = data.connected; - const _errs27 = errors; - if (typeof data12 !== 'boolean') { + let data13 = data.connected; + const _errs29 = errors; + if (typeof data13 !== 'boolean') { validate103.errors = [ { instancePath: instancePath + '/connected', @@ -62283,35 +64532,35 @@ function validate103( message: 'must be boolean', schema: schema88.allOf[1].properties.connected.type, parentSchema: schema88.allOf[1].properties.connected, - data: data12, + data: data13, }, ]; return false; } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.announcedAvailability !== undefined) { - let data13 = data.announcedAvailability; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.announcedAvailability; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.start !== undefined) { - let data15 = data14.start; - const _errs33 = errors; - if (errors === _errs33) { - if (errors === _errs33) { - if (typeof data15 === 'string') { - if (!formats22.validate(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.start !== undefined) { + let data16 = data15.start; + const _errs35 = errors; + if (errors === _errs35) { + if (errors === _errs35) { + if (typeof data16 === 'string') { + if (!formats26.validate(data16)) { validate103.errors = [ { instancePath: @@ -62328,7 +64577,7 @@ function validate103( parentSchema: schema88.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; @@ -62352,25 +64601,25 @@ function validate103( parentSchema: schema88.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.end !== undefined) { - let data16 = data14.end; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data15.end !== undefined) { + let data17 = data15.end; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate103.errors = [ { instancePath: @@ -62388,7 +64637,7 @@ function validate103( parentSchema: schema88.allOf[1].properties .announcedAvailability.items.properties.end, - data: data16, + data: data17, }, ]; return false; @@ -62412,14 +64661,14 @@ function validate103( parentSchema: schema88.allOf[1].properties.announcedAvailability .items.properties.end, - data: data16, + data: data17, }, ]; return false; } } } - var valid8 = _errs35 === errors; + var valid8 = _errs37 === errors; } else { var valid8 = true; } @@ -62438,13 +64687,13 @@ function validate103( .type, parentSchema: schema88.allOf[1].properties.announcedAvailability.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -62459,24 +64708,24 @@ function validate103( message: 'must be array', schema: schema88.allOf[1].properties.announcedAvailability.type, parentSchema: schema88.allOf[1].properties.announcedAvailability, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } if (valid6) { if (data.experiment !== undefined) { - let data17 = data.experiment; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { + let data18 = data.experiment; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { validate103.errors = [ { instancePath: instancePath + '/experiment', @@ -62486,7 +64735,7 @@ function validate103( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema88.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; @@ -62501,41 +64750,41 @@ function validate103( message: 'must be string', schema: schema88.allOf[1].properties.experiment.type, parentSchema: schema88.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; } } } - var valid6 = _errs37 === errors; + var valid6 = _errs39 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data18 = data.services; - const _errs39 = errors; - if (errors === _errs39) { - if (Array.isArray(data18)) { + let data19 = data.services; + const _errs41 = errors; + if (errors === _errs41) { + if (Array.isArray(data19)) { var valid9 = true; - const len3 = data18.length; + const len3 = data19.length; for (let i3 = 0; i3 < len3; i3++) { - let data19 = data18[i3]; - const _errs41 = errors; - if (errors === _errs41) { + let data20 = data19[i3]; + const _errs43 = errors; + if (errors === _errs43) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs44 = errors; - if (errors === _errs44) { - if (errors === _errs44) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs46 = errors; + if (errors === _errs46) { + if (errors === _errs46) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { validate103.errors = [ { instancePath: @@ -62552,7 +64801,7 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; @@ -62576,22 +64825,22 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; } } } - var valid10 = _errs44 === errors; + var valid10 = _errs46 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs46 = errors; - if (typeof data21 !== 'string') { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs48 = errors; + if (typeof data22 !== 'string') { validate103.errors = [ { instancePath: @@ -62607,20 +64856,20 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceId, - data: data21, + data: data22, }, ]; return false; } - var valid10 = _errs46 === errors; + var valid10 = _errs48 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate103.errors = [ { instancePath: @@ -62639,16 +64888,16 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { validate103.errors = [ @@ -62674,12 +64923,12 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } - var valid10 = _errs48 === errors; + var valid10 = _errs50 === errors; } else { var valid10 = true; } @@ -62695,13 +64944,13 @@ function validate103( message: 'must be object', schema: schema88.allOf[1].properties.services.items.type, parentSchema: schema88.allOf[1].properties.services.items, - data: data19, + data: data20, }, ]; return false; } } - var valid9 = _errs41 === errors; + var valid9 = _errs43 === errors; if (!valid9) { break; } @@ -62716,13 +64965,13 @@ function validate103( message: 'must be array', schema: schema88.allOf[1].properties.services.type, parentSchema: schema88.allOf[1].properties.services, - data: data18, + data: data19, }, ]; return false; } } - var valid6 = _errs39 === errors; + var valid6 = _errs41 === errors; } else { var valid6 = true; } @@ -62746,7 +64995,7 @@ function validate103( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate103.errors = vErrors; return errors === 0; @@ -62797,8 +65046,13 @@ const schema89 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -62844,7 +65098,8 @@ function validate104( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate104.errors = [ { @@ -63229,6 +65484,53 @@ function validate104( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate104.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema89.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate104.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema89.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema89.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -63253,13 +65555,13 @@ function validate104( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('edge instantiable' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('edge instantiable' !== data11) { validate104.errors = [ { instancePath: instancePath + '/type', @@ -63269,23 +65571,23 @@ function validate104( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema89.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.codeUrl !== undefined) { - let data11 = data.codeUrl; - const _errs25 = errors; - if (errors === _errs25) { - if (errors === _errs25) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { + let data12 = data.codeUrl; + const _errs27 = errors; + if (errors === _errs27) { + if (errors === _errs27) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { validate104.errors = [ { instancePath: instancePath + '/codeUrl', @@ -63295,7 +65597,7 @@ function validate104( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema89.allOf[1].properties.codeUrl, - data: data11, + data: data12, }, ]; return false; @@ -63310,37 +65612,37 @@ function validate104( message: 'must be string', schema: schema89.allOf[1].properties.codeUrl.type, parentSchema: schema89.allOf[1].properties.codeUrl, - data: data11, + data: data12, }, ]; return false; } } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data12 = data.services; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs32 = errors; - if (errors === _errs32) { - if (errors === _errs32) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs34 = errors; + if (errors === _errs34) { + if (errors === _errs34) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate104.errors = [ { instancePath: @@ -63354,7 +65656,7 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; @@ -63375,22 +65677,22 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; } } } - var valid8 = _errs32 === errors; + var valid8 = _errs34 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs34 = errors; - if (typeof data15 !== 'string') { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs36 = errors; + if (typeof data16 !== 'string') { validate104.errors = [ { instancePath: @@ -63406,20 +65708,20 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items.properties .serviceId, - data: data15, + data: data16, }, ]; return false; } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate104.errors = [ { instancePath: @@ -63438,16 +65740,16 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { validate104.errors = [ @@ -63472,12 +65774,12 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } @@ -63493,13 +65795,13 @@ function validate104( message: 'must be object', schema: schema89.allOf[1].properties.services.items.type, parentSchema: schema89.allOf[1].properties.services.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -63514,13 +65816,13 @@ function validate104( message: 'must be array', schema: schema89.allOf[1].properties.services.type, parentSchema: schema89.allOf[1].properties.services, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -63542,7 +65844,7 @@ function validate104( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate104.errors = vErrors; return errors === 0; @@ -63599,8 +65901,13 @@ const schema90 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -63647,7 +65954,8 @@ function validate105( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate105.errors = [ { @@ -64078,6 +66386,54 @@ function validate105( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate105.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema90.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate105.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema90.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema90.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -64103,13 +66459,13 @@ function validate105( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('edge instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('edge instantiable' !== data12) { validate105.errors = [ { instancePath: instancePath + '/type', @@ -64119,23 +66475,23 @@ function validate105( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema90.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.codeUrl !== undefined) { - let data12 = data.codeUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.codeUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate105.errors = [ { instancePath: instancePath + '/codeUrl', @@ -64145,7 +66501,7 @@ function validate105( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema90.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; @@ -64160,37 +66516,37 @@ function validate105( message: 'must be string', schema: schema90.allOf[1].properties.codeUrl.type, parentSchema: schema90.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate105.errors = [ { instancePath: @@ -64204,7 +66560,7 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -64225,22 +66581,22 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate105.errors = [ { instancePath: @@ -64256,20 +66612,20 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate105.errors = [ { instancePath: @@ -64288,16 +66644,16 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate105.errors = [ @@ -64322,12 +66678,12 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -64343,13 +66699,13 @@ function validate105( message: 'must be object', schema: schema90.allOf[1].properties.services.items.type, parentSchema: schema90.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -64364,13 +66720,13 @@ function validate105( message: 'must be array', schema: schema90.allOf[1].properties.services.type, parentSchema: schema90.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -64392,7 +66748,7 @@ function validate105( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate105.errors = vErrors; return errors === 0; @@ -64635,8 +66991,13 @@ const schema93 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -64677,7 +67038,8 @@ function validate108( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate108.errors = [ { @@ -65062,6 +67424,53 @@ function validate108( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate108.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema93.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate108.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema93.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema93.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -65086,8 +67495,8 @@ function validate108( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if (data.devices === undefined && (missing3 = 'devices')) { @@ -65106,9 +67515,9 @@ function validate108( return false; } else { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('group' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('group' !== data11) { validate108.errors = [ { instancePath: instancePath + '/type', @@ -65118,30 +67527,30 @@ function validate108( message: 'must be equal to constant', schema: 'group', parentSchema: schema93.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.devices !== undefined) { - let data11 = data.devices; - const _errs25 = errors; - if (errors === _errs25) { - if (Array.isArray(data11)) { + let data12 = data.devices; + const _errs27 = errors; + if (errors === _errs27) { + if (Array.isArray(data12)) { var valid7 = true; - const len2 = data11.length; + const len2 = data12.length; for (let i2 = 0; i2 < len2; i2++) { - let data12 = data11[i2]; - const _errs27 = errors; - if (errors === _errs27) { - if (data12 && typeof data12 == 'object' && !Array.isArray(data12)) { + let data13 = data12[i2]; + const _errs29 = errors; + if (errors === _errs29) { + if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { let missing4; - if (data12.url === undefined && (missing4 = 'url')) { + if (data13.url === undefined && (missing4 = 'url')) { validate108.errors = [ { instancePath: instancePath + '/devices/' + i2, @@ -65151,18 +67560,18 @@ function validate108( message: "must have required property '" + missing4 + "'", schema: schema93.allOf[1].properties.devices.items.required, parentSchema: schema93.allOf[1].properties.devices.items, - data: data12, + data: data13, }, ]; return false; } else { - if (data12.url !== undefined) { - let data13 = data12.url; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data13 === 'string') { - if (!formats0(data13)) { + if (data13.url !== undefined) { + let data14 = data13.url; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data14 === 'string') { + if (!formats0(data14)) { validate108.errors = [ { instancePath: @@ -65176,7 +67585,7 @@ function validate108( parentSchema: schema93.allOf[1].properties.devices.items .properties.url, - data: data13, + data: data14, }, ]; return false; @@ -65197,7 +67606,7 @@ function validate108( parentSchema: schema93.allOf[1].properties.devices.items .properties.url, - data: data13, + data: data14, }, ]; return false; @@ -65216,13 +67625,13 @@ function validate108( message: 'must be object', schema: schema93.allOf[1].properties.devices.items.type, parentSchema: schema93.allOf[1].properties.devices.items, - data: data12, + data: data13, }, ]; return false; } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; if (!valid7) { break; } @@ -65237,13 +67646,13 @@ function validate108( message: 'must be array', schema: schema93.allOf[1].properties.devices.type, parentSchema: schema93.allOf[1].properties.devices, - data: data11, + data: data12, }, ]; return false; } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } @@ -65265,7 +67674,7 @@ function validate108( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate108.errors = vErrors; return errors === 0; @@ -65322,8 +67731,13 @@ const schema94 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -65365,7 +67779,8 @@ function validate109( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate109.errors = [ { @@ -65796,6 +68211,54 @@ function validate109( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate109.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema94.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate109.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema94.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema94.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -65821,8 +68284,8 @@ function validate109( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if (data.devices === undefined && (missing3 = 'devices')) { @@ -65841,9 +68304,9 @@ function validate109( return false; } else { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('group' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('group' !== data12) { validate109.errors = [ { instancePath: instancePath + '/type', @@ -65853,30 +68316,30 @@ function validate109( message: 'must be equal to constant', schema: 'group', parentSchema: schema94.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.devices !== undefined) { - let data12 = data.devices; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.devices; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { let missing4; - if (data13.url === undefined && (missing4 = 'url')) { + if (data14.url === undefined && (missing4 = 'url')) { validate109.errors = [ { instancePath: instancePath + '/devices/' + i2, @@ -65886,18 +68349,18 @@ function validate109( message: "must have required property '" + missing4 + "'", schema: schema94.allOf[1].properties.devices.items.required, parentSchema: schema94.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } else { - if (data13.url !== undefined) { - let data14 = data13.url; - const _errs31 = errors; - if (errors === _errs31) { - if (errors === _errs31) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + if (data14.url !== undefined) { + let data15 = data14.url; + const _errs33 = errors; + if (errors === _errs33) { + if (errors === _errs33) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate109.errors = [ { instancePath: @@ -65911,7 +68374,7 @@ function validate109( parentSchema: schema94.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -65932,7 +68395,7 @@ function validate109( parentSchema: schema94.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -65951,13 +68414,13 @@ function validate109( message: 'must be object', schema: schema94.allOf[1].properties.devices.items.type, parentSchema: schema94.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -65972,13 +68435,13 @@ function validate109( message: 'must be array', schema: schema94.allOf[1].properties.devices.type, parentSchema: schema94.allOf[1].properties.devices, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -66000,7 +68463,7 @@ function validate109( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate109.errors = vErrors; return errors === 0; @@ -66054,8 +68517,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66129,8 +68597,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66204,8 +68677,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66279,8 +68757,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66331,7 +68814,8 @@ function validate110( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -66773,6 +69257,62 @@ function validate110( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema95.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -66780,7 +69320,7 @@ function validate110( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -66791,23 +69331,23 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -66815,28 +69355,28 @@ function validate110( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema95.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -66844,17 +69384,17 @@ function validate110( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema95.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -66862,42 +69402,42 @@ function validate110( message: 'must be string', schema: schema95.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema95.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -66909,17 +69449,17 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -66933,27 +69473,27 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -66967,25 +69507,25 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -67002,23 +69542,23 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -67039,23 +69579,23 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -67065,23 +69605,23 @@ function validate110( schema95.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema95.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -67089,24 +69629,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[0].allOf[1].properties.services.type, parentSchema: schema95.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -67117,29 +69657,30 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -67150,17 +69691,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -67168,25 +69709,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[0].properties.name.type, parentSchema: schema95.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -67194,25 +69735,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[0].properties.description.type, parentSchema: schema95.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -67220,24 +69761,24 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[0].properties.type.type, parentSchema: schema95.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -67247,25 +69788,25 @@ function validate110( message: 'must be equal to one of the allowed values', schema: schema95.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema95.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -67273,39 +69814,39 @@ function validate110( message: 'must be boolean', schema: schema95.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema95.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -67318,23 +69859,23 @@ function validate110( .required, parentSchema: schema95.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -67346,17 +69887,17 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -67370,12 +69911,12 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -67384,7 +69925,7 @@ function validate110( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -67395,23 +69936,23 @@ function validate110( schema95.anyOf[1].allOf[0].properties.viewer.items.type, parentSchema: schema95.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -67419,40 +69960,40 @@ function validate110( message: 'must be array', schema: schema95.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema95.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -67465,23 +70006,23 @@ function validate110( .required, parentSchema: schema95.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -67494,17 +70035,17 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -67518,12 +70059,12 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -67532,7 +70073,7 @@ function validate110( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -67544,23 +70085,23 @@ function validate110( .type, parentSchema: schema95.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -67568,20 +70109,76 @@ function validate110( message: 'must be array', schema: schema95.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema95.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema95.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -67589,7 +70186,7 @@ function validate110( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -67600,23 +70197,23 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -67624,28 +70221,28 @@ function validate110( message: 'must be equal to constant', schema: 'device', parentSchema: schema95.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -67653,17 +70250,17 @@ function validate110( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema95.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -67671,46 +70268,46 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema95.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -67722,17 +70319,17 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -67746,27 +70343,27 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -67780,25 +70377,25 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -67815,23 +70412,23 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -67852,23 +70449,23 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -67879,23 +70476,23 @@ function validate110( schema95.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema95.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -67903,24 +70500,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[1].allOf[1].properties.services.type, parentSchema: schema95.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -67931,29 +70528,30 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -67964,17 +70562,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -67982,25 +70580,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[0].properties.name.type, parentSchema: schema95.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -68008,25 +70606,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[0].properties.description.type, parentSchema: schema95.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -68034,24 +70632,24 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[0].properties.type.type, parentSchema: schema95.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -68061,25 +70659,25 @@ function validate110( message: 'must be equal to one of the allowed values', schema: schema95.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema95.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -68087,39 +70685,39 @@ function validate110( message: 'must be boolean', schema: schema95.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema95.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -68132,23 +70730,23 @@ function validate110( .required, parentSchema: schema95.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -68161,17 +70759,17 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -68185,12 +70783,12 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties.viewer .items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -68199,7 +70797,7 @@ function validate110( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -68211,23 +70809,23 @@ function validate110( .type, parentSchema: schema95.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -68235,40 +70833,40 @@ function validate110( message: 'must be array', schema: schema95.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema95.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -68281,23 +70879,23 @@ function validate110( .required, parentSchema: schema95.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -68310,17 +70908,17 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -68334,12 +70932,12 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -68348,7 +70946,7 @@ function validate110( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -68360,23 +70958,23 @@ function validate110( .type, parentSchema: schema95.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -68384,20 +70982,77 @@ function validate110( message: 'must be array', schema: schema95.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema95.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema95.anyOf[2].allOf[0].properties.bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -68405,7 +71060,7 @@ function validate110( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -68416,23 +71071,23 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -68440,28 +71095,28 @@ function validate110( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema95.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -68469,17 +71124,17 @@ function validate110( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema95.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -68487,46 +71142,46 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema95.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -68541,17 +71196,17 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -68565,27 +71220,27 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -68599,25 +71254,25 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -68634,23 +71289,23 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -68672,23 +71327,23 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -68699,23 +71354,23 @@ function validate110( schema95.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema95.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -68723,24 +71378,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[2].allOf[1].properties.services.type, parentSchema: schema95.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -68751,29 +71406,30 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -68784,17 +71440,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -68802,25 +71458,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[3].allOf[0].properties.name.type, parentSchema: schema95.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -68828,25 +71484,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[3].allOf[0].properties.description.type, parentSchema: schema95.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -68854,24 +71510,24 @@ function validate110( message: 'must be string', schema: schema95.anyOf[3].allOf[0].properties.type.type, parentSchema: schema95.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -68881,25 +71537,25 @@ function validate110( message: 'must be equal to one of the allowed values', schema: schema95.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema95.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -68907,39 +71563,39 @@ function validate110( message: 'must be boolean', schema: schema95.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema95.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -68953,23 +71609,23 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -68982,17 +71638,17 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -69006,12 +71662,12 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -69020,7 +71676,7 @@ function validate110( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -69032,23 +71688,23 @@ function validate110( .type, parentSchema: schema95.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -69056,40 +71712,40 @@ function validate110( message: 'must be array', schema: schema95.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema95.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -69105,23 +71761,23 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -69137,17 +71793,17 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -69161,12 +71817,12 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -69175,7 +71831,7 @@ function validate110( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -69187,23 +71843,23 @@ function validate110( .type, parentSchema: schema95.anyOf[3].allOf[0].properties.owner.items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -69211,20 +71867,78 @@ function validate110( message: 'must be array', schema: schema95.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema95.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema95.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -69232,7 +71946,7 @@ function validate110( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -69243,21 +71957,21 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -69268,17 +71982,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -69286,39 +72000,39 @@ function validate110( message: 'must be equal to constant', schema: 'group', parentSchema: schema95.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -69331,23 +72045,23 @@ function validate110( .required, parentSchema: schema95.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -69359,17 +72073,17 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -69383,12 +72097,12 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -69397,7 +72111,7 @@ function validate110( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -69409,23 +72123,23 @@ function validate110( .type, parentSchema: schema95.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -69433,24 +72147,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema95.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -69461,22 +72175,22 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -69487,9 +72201,9 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate110.errors = vErrors; @@ -69562,8 +72276,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69643,8 +72362,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69745,8 +72469,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69826,8 +72555,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69879,7 +72613,8 @@ function validate111( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -70373,6 +73108,62 @@ function validate111( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema96.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -70381,7 +73172,7 @@ function validate111( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -70392,23 +73183,23 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -70416,28 +73207,28 @@ function validate111( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema96.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -70445,17 +73236,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -70463,42 +73254,42 @@ function validate111( message: 'must be string', schema: schema96.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema96.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -70510,17 +73301,17 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -70534,27 +73325,27 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -70568,25 +73359,25 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -70603,23 +73394,23 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -70640,23 +73431,23 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -70666,23 +73457,23 @@ function validate111( schema96.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema96.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -70690,24 +73481,24 @@ function validate111( message: 'must be array', schema: schema96.anyOf[0].allOf[1].properties.services.type, parentSchema: schema96.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -70718,30 +73509,31 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -70752,20 +73544,20 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -70773,17 +73565,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -70791,27 +73583,27 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.url.type, parentSchema: schema96.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -70819,25 +73611,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.name.type, parentSchema: schema96.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -70845,25 +73637,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.description.type, parentSchema: schema96.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -70871,24 +73663,24 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.type.type, parentSchema: schema96.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -70898,25 +73690,25 @@ function validate111( message: 'must be equal to one of the allowed values', schema: schema96.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema96.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -70924,39 +73716,39 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema96.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -70969,23 +73761,23 @@ function validate111( .required, parentSchema: schema96.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -70998,17 +73790,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -71022,12 +73814,12 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -71036,7 +73828,7 @@ function validate111( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -71048,23 +73840,23 @@ function validate111( .type, parentSchema: schema96.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -71072,40 +73864,40 @@ function validate111( message: 'must be array', schema: schema96.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema96.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -71118,23 +73910,23 @@ function validate111( .required, parentSchema: schema96.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -71147,17 +73939,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -71171,12 +73963,12 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -71185,7 +73977,7 @@ function validate111( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -71197,23 +73989,23 @@ function validate111( .type, parentSchema: schema96.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -71221,20 +74013,77 @@ function validate111( message: 'must be array', schema: schema96.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema96.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema96.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -71243,7 +74092,7 @@ function validate111( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -71254,23 +74103,23 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -71278,25 +74127,25 @@ function validate111( message: 'must be equal to constant', schema: 'device', parentSchema: schema96.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -71304,44 +74153,44 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema96.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71356,17 +74205,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71384,30 +74233,30 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71423,17 +74272,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71451,24 +74300,24 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -71481,23 +74330,23 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -71508,29 +74357,29 @@ function validate111( schema96.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema96.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -71539,17 +74388,17 @@ function validate111( schema: 'uri', parentSchema: schema96.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -71557,46 +74406,46 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema96.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -71611,17 +74460,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -71638,27 +74487,27 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -71672,25 +74521,25 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -71707,23 +74556,23 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -71745,23 +74594,23 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -71773,23 +74622,23 @@ function validate111( .type, parentSchema: schema96.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -71797,17 +74646,17 @@ function validate111( message: 'must be array', schema: schema96.anyOf[1].allOf[1].properties.services.type, parentSchema: schema96.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -71816,7 +74665,7 @@ function validate111( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -71827,30 +74676,31 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -71861,20 +74711,20 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -71882,17 +74732,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -71900,27 +74750,27 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.url.type, parentSchema: schema96.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -71928,25 +74778,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.name.type, parentSchema: schema96.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -71954,25 +74804,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.description.type, parentSchema: schema96.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -71980,24 +74830,24 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.type.type, parentSchema: schema96.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -72007,25 +74857,25 @@ function validate111( message: 'must be equal to one of the allowed values', schema: schema96.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema96.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -72033,39 +74883,39 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema96.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -72079,23 +74929,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -72108,17 +74958,17 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -72132,12 +74982,12 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -72146,7 +74996,7 @@ function validate111( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -72158,23 +75008,23 @@ function validate111( .type, parentSchema: schema96.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -72182,40 +75032,40 @@ function validate111( message: 'must be array', schema: schema96.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema96.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -72231,23 +75081,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -72263,17 +75113,17 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -72287,12 +75137,12 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -72301,7 +75151,7 @@ function validate111( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -72313,23 +75163,23 @@ function validate111( .type, parentSchema: schema96.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -72337,20 +75187,78 @@ function validate111( message: 'must be array', schema: schema96.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema96.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema96.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -72359,7 +75267,7 @@ function validate111( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -72370,23 +75278,23 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -72394,28 +75302,28 @@ function validate111( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema96.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -72423,17 +75331,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -72441,46 +75349,46 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema96.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -72495,17 +75403,17 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -72519,27 +75427,27 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -72553,25 +75461,25 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -72588,23 +75496,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -72626,23 +75534,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -72653,23 +75561,23 @@ function validate111( schema96.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema96.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -72677,24 +75585,24 @@ function validate111( message: 'must be array', schema: schema96.anyOf[2].allOf[1].properties.services.type, parentSchema: schema96.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -72705,30 +75613,31 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -72739,20 +75648,20 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -72760,17 +75669,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -72778,27 +75687,27 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.url.type, parentSchema: schema96.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -72806,25 +75715,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.name.type, parentSchema: schema96.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -72832,25 +75741,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.description.type, parentSchema: schema96.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -72858,24 +75767,24 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.type.type, parentSchema: schema96.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -72886,25 +75795,25 @@ function validate111( message: 'must be equal to one of the allowed values', schema: schema96.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema96.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -72912,39 +75821,39 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema96.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -72960,23 +75869,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -72992,17 +75901,17 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -73019,12 +75928,12 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -73033,7 +75942,7 @@ function validate111( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -73046,23 +75955,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -73071,43 +75980,43 @@ function validate111( schema: schema96.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema96.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -73123,23 +76032,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -73156,17 +76065,17 @@ function validate111( schema96.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -73183,12 +76092,12 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -73197,7 +76106,7 @@ function validate111( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -73210,23 +76119,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -73236,20 +76145,78 @@ function validate111( schema96.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema96.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema96.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -73258,7 +76225,7 @@ function validate111( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -73269,21 +76236,21 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -73294,17 +76261,17 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -73312,39 +76279,39 @@ function validate111( message: 'must be equal to constant', schema: 'group', parentSchema: schema96.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -73357,23 +76324,23 @@ function validate111( .required, parentSchema: schema96.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -73385,17 +76352,17 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -73409,12 +76376,12 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -73423,7 +76390,7 @@ function validate111( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -73435,23 +76402,23 @@ function validate111( .type, parentSchema: schema96.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -73459,24 +76426,24 @@ function validate111( message: 'must be array', schema: schema96.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema96.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -73487,22 +76454,22 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -73513,9 +76480,9 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate111.errors = vErrors; @@ -74162,8 +77129,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74251,8 +77223,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74340,8 +77317,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74429,8 +77411,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74714,7 +77701,9 @@ function validate116( if ( (data4.type === undefined && (missing3 = 'type')) || (data4.name === undefined && (missing3 = 'name')) || - (data4.isPublic === undefined && (missing3 = 'isPublic')) + (data4.isPublic === undefined && (missing3 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing3 = 'bookingEndpoint')) ) { const err0 = { instancePath: instancePath + '/device', @@ -75249,6 +78238,67 @@ function validate116( } else { var valid7 = true; } + if (valid7) { + if (data4.bookingEndpoint !== undefined) { + let data15 = data4.bookingEndpoint; + const _errs40 = errors; + if (errors === _errs40) { + if (errors === _errs40) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err16 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data15, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint, + data: data15, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid7 = _errs40 === errors; + } else { + var valid7 = true; + } + } } } } @@ -75256,7 +78306,7 @@ function validate116( } } } else { - const err16 = { + const err18 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/0/type', keyword: 'type', @@ -75267,23 +78317,23 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid6 = _errs18 === errors; if (valid6) { - const _errs40 = errors; - if (errors === _errs40) { + const _errs42 = errors; + if (errors === _errs42) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data15 = data4.type; - const _errs42 = errors; - if ('cloud instantiable' !== data15) { - const err17 = { + let data16 = data4.type; + const _errs44 = errors; + if ('cloud instantiable' !== data16) { + const err19 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/type/const', @@ -75294,28 +78344,28 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.type, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid12 = _errs42 === errors; + var valid12 = _errs44 === errors; } else { var valid12 = true; } if (valid12) { if (data4.instantiateUrl !== undefined) { - let data16 = data4.instantiateUrl; - const _errs43 = errors; - if (errors === _errs43) { - if (errors === _errs43) { - if (typeof data16 === 'string') { - if (!formats0(data16)) { - const err18 = { + let data17 = data4.instantiateUrl; + const _errs45 = errors; + if (errors === _errs45) { + if (errors === _errs45) { + if (typeof data17 === 'string') { + if (!formats0(data17)) { + const err20 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/format', @@ -75326,17 +78376,17 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/type', @@ -75349,46 +78399,46 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid12 = _errs43 === errors; + var valid12 = _errs45 === errors; } else { var valid12 = true; } if (valid12) { if (data4.services !== undefined) { - let data17 = data4.services; - const _errs45 = errors; - if (errors === _errs45) { - if (Array.isArray(data17)) { + let data18 = data4.services; + const _errs47 = errors; + if (errors === _errs47) { + if (Array.isArray(data18)) { var valid13 = true; - const len2 = data17.length; + const len2 = data18.length; for (let i2 = 0; i2 < len2; i2++) { - let data18 = data17[i2]; - const _errs47 = errors; - if (errors === _errs47) { + let data19 = data18[i2]; + const _errs49 = errors; + if (errors === _errs49) { if ( - data18 && - typeof data18 == 'object' && - !Array.isArray(data18) + data19 && + typeof data19 == 'object' && + !Array.isArray(data19) ) { - if (data18.serviceType !== undefined) { - let data19 = data18.serviceType; - const _errs50 = errors; - if (errors === _errs50) { - if (errors === _errs50) { - if (typeof data19 === 'string') { - if (!formats0(data19)) { - const err20 = { + if (data19.serviceType !== undefined) { + let data20 = data19.serviceType; + const _errs52 = errors; + if (errors === _errs52) { + if (errors === _errs52) { + if (typeof data20 === 'string') { + if (!formats0(data20)) { + const err22 = { instancePath: instancePath + '/device/services/' + @@ -75405,17 +78455,17 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/device/services/' + @@ -75434,27 +78484,27 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid14 = _errs50 === errors; + var valid14 = _errs52 === errors; } else { var valid14 = true; } if (valid14) { - if (data18.serviceId !== undefined) { - let data20 = data18.serviceId; - const _errs52 = errors; - if (typeof data20 !== 'string') { - const err22 = { + if (data19.serviceId !== undefined) { + let data21 = data19.serviceId; + const _errs54 = errors; + if (typeof data21 !== 'string') { + const err24 = { instancePath: instancePath + '/device/services/' + @@ -75473,25 +78523,25 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceId, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid14 = _errs52 === errors; + var valid14 = _errs54 === errors; } else { var valid14 = true; } if (valid14) { - if (data18.serviceDirection !== undefined) { - let data21 = data18.serviceDirection; - const _errs54 = errors; - if (typeof data21 !== 'string') { - const err23 = { + if (data19.serviceDirection !== undefined) { + let data22 = data19.serviceDirection; + const _errs56 = errors; + if (typeof data22 !== 'string') { + const err25 = { instancePath: instancePath + '/device/services/' + @@ -75510,23 +78560,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data21 === 'consumer' || - data21 === 'producer' || - data21 === 'prosumer' + data22 === 'consumer' || + data22 === 'producer' || + data22 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/device/services/' + @@ -75552,23 +78602,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid14 = _errs54 === errors; + var valid14 = _errs56 === errors; } else { var valid14 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/device/services/' + i2, schemaPath: @@ -75582,23 +78632,23 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid13 = _errs47 === errors; + var valid13 = _errs49 === errors; if (!valid13) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/services/type', @@ -75611,24 +78661,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.services, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid12 = _errs45 === errors; + var valid12 = _errs47 === errors; } else { var valid12 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/type', keyword: 'type', @@ -75640,29 +78690,31 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid6 = _errs40 === errors; + var valid6 = _errs42 === errors; } var _valid0 = _errs17 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs56 = errors; - const _errs57 = errors; - if (errors === _errs57) { + const _errs58 = errors; + const _errs59 = errors; + if (errors === _errs59) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing6; if ( (data4.type === undefined && (missing6 = 'type')) || (data4.name === undefined && (missing6 = 'name')) || - (data4.isPublic === undefined && (missing6 = 'isPublic')) + (data4.isPublic === undefined && (missing6 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing6 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/required', @@ -75676,17 +78728,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data4.name !== undefined) { - let data22 = data4.name; - const _errs59 = errors; - if (typeof data22 !== 'string') { - const err29 = { + let data23 = data4.name; + const _errs61 = errors; + if (typeof data23 !== 'string') { + const err31 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/name/type', @@ -75699,25 +78751,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.name, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid16 = _errs59 === errors; + var valid16 = _errs61 === errors; } else { var valid16 = true; } if (valid16) { if (data4.description !== undefined) { - let data23 = data4.description; - const _errs61 = errors; - if (typeof data23 !== 'string') { - const err30 = { + let data24 = data4.description; + const _errs63 = errors; + if (typeof data24 !== 'string') { + const err32 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/description/type', @@ -75730,25 +78782,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.description, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid16 = _errs61 === errors; + var valid16 = _errs63 === errors; } else { var valid16 = true; } if (valid16) { if (data4.type !== undefined) { - let data24 = data4.type; - const _errs63 = errors; - if (typeof data24 !== 'string') { - const err31 = { + let data25 = data4.type; + const _errs65 = errors; + if (typeof data25 !== 'string') { + const err33 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/type', @@ -75761,24 +78813,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data24 === 'device' || - data24 === 'group' || - data24 === 'edge instantiable' || - data24 === 'cloud instantiable' + data25 === 'device' || + data25 === 'group' || + data25 === 'edge instantiable' || + data25 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/enum', @@ -75795,25 +78847,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid16 = _errs63 === errors; + var valid16 = _errs65 === errors; } else { var valid16 = true; } if (valid16) { if (data4.isPublic !== undefined) { - let data25 = data4.isPublic; - const _errs65 = errors; - if (typeof data25 !== 'boolean') { - const err33 = { + let data26 = data4.isPublic; + const _errs67 = errors; + if (typeof data26 !== 'boolean') { + const err35 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/isPublic/type', @@ -75826,42 +78878,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.isPublic, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs67 === errors; } else { var valid16 = true; } if (valid16) { if (data4.viewer !== undefined) { - let data26 = data4.viewer; - const _errs67 = errors; - if (errors === _errs67) { - if (Array.isArray(data26)) { + let data27 = data4.viewer; + const _errs69 = errors; + if (errors === _errs69) { + if (Array.isArray(data27)) { var valid17 = true; - const len3 = data26.length; + const len3 = data27.length; for (let i3 = 0; i3 < len3; i3++) { - let data27 = data26[i3]; - const _errs69 = errors; - if (errors === _errs69) { + let data28 = data27[i3]; + const _errs71 = errors; + if (errors === _errs71) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing7; if ( - data27.url === undefined && + data28.url === undefined && (missing7 = 'url') ) { - const err34 = { + const err36 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -75880,23 +78932,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs71 = errors; - if (errors === _errs71) { - if (errors === _errs71) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err35 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs73 = errors; + if (errors === _errs73) { + if (errors === _errs73) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err37 = { instancePath: instancePath + '/device/viewer/' + @@ -75916,17 +78968,17 @@ function validate116( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/device/viewer/' + @@ -75947,12 +78999,12 @@ function validate116( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -75961,7 +79013,7 @@ function validate116( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -75977,23 +79029,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid17 = _errs69 === errors; + var valid17 = _errs71 === errors; if (!valid17) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/viewer/type', @@ -76006,43 +79058,43 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[0].properties.viewer, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid16 = _errs67 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data4.owner !== undefined) { - let data29 = data4.owner; - const _errs73 = errors; - if (errors === _errs73) { - if (Array.isArray(data29)) { + let data30 = data4.owner; + const _errs75 = errors; + if (errors === _errs75) { + if (Array.isArray(data30)) { var valid19 = true; - const len4 = data29.length; + const len4 = data30.length; for (let i4 = 0; i4 < len4; i4++) { - let data30 = data29[i4]; - const _errs75 = errors; - if (errors === _errs75) { + let data31 = data30[i4]; + const _errs77 = errors; + if (errors === _errs77) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data31 && + typeof data31 == 'object' && + !Array.isArray(data31) ) { let missing8; if ( - data30.url === undefined && + data31.url === undefined && (missing8 = 'url') ) { - const err39 = { + const err41 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -76061,23 +79113,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data30.url !== undefined) { - let data31 = data30.url; - const _errs77 = errors; - if (errors === _errs77) { - if (errors === _errs77) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err40 = { + if (data31.url !== undefined) { + let data32 = data31.url; + const _errs79 = errors; + if (errors === _errs79) { + if (errors === _errs79) { + if (typeof data32 === 'string') { + if (!formats0(data32)) { + const err42 = { instancePath: instancePath + '/device/owner/' + @@ -76097,17 +79149,17 @@ function validate116( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/device/owner/' + @@ -76128,12 +79180,12 @@ function validate116( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -76142,7 +79194,7 @@ function validate116( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -76158,23 +79210,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid19 = _errs75 === errors; + var valid19 = _errs77 === errors; if (!valid19) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/owner/type', @@ -76187,20 +79239,84 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[0].properties.owner, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid16 = _errs73 === errors; + var valid16 = _errs75 === errors; } else { var valid16 = true; } + if (valid16) { + if (data4.bookingEndpoint !== undefined) { + let data33 = data4.bookingEndpoint; + const _errs81 = errors; + if (errors === _errs81) { + if (errors === _errs81) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err46 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data33, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data33, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid16 = _errs81 === errors; + } else { + var valid16 = true; + } + } } } } @@ -76208,7 +79324,7 @@ function validate116( } } } else { - const err44 = { + const err48 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/type', keyword: 'type', @@ -76220,23 +79336,23 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid15 = _errs57 === errors; + var valid15 = _errs59 === errors; if (valid15) { - const _errs79 = errors; - if (errors === _errs79) { + const _errs83 = errors; + if (errors === _errs83) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data32 = data4.type; - const _errs81 = errors; - if ('device' !== data32) { - const err45 = { + let data34 = data4.type; + const _errs85 = errors; + if ('device' !== data34) { + const err49 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/type/const', @@ -76247,28 +79363,28 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[1] .properties.type, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid21 = _errs81 === errors; + var valid21 = _errs85 === errors; } else { var valid21 = true; } if (valid21) { if (data4.experiment !== undefined) { - let data33 = data4.experiment; - const _errs82 = errors; - if (errors === _errs82) { - if (errors === _errs82) { - if (typeof data33 === 'string') { - if (!formats0(data33)) { - const err46 = { + let data35 = data4.experiment; + const _errs86 = errors; + if (errors === _errs86) { + if (errors === _errs86) { + if (typeof data35 === 'string') { + if (!formats0(data35)) { + const err50 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/format', @@ -76279,17 +79395,17 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/type', @@ -76302,46 +79418,46 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[1] .properties.experiment, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid21 = _errs82 === errors; + var valid21 = _errs86 === errors; } else { var valid21 = true; } if (valid21) { if (data4.services !== undefined) { - let data34 = data4.services; - const _errs84 = errors; - if (errors === _errs84) { - if (Array.isArray(data34)) { + let data36 = data4.services; + const _errs88 = errors; + if (errors === _errs88) { + if (Array.isArray(data36)) { var valid22 = true; - const len5 = data34.length; + const len5 = data36.length; for (let i5 = 0; i5 < len5; i5++) { - let data35 = data34[i5]; - const _errs86 = errors; - if (errors === _errs86) { + let data37 = data36[i5]; + const _errs90 = errors; + if (errors === _errs90) { if ( - data35 && - typeof data35 == 'object' && - !Array.isArray(data35) + data37 && + typeof data37 == 'object' && + !Array.isArray(data37) ) { - if (data35.serviceType !== undefined) { - let data36 = data35.serviceType; - const _errs89 = errors; - if (errors === _errs89) { - if (errors === _errs89) { - if (typeof data36 === 'string') { - if (!formats0(data36)) { - const err48 = { + if (data37.serviceType !== undefined) { + let data38 = data37.serviceType; + const _errs93 = errors; + if (errors === _errs93) { + if (errors === _errs93) { + if (typeof data38 === 'string') { + if (!formats0(data38)) { + const err52 = { instancePath: instancePath + '/device/services/' + @@ -76359,17 +79475,17 @@ function validate116( .anyOf[1].allOf[1].properties .services.items.properties .serviceType, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/device/services/' + @@ -76388,27 +79504,27 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid23 = _errs89 === errors; + var valid23 = _errs93 === errors; } else { var valid23 = true; } if (valid23) { - if (data35.serviceId !== undefined) { - let data37 = data35.serviceId; - const _errs91 = errors; - if (typeof data37 !== 'string') { - const err50 = { + if (data37.serviceId !== undefined) { + let data39 = data37.serviceId; + const _errs95 = errors; + if (typeof data39 !== 'string') { + const err54 = { instancePath: instancePath + '/device/services/' + @@ -76427,25 +79543,25 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid23 = _errs91 === errors; + var valid23 = _errs95 === errors; } else { var valid23 = true; } if (valid23) { - if (data35.serviceDirection !== undefined) { - let data38 = data35.serviceDirection; - const _errs93 = errors; - if (typeof data38 !== 'string') { - const err51 = { + if (data37.serviceDirection !== undefined) { + let data40 = data37.serviceDirection; + const _errs97 = errors; + if (typeof data40 !== 'string') { + const err55 = { instancePath: instancePath + '/device/services/' + @@ -76465,23 +79581,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data38 === 'consumer' || - data38 === 'producer' || - data38 === 'prosumer' + data40 === 'consumer' || + data40 === 'producer' || + data40 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/device/services/' + @@ -76508,23 +79624,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid23 = _errs93 === errors; + var valid23 = _errs97 === errors; } else { var valid23 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/device/services/' + i5, schemaPath: @@ -76538,23 +79654,23 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services.items, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid22 = _errs86 === errors; + var valid22 = _errs90 === errors; if (!valid22) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/services/type', @@ -76567,24 +79683,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[1] .properties.services, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid21 = _errs84 === errors; + var valid21 = _errs88 === errors; } else { var valid21 = true; } } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/type', keyword: 'type', @@ -76597,29 +79713,31 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid15 = _errs79 === errors; + var valid15 = _errs83 === errors; } - var _valid0 = _errs56 === errors; + var _valid0 = _errs58 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs95 = errors; - const _errs96 = errors; - if (errors === _errs96) { + const _errs99 = errors; + const _errs100 = errors; + if (errors === _errs100) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing9; if ( (data4.type === undefined && (missing9 = 'type')) || (data4.name === undefined && (missing9 = 'name')) || - (data4.isPublic === undefined && (missing9 = 'isPublic')) + (data4.isPublic === undefined && (missing9 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing9 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/required', @@ -76634,17 +79752,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data4.name !== undefined) { - let data39 = data4.name; - const _errs98 = errors; - if (typeof data39 !== 'string') { - const err57 = { + let data41 = data4.name; + const _errs102 = errors; + if (typeof data41 !== 'string') { + const err61 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/name/type', @@ -76657,25 +79775,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.name, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid25 = _errs98 === errors; + var valid25 = _errs102 === errors; } else { var valid25 = true; } if (valid25) { if (data4.description !== undefined) { - let data40 = data4.description; - const _errs100 = errors; - if (typeof data40 !== 'string') { - const err58 = { + let data42 = data4.description; + const _errs104 = errors; + if (typeof data42 !== 'string') { + const err62 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/description/type', @@ -76688,25 +79806,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.description, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid25 = _errs100 === errors; + var valid25 = _errs104 === errors; } else { var valid25 = true; } if (valid25) { if (data4.type !== undefined) { - let data41 = data4.type; - const _errs102 = errors; - if (typeof data41 !== 'string') { - const err59 = { + let data43 = data4.type; + const _errs106 = errors; + if (typeof data43 !== 'string') { + const err63 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/type', @@ -76719,24 +79837,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.type, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data41 === 'device' || - data41 === 'group' || - data41 === 'edge instantiable' || - data41 === 'cloud instantiable' + data43 === 'device' || + data43 === 'group' || + data43 === 'edge instantiable' || + data43 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/enum', @@ -76753,25 +79871,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.type, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid25 = _errs102 === errors; + var valid25 = _errs106 === errors; } else { var valid25 = true; } if (valid25) { if (data4.isPublic !== undefined) { - let data42 = data4.isPublic; - const _errs104 = errors; - if (typeof data42 !== 'boolean') { - const err61 = { + let data44 = data4.isPublic; + const _errs108 = errors; + if (typeof data44 !== 'boolean') { + const err65 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/isPublic/type', @@ -76784,42 +79902,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[0].properties.isPublic, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs108 === errors; } else { var valid25 = true; } if (valid25) { if (data4.viewer !== undefined) { - let data43 = data4.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data43)) { + let data45 = data4.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data45)) { var valid26 = true; - const len6 = data43.length; + const len6 = data45.length; for (let i6 = 0; i6 < len6; i6++) { - let data44 = data43[i6]; - const _errs108 = errors; - if (errors === _errs108) { + let data46 = data45[i6]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data44 && - typeof data44 == 'object' && - !Array.isArray(data44) + data46 && + typeof data46 == 'object' && + !Array.isArray(data46) ) { let missing10; if ( - data44.url === undefined && + data46.url === undefined && (missing10 = 'url') ) { - const err62 = { + const err66 = { instancePath: instancePath + '/device/viewer/' + i6, schemaPath: @@ -76838,23 +79956,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data44.url !== undefined) { - let data45 = data44.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err63 = { + if (data46.url !== undefined) { + let data47 = data46.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data47 === 'string') { + if (!formats0(data47)) { + const err67 = { instancePath: instancePath + '/device/viewer/' + @@ -76874,17 +79992,17 @@ function validate116( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/device/viewer/' + @@ -76905,12 +80023,12 @@ function validate116( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -76919,7 +80037,7 @@ function validate116( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/device/viewer/' + i6, schemaPath: @@ -76935,23 +80053,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid26 = _errs108 === errors; + var valid26 = _errs112 === errors; if (!valid26) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/viewer/type', @@ -76964,43 +80082,43 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[0].properties.viewer, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid25 = _errs106 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data4.owner !== undefined) { - let data46 = data4.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data46)) { + let data48 = data4.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data48)) { var valid28 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs114 = errors; - if (errors === _errs114) { + let data49 = data48[i7]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing11; if ( - data47.url === undefined && + data49.url === undefined && (missing11 = 'url') ) { - const err67 = { + const err71 = { instancePath: instancePath + '/device/owner/' + i7, schemaPath: @@ -77019,23 +80137,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err68 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err72 = { instancePath: instancePath + '/device/owner/' + @@ -77056,17 +80174,17 @@ function validate116( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/device/owner/' + @@ -77087,12 +80205,12 @@ function validate116( .device.anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -77101,7 +80219,7 @@ function validate116( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/device/owner/' + i7, schemaPath: @@ -77117,23 +80235,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid28 = _errs114 === errors; + var valid28 = _errs118 === errors; if (!valid28) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/owner/type', @@ -77146,20 +80264,85 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[0].properties.owner, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid25 = _errs112 === errors; + var valid25 = _errs116 === errors; } else { var valid25 = true; } + if (valid25) { + if (data4.bookingEndpoint !== undefined) { + let data51 = data4.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err76 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data51, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data51, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid25 = _errs122 === errors; + } else { + var valid25 = true; + } + } } } } @@ -77167,7 +80350,7 @@ function validate116( } } } else { - const err72 = { + const err78 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/type', keyword: 'type', @@ -77180,23 +80363,23 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid24 = _errs96 === errors; + var valid24 = _errs100 === errors; if (valid24) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data49 = data4.type; - const _errs120 = errors; - if ('edge instantiable' !== data49) { - const err73 = { + let data52 = data4.type; + const _errs126 = errors; + if ('edge instantiable' !== data52) { + const err79 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/type/const', @@ -77207,28 +80390,28 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[1] .properties.type, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid30 = _errs120 === errors; + var valid30 = _errs126 === errors; } else { var valid30 = true; } if (valid30) { if (data4.codeUrl !== undefined) { - let data50 = data4.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data50 === 'string') { - if (!formats0(data50)) { - const err74 = { + let data53 = data4.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err80 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/format', @@ -77239,17 +80422,17 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/type', @@ -77262,46 +80445,46 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid30 = _errs121 === errors; + var valid30 = _errs127 === errors; } else { var valid30 = true; } if (valid30) { if (data4.services !== undefined) { - let data51 = data4.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data51)) { + let data54 = data4.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data54)) { var valid31 = true; - const len8 = data51.length; + const len8 = data54.length; for (let i8 = 0; i8 < len8; i8++) { - let data52 = data51[i8]; - const _errs125 = errors; - if (errors === _errs125) { + let data55 = data54[i8]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data52 && - typeof data52 == 'object' && - !Array.isArray(data52) + data55 && + typeof data55 == 'object' && + !Array.isArray(data55) ) { - if (data52.serviceType !== undefined) { - let data53 = data52.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err76 = { + if (data55.serviceType !== undefined) { + let data56 = data55.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err82 = { instancePath: instancePath + '/device/services/' + @@ -77319,17 +80502,17 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/device/services/' + @@ -77350,27 +80533,27 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid32 = _errs128 === errors; + var valid32 = _errs134 === errors; } else { var valid32 = true; } if (valid32) { - if (data52.serviceId !== undefined) { - let data54 = data52.serviceId; - const _errs130 = errors; - if (typeof data54 !== 'string') { - const err78 = { + if (data55.serviceId !== undefined) { + let data57 = data55.serviceId; + const _errs136 = errors; + if (typeof data57 !== 'string') { + const err84 = { instancePath: instancePath + '/device/services/' + @@ -77389,25 +80572,25 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid32 = _errs130 === errors; + var valid32 = _errs136 === errors; } else { var valid32 = true; } if (valid32) { - if (data52.serviceDirection !== undefined) { - let data55 = data52.serviceDirection; - const _errs132 = errors; - if (typeof data55 !== 'string') { - const err79 = { + if (data55.serviceDirection !== undefined) { + let data58 = data55.serviceDirection; + const _errs138 = errors; + if (typeof data58 !== 'string') { + const err85 = { instancePath: instancePath + '/device/services/' + @@ -77428,23 +80611,23 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data55 === 'consumer' || - data55 === 'producer' || - data55 === 'prosumer' + data58 === 'consumer' || + data58 === 'producer' || + data58 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/device/services/' + @@ -77472,23 +80655,23 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid32 = _errs132 === errors; + var valid32 = _errs138 === errors; } else { var valid32 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/device/services/' + i8, schemaPath: @@ -77502,23 +80685,23 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services.items, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid31 = _errs125 === errors; + var valid31 = _errs131 === errors; if (!valid31) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/services/type', @@ -77531,24 +80714,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid30 = _errs123 === errors; + var valid30 = _errs129 === errors; } else { var valid30 = true; } } } } else { - const err83 = { + const err89 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/type', keyword: 'type', @@ -77561,29 +80744,31 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid24 = _errs118 === errors; + var valid24 = _errs124 === errors; } - var _valid0 = _errs95 === errors; + var _valid0 = _errs99 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing12; if ( (data4.type === undefined && (missing12 = 'type')) || (data4.name === undefined && (missing12 = 'name')) || - (data4.isPublic === undefined && (missing12 = 'isPublic')) + (data4.isPublic === undefined && (missing12 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing12 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/required', @@ -77598,17 +80783,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data4.name !== undefined) { - let data56 = data4.name; - const _errs137 = errors; - if (typeof data56 !== 'string') { - const err85 = { + let data59 = data4.name; + const _errs143 = errors; + if (typeof data59 !== 'string') { + const err91 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/name/type', @@ -77621,25 +80806,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3].allOf[0] .properties.name, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid34 = _errs137 === errors; + var valid34 = _errs143 === errors; } else { var valid34 = true; } if (valid34) { if (data4.description !== undefined) { - let data57 = data4.description; - const _errs139 = errors; - if (typeof data57 !== 'string') { - const err86 = { + let data60 = data4.description; + const _errs145 = errors; + if (typeof data60 !== 'string') { + const err92 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/description/type', @@ -77652,25 +80837,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3].allOf[0] .properties.description, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid34 = _errs139 === errors; + var valid34 = _errs145 === errors; } else { var valid34 = true; } if (valid34) { if (data4.type !== undefined) { - let data58 = data4.type; - const _errs141 = errors; - if (typeof data58 !== 'string') { - const err87 = { + let data61 = data4.type; + const _errs147 = errors; + if (typeof data61 !== 'string') { + const err93 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/type', @@ -77683,24 +80868,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data58 === 'device' || - data58 === 'group' || - data58 === 'edge instantiable' || - data58 === 'cloud instantiable' + data61 === 'device' || + data61 === 'group' || + data61 === 'edge instantiable' || + data61 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/enum', @@ -77717,25 +80902,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid34 = _errs141 === errors; + var valid34 = _errs147 === errors; } else { var valid34 = true; } if (valid34) { if (data4.isPublic !== undefined) { - let data59 = data4.isPublic; - const _errs143 = errors; - if (typeof data59 !== 'boolean') { - const err89 = { + let data62 = data4.isPublic; + const _errs149 = errors; + if (typeof data62 !== 'boolean') { + const err95 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/isPublic/type', @@ -77748,42 +80933,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.isPublic, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs149 === errors; } else { var valid34 = true; } if (valid34) { if (data4.viewer !== undefined) { - let data60 = data4.viewer; - const _errs145 = errors; - if (errors === _errs145) { - if (Array.isArray(data60)) { + let data63 = data4.viewer; + const _errs151 = errors; + if (errors === _errs151) { + if (Array.isArray(data63)) { var valid35 = true; - const len9 = data60.length; + const len9 = data63.length; for (let i9 = 0; i9 < len9; i9++) { - let data61 = data60[i9]; - const _errs147 = errors; - if (errors === _errs147) { + let data64 = data63[i9]; + const _errs153 = errors; + if (errors === _errs153) { if ( - data61 && - typeof data61 == 'object' && - !Array.isArray(data61) + data64 && + typeof data64 == 'object' && + !Array.isArray(data64) ) { let missing13; if ( - data61.url === undefined && + data64.url === undefined && (missing13 = 'url') ) { - const err90 = { + const err96 = { instancePath: instancePath + '/device/viewer/' + i9, schemaPath: @@ -77802,23 +80987,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data61.url !== undefined) { - let data62 = data61.url; - const _errs149 = errors; - if (errors === _errs149) { - if (errors === _errs149) { - if (typeof data62 === 'string') { - if (!formats0(data62)) { - const err91 = { + if (data64.url !== undefined) { + let data65 = data64.url; + const _errs155 = errors; + if (errors === _errs155) { + if (errors === _errs155) { + if (typeof data65 === 'string') { + if (!formats0(data65)) { + const err97 = { instancePath: instancePath + '/device/viewer/' + @@ -77839,17 +81024,17 @@ function validate116( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/device/viewer/' + @@ -77870,12 +81055,12 @@ function validate116( .device.anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -77884,7 +81069,7 @@ function validate116( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/device/viewer/' + i9, schemaPath: @@ -77900,23 +81085,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid35 = _errs147 === errors; + var valid35 = _errs153 === errors; if (!valid35) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/viewer/type', @@ -77929,43 +81114,43 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.viewer, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid34 = _errs145 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data4.owner !== undefined) { - let data63 = data4.owner; - const _errs151 = errors; - if (errors === _errs151) { - if (Array.isArray(data63)) { + let data66 = data4.owner; + const _errs157 = errors; + if (errors === _errs157) { + if (Array.isArray(data66)) { var valid37 = true; - const len10 = data63.length; + const len10 = data66.length; for (let i10 = 0; i10 < len10; i10++) { - let data64 = data63[i10]; - const _errs153 = errors; - if (errors === _errs153) { + let data67 = data66[i10]; + const _errs159 = errors; + if (errors === _errs159) { if ( - data64 && - typeof data64 == 'object' && - !Array.isArray(data64) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing14; if ( - data64.url === undefined && + data67.url === undefined && (missing14 = 'url') ) { - const err95 = { + const err101 = { instancePath: instancePath + '/device/owner/' + @@ -77988,23 +81173,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties .owner.items, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data64.url !== undefined) { - let data65 = data64.url; - const _errs155 = errors; - if (errors === _errs155) { - if (errors === _errs155) { - if (typeof data65 === 'string') { - if (!formats0(data65)) { - const err96 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs161 = errors; + if (errors === _errs161) { + if (errors === _errs161) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err102 = { instancePath: instancePath + '/device/owner/' + @@ -78025,17 +81210,17 @@ function validate116( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/device/owner/' + @@ -78058,12 +81243,12 @@ function validate116( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -78072,7 +81257,7 @@ function validate116( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/device/owner/' + i10, schemaPath: @@ -78088,23 +81273,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner .items, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid37 = _errs153 === errors; + var valid37 = _errs159 === errors; if (!valid37) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/owner/type', @@ -78117,20 +81302,86 @@ function validate116( parentSchema: schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid34 = _errs151 === errors; + var valid34 = _errs157 === errors; } else { var valid34 = true; } + if (valid34) { + if (data4.bookingEndpoint !== undefined) { + let data69 = data4.bookingEndpoint; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err106 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data69, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data69, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid34 = _errs163 === errors; + } else { + var valid34 = true; + } + } } } } @@ -78138,7 +81389,7 @@ function validate116( } } } else { - const err100 = { + const err108 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/type', keyword: 'type', @@ -78151,21 +81402,21 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid33 = _errs135 === errors; + var valid33 = _errs141 === errors; if (valid33) { - const _errs157 = errors; - if (errors === _errs157) { + const _errs165 = errors; + if (errors === _errs165) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing15; if (data4.devices === undefined && (missing15 = 'devices')) { - const err101 = { + const err109 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/required', @@ -78180,17 +81431,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data4.type !== undefined) { - let data66 = data4.type; - const _errs159 = errors; - if ('group' !== data66) { - const err102 = { + let data70 = data4.type; + const _errs167 = errors; + if ('group' !== data70) { + const err110 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/type/const', @@ -78201,42 +81452,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3].allOf[1] .properties.type, - data: data66, + data: data70, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid39 = _errs159 === errors; + var valid39 = _errs167 === errors; } else { var valid39 = true; } if (valid39) { if (data4.devices !== undefined) { - let data67 = data4.devices; - const _errs160 = errors; - if (errors === _errs160) { - if (Array.isArray(data67)) { + let data71 = data4.devices; + const _errs168 = errors; + if (errors === _errs168) { + if (Array.isArray(data71)) { var valid40 = true; - const len11 = data67.length; + const len11 = data71.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs162 = errors; - if (errors === _errs162) { + let data72 = data71[i11]; + const _errs170 = errors; + if (errors === _errs170) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data72 && + typeof data72 == 'object' && + !Array.isArray(data72) ) { let missing16; if ( - data68.url === undefined && + data72.url === undefined && (missing16 = 'url') ) { - const err103 = { + const err111 = { instancePath: instancePath + '/device/devices/' + i11, schemaPath: @@ -78255,23 +81506,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data68, + data: data72, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs164 = errors; - if (errors === _errs164) { - if (errors === _errs164) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err104 = { + if (data72.url !== undefined) { + let data73 = data72.url; + const _errs172 = errors; + if (errors === _errs172) { + if (errors === _errs172) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err112 = { instancePath: instancePath + '/device/devices/' + @@ -78291,17 +81542,17 @@ function validate116( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data69, + data: data73, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/device/devices/' + @@ -78322,12 +81573,12 @@ function validate116( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data69, + data: data73, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -78336,7 +81587,7 @@ function validate116( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/device/devices/' + i11, schemaPath: @@ -78352,23 +81603,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data68, + data: data72, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid40 = _errs162 === errors; + var valid40 = _errs170 === errors; if (!valid40) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/device/devices', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/devices/type', @@ -78381,24 +81632,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices, - data: data67, + data: data71, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid39 = _errs160 === errors; + var valid39 = _errs168 === errors; } else { var valid39 = true; } } } } else { - const err108 = { + const err116 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/type', @@ -78412,22 +81663,22 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid33 = _errs157 === errors; + var valid33 = _errs165 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid5 = valid5 || _valid0; } } } if (!valid5) { - const err109 = { + const err117 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf', keyword: 'anyOf', @@ -78438,9 +81689,9 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate116.errors = vErrors; @@ -78579,8 +81830,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -78674,8 +81930,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -78790,8 +82051,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -78885,8 +82151,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -79171,7 +82442,9 @@ function validate117( (data4.url === undefined && (missing3 = 'url')) || (data4.type === undefined && (missing3 = 'type')) || (data4.name === undefined && (missing3 = 'name')) || - (data4.isPublic === undefined && (missing3 = 'isPublic')) + (data4.isPublic === undefined && (missing3 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing3 = 'bookingEndpoint')) ) { const err0 = { instancePath: instancePath + '/device', @@ -79768,6 +83041,70 @@ function validate117( } else { var valid7 = true; } + if (valid7) { + if (data4.bookingEndpoint !== undefined) { + let data16 = data4.bookingEndpoint; + const _errs42 = errors; + if (errors === _errs42) { + if (errors === _errs42) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err18 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid7 = _errs42 === errors; + } else { + var valid7 = true; + } + } } } } @@ -79776,7 +83113,7 @@ function validate117( } } } else { - const err18 = { + const err20 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/0/type', keyword: 'type', @@ -79787,23 +83124,23 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid6 = _errs18 === errors; if (valid6) { - const _errs42 = errors; - if (errors === _errs42) { + const _errs44 = errors; + if (errors === _errs44) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data16 = data4.type; - const _errs44 = errors; - if ('cloud instantiable' !== data16) { - const err19 = { + let data17 = data4.type; + const _errs46 = errors; + if ('cloud instantiable' !== data17) { + const err21 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/type/const', @@ -79814,28 +83151,28 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.type, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid12 = _errs44 === errors; + var valid12 = _errs46 === errors; } else { var valid12 = true; } if (valid12) { if (data4.instantiateUrl !== undefined) { - let data17 = data4.instantiateUrl; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { - const err20 = { + let data18 = data4.instantiateUrl; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { + const err22 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/format', @@ -79846,17 +83183,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/type', @@ -79869,46 +83206,46 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid12 = _errs45 === errors; + var valid12 = _errs47 === errors; } else { var valid12 = true; } if (valid12) { if (data4.services !== undefined) { - let data18 = data4.services; - const _errs47 = errors; - if (errors === _errs47) { - if (Array.isArray(data18)) { + let data19 = data4.services; + const _errs49 = errors; + if (errors === _errs49) { + if (Array.isArray(data19)) { var valid13 = true; - const len2 = data18.length; + const len2 = data19.length; for (let i2 = 0; i2 < len2; i2++) { - let data19 = data18[i2]; - const _errs49 = errors; - if (errors === _errs49) { + let data20 = data19[i2]; + const _errs51 = errors; + if (errors === _errs51) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs52 = errors; - if (errors === _errs52) { - if (errors === _errs52) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { - const err22 = { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs54 = errors; + if (errors === _errs54) { + if (errors === _errs54) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { + const err24 = { instancePath: instancePath + '/device/services/' + @@ -79925,17 +83262,17 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/device/services/' + @@ -79954,27 +83291,27 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid14 = _errs52 === errors; + var valid14 = _errs54 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs54 = errors; - if (typeof data21 !== 'string') { - const err24 = { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs56 = errors; + if (typeof data22 !== 'string') { + const err26 = { instancePath: instancePath + '/device/services/' + @@ -79993,25 +83330,25 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceId, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid14 = _errs54 === errors; + var valid14 = _errs56 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs56 = errors; - if (typeof data22 !== 'string') { - const err25 = { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs58 = errors; + if (typeof data23 !== 'string') { + const err27 = { instancePath: instancePath + '/device/services/' + @@ -80030,23 +83367,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/device/services/' + @@ -80072,23 +83409,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid14 = _errs56 === errors; + var valid14 = _errs58 === errors; } else { var valid14 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/device/services/' + i2, schemaPath: @@ -80102,23 +83439,23 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid13 = _errs49 === errors; + var valid13 = _errs51 === errors; if (!valid13) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/services/type', @@ -80131,24 +83468,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.services, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid12 = _errs47 === errors; + var valid12 = _errs49 === errors; } else { var valid12 = true; } } } } else { - const err29 = { + const err31 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/type', keyword: 'type', @@ -80160,30 +83497,32 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid6 = _errs42 === errors; + var valid6 = _errs44 === errors; } var _valid0 = _errs17 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs58 = errors; - const _errs59 = errors; - if (errors === _errs59) { + const _errs60 = errors; + const _errs61 = errors; + if (errors === _errs61) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing6; if ( (data4.url === undefined && (missing6 = 'url')) || (data4.type === undefined && (missing6 = 'type')) || (data4.name === undefined && (missing6 = 'name')) || - (data4.isPublic === undefined && (missing6 = 'isPublic')) + (data4.isPublic === undefined && (missing6 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing6 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/required', @@ -80197,20 +83536,20 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data4.url !== undefined) { - let data23 = data4.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err31 = { + let data24 = data4.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err33 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/format', @@ -80221,17 +83560,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/type', @@ -80244,27 +83583,27 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid16 = _errs61 === errors; + var valid16 = _errs63 === errors; } else { var valid16 = true; } if (valid16) { if (data4.name !== undefined) { - let data24 = data4.name; - const _errs63 = errors; - if (typeof data24 !== 'string') { - const err33 = { + let data25 = data4.name; + const _errs65 = errors; + if (typeof data25 !== 'string') { + const err35 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/name/type', @@ -80277,25 +83616,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.name, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid16 = _errs63 === errors; + var valid16 = _errs65 === errors; } else { var valid16 = true; } if (valid16) { if (data4.description !== undefined) { - let data25 = data4.description; - const _errs65 = errors; - if (typeof data25 !== 'string') { - const err34 = { + let data26 = data4.description; + const _errs67 = errors; + if (typeof data26 !== 'string') { + const err36 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/description/type', @@ -80308,25 +83647,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.description, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs67 === errors; } else { var valid16 = true; } if (valid16) { if (data4.type !== undefined) { - let data26 = data4.type; - const _errs67 = errors; - if (typeof data26 !== 'string') { - const err35 = { + let data27 = data4.type; + const _errs69 = errors; + if (typeof data27 !== 'string') { + const err37 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/type', @@ -80339,24 +83678,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data26 === 'device' || - data26 === 'group' || - data26 === 'edge instantiable' || - data26 === 'cloud instantiable' + data27 === 'device' || + data27 === 'group' || + data27 === 'edge instantiable' || + data27 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/enum', @@ -80373,25 +83712,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid16 = _errs67 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data4.isPublic !== undefined) { - let data27 = data4.isPublic; - const _errs69 = errors; - if (typeof data27 !== 'boolean') { - const err37 = { + let data28 = data4.isPublic; + const _errs71 = errors; + if (typeof data28 !== 'boolean') { + const err39 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/isPublic/type', @@ -80404,42 +83743,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[0].properties.isPublic, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs71 === errors; } else { var valid16 = true; } if (valid16) { if (data4.viewer !== undefined) { - let data28 = data4.viewer; - const _errs71 = errors; - if (errors === _errs71) { - if (Array.isArray(data28)) { + let data29 = data4.viewer; + const _errs73 = errors; + if (errors === _errs73) { + if (Array.isArray(data29)) { var valid17 = true; - const len3 = data28.length; + const len3 = data29.length; for (let i3 = 0; i3 < len3; i3++) { - let data29 = data28[i3]; - const _errs73 = errors; - if (errors === _errs73) { + let data30 = data29[i3]; + const _errs75 = errors; + if (errors === _errs75) { if ( - data29 && - typeof data29 == 'object' && - !Array.isArray(data29) + data30 && + typeof data30 == 'object' && + !Array.isArray(data30) ) { let missing7; if ( - data29.url === undefined && + data30.url === undefined && (missing7 = 'url') ) { - const err38 = { + const err40 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -80458,23 +83797,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data29.url !== undefined) { - let data30 = data29.url; - const _errs75 = errors; - if (errors === _errs75) { - if (errors === _errs75) { - if (typeof data30 === 'string') { - if (!formats0(data30)) { - const err39 = { + if (data30.url !== undefined) { + let data31 = data30.url; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data31 === 'string') { + if (!formats0(data31)) { + const err41 = { instancePath: instancePath + '/device/viewer/' + @@ -80494,17 +83833,17 @@ function validate117( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/device/viewer/' + @@ -80525,12 +83864,12 @@ function validate117( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -80539,7 +83878,7 @@ function validate117( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -80555,23 +83894,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid17 = _errs73 === errors; + var valid17 = _errs75 === errors; if (!valid17) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/viewer/type', @@ -80584,43 +83923,43 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[0].properties.viewer, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid16 = _errs71 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data4.owner !== undefined) { - let data31 = data4.owner; - const _errs77 = errors; - if (errors === _errs77) { - if (Array.isArray(data31)) { + let data32 = data4.owner; + const _errs79 = errors; + if (errors === _errs79) { + if (Array.isArray(data32)) { var valid19 = true; - const len4 = data31.length; + const len4 = data32.length; for (let i4 = 0; i4 < len4; i4++) { - let data32 = data31[i4]; - const _errs79 = errors; - if (errors === _errs79) { + let data33 = data32[i4]; + const _errs81 = errors; + if (errors === _errs81) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data33 && + typeof data33 == 'object' && + !Array.isArray(data33) ) { let missing8; if ( - data32.url === undefined && + data33.url === undefined && (missing8 = 'url') ) { - const err43 = { + const err45 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -80639,23 +83978,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data32.url !== undefined) { - let data33 = data32.url; - const _errs81 = errors; - if (errors === _errs81) { - if (errors === _errs81) { - if (typeof data33 === 'string') { - if (!formats0(data33)) { - const err44 = { + if (data33.url !== undefined) { + let data34 = data33.url; + const _errs83 = errors; + if (errors === _errs83) { + if (errors === _errs83) { + if (typeof data34 === 'string') { + if (!formats0(data34)) { + const err46 = { instancePath: instancePath + '/device/owner/' + @@ -80676,17 +84015,17 @@ function validate117( .anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/device/owner/' + @@ -80707,12 +84046,12 @@ function validate117( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -80721,7 +84060,7 @@ function validate117( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -80737,23 +84076,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid19 = _errs79 === errors; + var valid19 = _errs81 === errors; if (!valid19) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/owner/type', @@ -80766,20 +84105,85 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[0].properties.owner, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid16 = _errs77 === errors; + var valid16 = _errs79 === errors; } else { var valid16 = true; } + if (valid16) { + if (data4.bookingEndpoint !== undefined) { + let data35 = data4.bookingEndpoint; + const _errs85 = errors; + if (errors === _errs85) { + if (errors === _errs85) { + if (typeof data35 === 'string') { + if (!formats0(data35)) { + const err50 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid16 = _errs85 === errors; + } else { + var valid16 = true; + } + } } } } @@ -80788,7 +84192,7 @@ function validate117( } } } else { - const err48 = { + const err52 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/type', keyword: 'type', @@ -80800,23 +84204,23 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid15 = _errs59 === errors; + var valid15 = _errs61 === errors; if (valid15) { - const _errs83 = errors; - if (errors === _errs83) { + const _errs87 = errors; + if (errors === _errs87) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data34 = data4.type; - const _errs85 = errors; - if ('device' !== data34) { - const err49 = { + let data36 = data4.type; + const _errs89 = errors; + if ('device' !== data36) { + const err53 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/type/const', @@ -80827,25 +84231,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[1] .properties.type, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid21 = _errs85 === errors; + var valid21 = _errs89 === errors; } else { var valid21 = true; } if (valid21) { if (data4.connected !== undefined) { - let data35 = data4.connected; - const _errs86 = errors; - if (typeof data35 !== 'boolean') { - const err50 = { + let data37 = data4.connected; + const _errs90 = errors; + if (typeof data37 !== 'boolean') { + const err54 = { instancePath: instancePath + '/device/connected', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/connected/type', @@ -80858,44 +84262,44 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[1] .properties.connected, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid21 = _errs86 === errors; + var valid21 = _errs90 === errors; } else { var valid21 = true; } if (valid21) { if (data4.announcedAvailability !== undefined) { - let data36 = data4.announcedAvailability; - const _errs88 = errors; - if (errors === _errs88) { - if (Array.isArray(data36)) { + let data38 = data4.announcedAvailability; + const _errs92 = errors; + if (errors === _errs92) { + if (Array.isArray(data38)) { var valid22 = true; - const len5 = data36.length; + const len5 = data38.length; for (let i5 = 0; i5 < len5; i5++) { - let data37 = data36[i5]; - const _errs90 = errors; - if (errors === _errs90) { + let data39 = data38[i5]; + const _errs94 = errors; + if (errors === _errs94) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.start !== undefined) { - let data38 = data37.start; - const _errs92 = errors; - if (errors === _errs92) { - if (errors === _errs92) { - if (typeof data38 === 'string') { - if (!formats22.validate(data38)) { - const err51 = { + if (data39.start !== undefined) { + let data40 = data39.start; + const _errs96 = errors; + if (errors === _errs96) { + if (errors === _errs96) { + if (typeof data40 === 'string') { + if (!formats26.validate(data40)) { + const err55 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -80915,17 +84319,17 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -80946,30 +84350,30 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid23 = _errs92 === errors; + var valid23 = _errs96 === errors; } else { var valid23 = true; } if (valid23) { - if (data37.end !== undefined) { - let data39 = data37.end; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data39 === 'string') { - if (!formats22.validate(data39)) { - const err53 = { + if (data39.end !== undefined) { + let data41 = data39.end; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data41 === 'string') { + if (!formats26.validate(data41)) { + const err57 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -80989,17 +84393,17 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -81020,24 +84424,24 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid23 = _errs94 === errors; + var valid23 = _errs98 === errors; } else { var valid23 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -81055,23 +84459,23 @@ function validate117( schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.announcedAvailability .items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid22 = _errs90 === errors; + var valid22 = _errs94 === errors; if (!valid22) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/device/announcedAvailability', schemaPath: @@ -81085,29 +84489,29 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[1] .properties.announcedAvailability, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid21 = _errs88 === errors; + var valid21 = _errs92 === errors; } else { var valid21 = true; } if (valid21) { if (data4.experiment !== undefined) { - let data40 = data4.experiment; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err57 = { + let data42 = data4.experiment; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err61 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/format', @@ -81118,17 +84522,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/type', @@ -81141,46 +84545,46 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid21 = _errs96 === errors; + var valid21 = _errs100 === errors; } else { var valid21 = true; } if (valid21) { if (data4.services !== undefined) { - let data41 = data4.services; - const _errs98 = errors; - if (errors === _errs98) { - if (Array.isArray(data41)) { + let data43 = data4.services; + const _errs102 = errors; + if (errors === _errs102) { + if (Array.isArray(data43)) { var valid24 = true; - const len6 = data41.length; + const len6 = data43.length; for (let i6 = 0; i6 < len6; i6++) { - let data42 = data41[i6]; - const _errs100 = errors; - if (errors === _errs100) { + let data44 = data43[i6]; + const _errs104 = errors; + if (errors === _errs104) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { - if (data42.serviceType !== undefined) { - let data43 = data42.serviceType; - const _errs103 = errors; - if (errors === _errs103) { - if (errors === _errs103) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err59 = { + if (data44.serviceType !== undefined) { + let data45 = data44.serviceType; + const _errs107 = errors; + if (errors === _errs107) { + if (errors === _errs107) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err63 = { instancePath: instancePath + '/device/services/' + @@ -81200,17 +84604,17 @@ function validate117( .device.anyOf[1].allOf[1] .properties.services.items .properties.serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/device/services/' + @@ -81231,27 +84635,27 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid25 = _errs103 === errors; + var valid25 = _errs107 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceId !== undefined) { - let data44 = data42.serviceId; - const _errs105 = errors; - if (typeof data44 !== 'string') { - const err61 = { + if (data44.serviceId !== undefined) { + let data46 = data44.serviceId; + const _errs109 = errors; + if (typeof data46 !== 'string') { + const err65 = { instancePath: instancePath + '/device/services/' + @@ -81272,25 +84676,25 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceId, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid25 = _errs105 === errors; + var valid25 = _errs109 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceDirection !== undefined) { - let data45 = data42.serviceDirection; - const _errs107 = errors; - if (typeof data45 !== 'string') { - const err62 = { + if (data44.serviceDirection !== undefined) { + let data47 = data44.serviceDirection; + const _errs111 = errors; + if (typeof data47 !== 'string') { + const err66 = { instancePath: instancePath + '/device/services/' + @@ -81311,23 +84715,23 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data45 === 'consumer' || - data45 === 'producer' || - data45 === 'prosumer' + data47 === 'consumer' || + data47 === 'producer' || + data47 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/device/services/' + @@ -81356,23 +84760,23 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid25 = _errs107 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/device/services/' + i6, schemaPath: @@ -81388,23 +84792,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid24 = _errs100 === errors; + var valid24 = _errs104 === errors; if (!valid24) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/services/type', @@ -81417,17 +84821,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs98 === errors; + var valid21 = _errs102 === errors; } else { var valid21 = true; } @@ -81436,7 +84840,7 @@ function validate117( } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/type', keyword: 'type', @@ -81449,30 +84853,32 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid15 = _errs83 === errors; + var valid15 = _errs87 === errors; } - var _valid0 = _errs58 === errors; + var _valid0 = _errs60 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs109 = errors; - const _errs110 = errors; - if (errors === _errs110) { + const _errs113 = errors; + const _errs114 = errors; + if (errors === _errs114) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing9; if ( (data4.url === undefined && (missing9 = 'url')) || (data4.type === undefined && (missing9 = 'type')) || (data4.name === undefined && (missing9 = 'name')) || - (data4.isPublic === undefined && (missing9 = 'isPublic')) + (data4.isPublic === undefined && (missing9 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing9 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/required', @@ -81487,20 +84893,20 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data4.url !== undefined) { - let data46 = data4.url; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data46 === 'string') { - if (!formats0(data46)) { - const err68 = { + let data48 = data4.url; + const _errs116 = errors; + if (errors === _errs116) { + if (errors === _errs116) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err72 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/format', @@ -81511,17 +84917,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/type', @@ -81534,27 +84940,27 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[0] .properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs116 === errors; } else { var valid27 = true; } if (valid27) { if (data4.name !== undefined) { - let data47 = data4.name; - const _errs114 = errors; - if (typeof data47 !== 'string') { - const err70 = { + let data49 = data4.name; + const _errs118 = errors; + if (typeof data49 !== 'string') { + const err74 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/name/type', @@ -81567,25 +84973,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[0] .properties.name, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { if (data4.description !== undefined) { - let data48 = data4.description; - const _errs116 = errors; - if (typeof data48 !== 'string') { - const err71 = { + let data50 = data4.description; + const _errs120 = errors; + if (typeof data50 !== 'string') { + const err75 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/description/type', @@ -81598,25 +85004,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[0] .properties.description, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { if (data4.type !== undefined) { - let data49 = data4.type; - const _errs118 = errors; - if (typeof data49 !== 'string') { - const err72 = { + let data51 = data4.type; + const _errs122 = errors; + if (typeof data51 !== 'string') { + const err76 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/type', @@ -81629,24 +85035,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data49 === 'device' || - data49 === 'group' || - data49 === 'edge instantiable' || - data49 === 'cloud instantiable' + data51 === 'device' || + data51 === 'group' || + data51 === 'edge instantiable' || + data51 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/enum', @@ -81663,25 +85069,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid27 = _errs118 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } if (valid27) { if (data4.isPublic !== undefined) { - let data50 = data4.isPublic; - const _errs120 = errors; - if (typeof data50 !== 'boolean') { - const err74 = { + let data52 = data4.isPublic; + const _errs124 = errors; + if (typeof data52 !== 'boolean') { + const err78 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/isPublic/type', @@ -81694,42 +85100,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.isPublic, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs124 === errors; } else { var valid27 = true; } if (valid27) { if (data4.viewer !== undefined) { - let data51 = data4.viewer; - const _errs122 = errors; - if (errors === _errs122) { - if (Array.isArray(data51)) { + let data53 = data4.viewer; + const _errs126 = errors; + if (errors === _errs126) { + if (Array.isArray(data53)) { var valid28 = true; - const len7 = data51.length; + const len7 = data53.length; for (let i7 = 0; i7 < len7; i7++) { - let data52 = data51[i7]; - const _errs124 = errors; - if (errors === _errs124) { + let data54 = data53[i7]; + const _errs128 = errors; + if (errors === _errs128) { if ( - data52 && - typeof data52 == 'object' && - !Array.isArray(data52) + data54 && + typeof data54 == 'object' && + !Array.isArray(data54) ) { let missing10; if ( - data52.url === undefined && + data54.url === undefined && (missing10 = 'url') ) { - const err75 = { + const err79 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -81748,23 +85154,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data52.url !== undefined) { - let data53 = data52.url; - const _errs126 = errors; - if (errors === _errs126) { - if (errors === _errs126) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err76 = { + if (data54.url !== undefined) { + let data55 = data54.url; + const _errs130 = errors; + if (errors === _errs130) { + if (errors === _errs130) { + if (typeof data55 === 'string') { + if (!formats0(data55)) { + const err80 = { instancePath: instancePath + '/device/viewer/' + @@ -81785,17 +85191,17 @@ function validate117( .anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/device/viewer/' + @@ -81816,12 +85222,12 @@ function validate117( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -81830,7 +85236,7 @@ function validate117( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -81846,23 +85252,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid28 = _errs124 === errors; + var valid28 = _errs128 === errors; if (!valid28) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/viewer/type', @@ -81875,43 +85281,43 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.viewer, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid27 = _errs122 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data4.owner !== undefined) { - let data54 = data4.owner; - const _errs128 = errors; - if (errors === _errs128) { - if (Array.isArray(data54)) { + let data56 = data4.owner; + const _errs132 = errors; + if (errors === _errs132) { + if (Array.isArray(data56)) { var valid30 = true; - const len8 = data54.length; + const len8 = data56.length; for (let i8 = 0; i8 < len8; i8++) { - let data55 = data54[i8]; - const _errs130 = errors; - if (errors === _errs130) { + let data57 = data56[i8]; + const _errs134 = errors; + if (errors === _errs134) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data57 && + typeof data57 == 'object' && + !Array.isArray(data57) ) { let missing11; if ( - data55.url === undefined && + data57.url === undefined && (missing11 = 'url') ) { - const err80 = { + const err84 = { instancePath: instancePath + '/device/owner/' + @@ -81934,23 +85340,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties .owner.items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data55.url !== undefined) { - let data56 = data55.url; - const _errs132 = errors; - if (errors === _errs132) { - if (errors === _errs132) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err81 = { + if (data57.url !== undefined) { + let data58 = data57.url; + const _errs136 = errors; + if (errors === _errs136) { + if (errors === _errs136) { + if (typeof data58 === 'string') { + if (!formats0(data58)) { + const err85 = { instancePath: instancePath + '/device/owner/' + @@ -81971,17 +85377,17 @@ function validate117( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/device/owner/' + @@ -82004,12 +85410,12 @@ function validate117( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -82018,7 +85424,7 @@ function validate117( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/device/owner/' + i8, schemaPath: @@ -82034,23 +85440,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid30 = _errs130 === errors; + var valid30 = _errs134 === errors; if (!valid30) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/owner/type', @@ -82063,20 +85469,86 @@ function validate117( parentSchema: schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner, - data: data54, + data: data56, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid27 = _errs128 === errors; + var valid27 = _errs132 === errors; } else { var valid27 = true; } + if (valid27) { + if (data4.bookingEndpoint !== undefined) { + let data59 = data4.bookingEndpoint; + const _errs138 = errors; + if (errors === _errs138) { + if (errors === _errs138) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err89 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid27 = _errs138 === errors; + } else { + var valid27 = true; + } + } } } } @@ -82085,7 +85557,7 @@ function validate117( } } } else { - const err85 = { + const err91 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/type', keyword: 'type', @@ -82098,23 +85570,23 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid26 = _errs110 === errors; + var valid26 = _errs114 === errors; if (valid26) { - const _errs134 = errors; - if (errors === _errs134) { + const _errs140 = errors; + if (errors === _errs140) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data57 = data4.type; - const _errs136 = errors; - if ('edge instantiable' !== data57) { - const err86 = { + let data60 = data4.type; + const _errs142 = errors; + if ('edge instantiable' !== data60) { + const err92 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/type/const', @@ -82125,28 +85597,28 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[1] .properties.type, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid32 = _errs136 === errors; + var valid32 = _errs142 === errors; } else { var valid32 = true; } if (valid32) { if (data4.codeUrl !== undefined) { - let data58 = data4.codeUrl; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data58 === 'string') { - if (!formats0(data58)) { - const err87 = { + let data61 = data4.codeUrl; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data61 === 'string') { + if (!formats0(data61)) { + const err93 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/format', @@ -82157,17 +85629,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/type', @@ -82180,46 +85652,46 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; } else { var valid32 = true; } if (valid32) { if (data4.services !== undefined) { - let data59 = data4.services; - const _errs139 = errors; - if (errors === _errs139) { - if (Array.isArray(data59)) { + let data62 = data4.services; + const _errs145 = errors; + if (errors === _errs145) { + if (Array.isArray(data62)) { var valid33 = true; - const len9 = data59.length; + const len9 = data62.length; for (let i9 = 0; i9 < len9; i9++) { - let data60 = data59[i9]; - const _errs141 = errors; - if (errors === _errs141) { + let data63 = data62[i9]; + const _errs147 = errors; + if (errors === _errs147) { if ( - data60 && - typeof data60 == 'object' && - !Array.isArray(data60) + data63 && + typeof data63 == 'object' && + !Array.isArray(data63) ) { - if (data60.serviceType !== undefined) { - let data61 = data60.serviceType; - const _errs144 = errors; - if (errors === _errs144) { - if (errors === _errs144) { - if (typeof data61 === 'string') { - if (!formats0(data61)) { - const err89 = { + if (data63.serviceType !== undefined) { + let data64 = data63.serviceType; + const _errs150 = errors; + if (errors === _errs150) { + if (errors === _errs150) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err95 = { instancePath: instancePath + '/device/services/' + @@ -82237,17 +85709,17 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/device/services/' + @@ -82268,27 +85740,27 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid34 = _errs144 === errors; + var valid34 = _errs150 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceId !== undefined) { - let data62 = data60.serviceId; - const _errs146 = errors; - if (typeof data62 !== 'string') { - const err91 = { + if (data63.serviceId !== undefined) { + let data65 = data63.serviceId; + const _errs152 = errors; + if (typeof data65 !== 'string') { + const err97 = { instancePath: instancePath + '/device/services/' + @@ -82307,25 +85779,25 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid34 = _errs146 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceDirection !== undefined) { - let data63 = data60.serviceDirection; - const _errs148 = errors; - if (typeof data63 !== 'string') { - const err92 = { + if (data63.serviceDirection !== undefined) { + let data66 = data63.serviceDirection; + const _errs154 = errors; + if (typeof data66 !== 'string') { + const err98 = { instancePath: instancePath + '/device/services/' + @@ -82346,23 +85818,23 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data63 === 'consumer' || - data63 === 'producer' || - data63 === 'prosumer' + data66 === 'consumer' || + data66 === 'producer' || + data66 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/device/services/' + @@ -82390,23 +85862,23 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid34 = _errs148 === errors; + var valid34 = _errs154 === errors; } else { var valid34 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/device/services/' + i9, schemaPath: @@ -82420,23 +85892,23 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services.items, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid33 = _errs141 === errors; + var valid33 = _errs147 === errors; if (!valid33) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/services/type', @@ -82449,24 +85921,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid32 = _errs139 === errors; + var valid32 = _errs145 === errors; } else { var valid32 = true; } } } } else { - const err96 = { + const err102 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/type', keyword: 'type', @@ -82479,30 +85951,32 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid26 = _errs134 === errors; + var valid26 = _errs140 === errors; } - var _valid0 = _errs109 === errors; + var _valid0 = _errs113 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs150 = errors; - const _errs151 = errors; - if (errors === _errs151) { + const _errs156 = errors; + const _errs157 = errors; + if (errors === _errs157) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing12; if ( (data4.url === undefined && (missing12 = 'url')) || (data4.type === undefined && (missing12 = 'type')) || (data4.name === undefined && (missing12 = 'name')) || - (data4.isPublic === undefined && (missing12 = 'isPublic')) + (data4.isPublic === undefined && (missing12 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing12 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/required', @@ -82517,20 +85991,20 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data4.url !== undefined) { - let data64 = data4.url; - const _errs153 = errors; - if (errors === _errs153) { - if (errors === _errs153) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err98 = { + let data67 = data4.url; + const _errs159 = errors; + if (errors === _errs159) { + if (errors === _errs159) { + if (typeof data67 === 'string') { + if (!formats0(data67)) { + const err104 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/format', @@ -82541,17 +86015,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/type', @@ -82564,27 +86038,27 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid36 = _errs153 === errors; + var valid36 = _errs159 === errors; } else { var valid36 = true; } if (valid36) { if (data4.name !== undefined) { - let data65 = data4.name; - const _errs155 = errors; - if (typeof data65 !== 'string') { - const err100 = { + let data68 = data4.name; + const _errs161 = errors; + if (typeof data68 !== 'string') { + const err106 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/name/type', @@ -82597,25 +86071,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3].allOf[0] .properties.name, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid36 = _errs155 === errors; + var valid36 = _errs161 === errors; } else { var valid36 = true; } if (valid36) { if (data4.description !== undefined) { - let data66 = data4.description; - const _errs157 = errors; - if (typeof data66 !== 'string') { - const err101 = { + let data69 = data4.description; + const _errs163 = errors; + if (typeof data69 !== 'string') { + const err107 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/description/type', @@ -82628,25 +86102,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.description, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid36 = _errs157 === errors; + var valid36 = _errs163 === errors; } else { var valid36 = true; } if (valid36) { if (data4.type !== undefined) { - let data67 = data4.type; - const _errs159 = errors; - if (typeof data67 !== 'string') { - const err102 = { + let data70 = data4.type; + const _errs165 = errors; + if (typeof data70 !== 'string') { + const err108 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/type', @@ -82659,24 +86133,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data67 === 'device' || - data67 === 'group' || - data67 === 'edge instantiable' || - data67 === 'cloud instantiable' + data70 === 'device' || + data70 === 'group' || + data70 === 'edge instantiable' || + data70 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/enum', @@ -82694,25 +86168,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid36 = _errs159 === errors; + var valid36 = _errs165 === errors; } else { var valid36 = true; } if (valid36) { if (data4.isPublic !== undefined) { - let data68 = data4.isPublic; - const _errs161 = errors; - if (typeof data68 !== 'boolean') { - const err104 = { + let data71 = data4.isPublic; + const _errs167 = errors; + if (typeof data71 !== 'boolean') { + const err110 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/isPublic/type', @@ -82725,42 +86199,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.isPublic, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs167 === errors; } else { var valid36 = true; } if (valid36) { if (data4.viewer !== undefined) { - let data69 = data4.viewer; - const _errs163 = errors; - if (errors === _errs163) { - if (Array.isArray(data69)) { + let data72 = data4.viewer; + const _errs169 = errors; + if (errors === _errs169) { + if (Array.isArray(data72)) { var valid37 = true; - const len10 = data69.length; + const len10 = data72.length; for (let i10 = 0; i10 < len10; i10++) { - let data70 = data69[i10]; - const _errs165 = errors; - if (errors === _errs165) { + let data73 = data72[i10]; + const _errs171 = errors; + if (errors === _errs171) { if ( - data70 && - typeof data70 == 'object' && - !Array.isArray(data70) + data73 && + typeof data73 == 'object' && + !Array.isArray(data73) ) { let missing13; if ( - data70.url === undefined && + data73.url === undefined && (missing13 = 'url') ) { - const err105 = { + const err111 = { instancePath: instancePath + '/device/viewer/' + @@ -82783,23 +86257,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties .viewer.items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data70.url !== undefined) { - let data71 = data70.url; - const _errs167 = errors; - if (errors === _errs167) { - if (errors === _errs167) { - if (typeof data71 === 'string') { - if (!formats0(data71)) { - const err106 = { + if (data73.url !== undefined) { + let data74 = data73.url; + const _errs173 = errors; + if (errors === _errs173) { + if (errors === _errs173) { + if (typeof data74 === 'string') { + if (!formats0(data74)) { + const err112 = { instancePath: instancePath + '/device/viewer/' + @@ -82820,17 +86294,17 @@ function validate117( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/device/viewer/' + @@ -82853,12 +86327,12 @@ function validate117( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -82867,7 +86341,7 @@ function validate117( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/device/viewer/' + @@ -82885,23 +86359,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid37 = _errs165 === errors; + var valid37 = _errs171 === errors; if (!valid37) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/viewer/type', @@ -82914,43 +86388,43 @@ function validate117( parentSchema: schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid36 = _errs163 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data4.owner !== undefined) { - let data72 = data4.owner; - const _errs169 = errors; - if (errors === _errs169) { - if (Array.isArray(data72)) { + let data75 = data4.owner; + const _errs175 = errors; + if (errors === _errs175) { + if (Array.isArray(data75)) { var valid39 = true; - const len11 = data72.length; + const len11 = data75.length; for (let i11 = 0; i11 < len11; i11++) { - let data73 = data72[i11]; - const _errs171 = errors; - if (errors === _errs171) { + let data76 = data75[i11]; + const _errs177 = errors; + if (errors === _errs177) { if ( - data73 && - typeof data73 == 'object' && - !Array.isArray(data73) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing14; if ( - data73.url === undefined && + data76.url === undefined && (missing14 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/device/owner/' + @@ -82974,25 +86448,25 @@ function validate117( schema102.allOf[1].properties .device.anyOf[3].allOf[0] .properties.owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data73.url !== undefined) { - let data74 = data73.url; - const _errs173 = errors; - if (errors === _errs173) { - if (errors === _errs173) { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs179 = errors; + if (errors === _errs179) { + if (errors === _errs179) { if ( - typeof data74 === 'string' + typeof data77 === 'string' ) { - if (!formats0(data74)) { - const err111 = { + if (!formats0(data77)) { + const err117 = { instancePath: instancePath + '/device/owner/' + @@ -83013,17 +86487,17 @@ function validate117( .anyOf[3].allOf[0] .properties.owner .items.properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/device/owner/' + @@ -83046,12 +86520,12 @@ function validate117( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -83060,7 +86534,7 @@ function validate117( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/device/owner/' + @@ -83078,23 +86552,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties .owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid39 = _errs171 === errors; + var valid39 = _errs177 === errors; if (!valid39) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/device/owner', schemaPath: @@ -83109,20 +86583,86 @@ function validate117( parentSchema: schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner, - data: data72, + data: data75, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid36 = _errs169 === errors; + var valid36 = _errs175 === errors; } else { var valid36 = true; } + if (valid36) { + if (data4.bookingEndpoint !== undefined) { + let data78 = data4.bookingEndpoint; + const _errs181 = errors; + if (errors === _errs181) { + if (errors === _errs181) { + if (typeof data78 === 'string') { + if (!formats0(data78)) { + const err121 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid36 = _errs181 === errors; + } else { + var valid36 = true; + } + } } } } @@ -83131,7 +86671,7 @@ function validate117( } } } else { - const err115 = { + const err123 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/type', keyword: 'type', @@ -83144,21 +86684,21 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid35 = _errs151 === errors; + var valid35 = _errs157 === errors; if (valid35) { - const _errs175 = errors; - if (errors === _errs175) { + const _errs183 = errors; + if (errors === _errs183) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing15; if (data4.devices === undefined && (missing15 = 'devices')) { - const err116 = { + const err124 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/required', @@ -83173,17 +86713,17 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data4.type !== undefined) { - let data75 = data4.type; - const _errs177 = errors; - if ('group' !== data75) { - const err117 = { + let data79 = data4.type; + const _errs185 = errors; + if ('group' !== data79) { + const err125 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/type/const', @@ -83194,42 +86734,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3].allOf[1] .properties.type, - data: data75, + data: data79, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid41 = _errs177 === errors; + var valid41 = _errs185 === errors; } else { var valid41 = true; } if (valid41) { if (data4.devices !== undefined) { - let data76 = data4.devices; - const _errs178 = errors; - if (errors === _errs178) { - if (Array.isArray(data76)) { + let data80 = data4.devices; + const _errs186 = errors; + if (errors === _errs186) { + if (Array.isArray(data80)) { var valid42 = true; - const len12 = data76.length; + const len12 = data80.length; for (let i12 = 0; i12 < len12; i12++) { - let data77 = data76[i12]; - const _errs180 = errors; - if (errors === _errs180) { + let data81 = data80[i12]; + const _errs188 = errors; + if (errors === _errs188) { if ( - data77 && - typeof data77 == 'object' && - !Array.isArray(data77) + data81 && + typeof data81 == 'object' && + !Array.isArray(data81) ) { let missing16; if ( - data77.url === undefined && + data81.url === undefined && (missing16 = 'url') ) { - const err118 = { + const err126 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -83248,23 +86788,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data77.url !== undefined) { - let data78 = data77.url; - const _errs182 = errors; - if (errors === _errs182) { - if (errors === _errs182) { - if (typeof data78 === 'string') { - if (!formats0(data78)) { - const err119 = { + if (data81.url !== undefined) { + let data82 = data81.url; + const _errs190 = errors; + if (errors === _errs190) { + if (errors === _errs190) { + if (typeof data82 === 'string') { + if (!formats0(data82)) { + const err127 = { instancePath: instancePath + '/device/devices/' + @@ -83284,17 +86824,17 @@ function validate117( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/device/devices/' + @@ -83315,12 +86855,12 @@ function validate117( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -83329,7 +86869,7 @@ function validate117( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -83345,23 +86885,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid42 = _errs180 === errors; + var valid42 = _errs188 === errors; if (!valid42) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/device/devices', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/devices/type', @@ -83374,24 +86914,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices, - data: data76, + data: data80, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid41 = _errs178 === errors; + var valid41 = _errs186 === errors; } else { var valid41 = true; } } } } else { - const err123 = { + const err131 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/type', @@ -83405,22 +86945,22 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid35 = _errs175 === errors; + var valid35 = _errs183 === errors; } - var _valid0 = _errs150 === errors; + var _valid0 = _errs156 === errors; valid5 = valid5 || _valid0; } } } if (!valid5) { - const err124 = { + const err132 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf', keyword: 'anyOf', @@ -83431,9 +86971,9 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate117.errors = vErrors; @@ -97456,7 +100996,7 @@ function validate130( if (errors === _errs3) { if (errors === _errs3) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate130.errors = [ { instancePath: instancePath + '/start', @@ -97499,7 +101039,7 @@ function validate130( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate130.errors = [ { instancePath: instancePath + '/end', @@ -97659,7 +101199,7 @@ function validate130( if (errors === _errs15) { if (errors === _errs15) { if (typeof data5 === 'string') { - if (!formats22.validate(data5)) { + if (!formats26.validate(data5)) { validate130.errors = [ { instancePath: instancePath + '/repeat/until', @@ -97853,7 +101393,7 @@ function validate131( if (errors === _errs3) { if (errors === _errs3) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate131.errors = [ { instancePath: instancePath + '/start', @@ -97896,7 +101436,7 @@ function validate131( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate131.errors = [ { instancePath: instancePath + '/end', @@ -98056,7 +101596,7 @@ function validate131( if (errors === _errs15) { if (errors === _errs15) { if (typeof data5 === 'string') { - if (!formats22.validate(data5)) { + if (!formats26.validate(data5)) { validate131.errors = [ { instancePath: instancePath + '/repeat/until', @@ -110459,7 +113999,7 @@ function validate164( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate164.errors = [ { instancePath, @@ -110512,7 +114052,7 @@ function validate165( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate165.errors = [ { instancePath, @@ -110631,7 +114171,7 @@ function validate168( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate168.errors = [ { instancePath, @@ -110684,7 +114224,7 @@ function validate169( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate169.errors = [ { instancePath, @@ -110737,7 +114277,7 @@ function validate170( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate170.errors = [ { instancePath, @@ -110790,7 +114330,7 @@ function validate171( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate171.errors = [ { instancePath, @@ -111055,7 +114595,7 @@ function validate176( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate176.errors = [ { instancePath, @@ -111108,7 +114648,7 @@ function validate177( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate177.errors = [ { instancePath, @@ -111294,8 +114834,13 @@ const schema165 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, 'x-standalone': false, @@ -111323,7 +114868,8 @@ function validate180( if ( (data0.type === undefined && (missing0 = 'type')) || (data0.name === undefined && (missing0 = 'name')) || - (data0.isPublic === undefined && (missing0 = 'isPublic')) + (data0.isPublic === undefined && (missing0 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate180.errors = [ { @@ -111744,6 +115290,57 @@ function validate180( } else { var valid1 = true; } + if (valid1) { + if (data0.bookingEndpoint !== undefined) { + let data11 = data0.bookingEndpoint; + const _errs23 = errors; + if (errors === _errs23) { + if (errors === _errs23) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate180.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema165.items.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate180.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema165.items.properties.bookingEndpoint.type, + parentSchema: + schema165.items.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs23 === errors; + } else { + var valid1 = true; + } + } } } } @@ -111841,8 +115438,13 @@ const schema166 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, 'x-standalone': false, @@ -111871,7 +115473,8 @@ function validate181( (data0.url === undefined && (missing0 = 'url')) || (data0.type === undefined && (missing0 = 'type')) || (data0.name === undefined && (missing0 = 'name')) || - (data0.isPublic === undefined && (missing0 = 'isPublic')) + (data0.isPublic === undefined && (missing0 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate181.errors = [ { @@ -112344,6 +115947,57 @@ function validate181( } else { var valid1 = true; } + if (valid1) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs25 = errors; + if (errors === _errs25) { + if (errors === _errs25) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate181.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema166.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate181.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema166.items.properties.bookingEndpoint.type, + parentSchema: + schema166.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid1 = _errs25 === errors; + } else { + var valid1 = true; + } + } } } } @@ -112440,8 +116094,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112515,8 +116174,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112590,8 +116254,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112665,8 +116334,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112718,7 +116392,8 @@ function validate182( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -113160,6 +116835,62 @@ function validate182( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema167.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -113167,7 +116898,7 @@ function validate182( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -113178,23 +116909,23 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -113202,28 +116933,28 @@ function validate182( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema167.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -113231,17 +116962,17 @@ function validate182( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema167.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -113249,42 +116980,42 @@ function validate182( message: 'must be string', schema: schema167.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema167.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -113296,17 +117027,17 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -113320,27 +117051,27 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -113354,25 +117085,25 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -113389,23 +117120,23 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -113426,23 +117157,23 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -113452,23 +117183,23 @@ function validate182( schema167.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema167.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -113476,24 +117207,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[0].allOf[1].properties.services.type, parentSchema: schema167.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -113504,29 +117235,30 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -113537,17 +117269,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -113555,25 +117287,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[0].properties.name.type, parentSchema: schema167.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -113581,25 +117313,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[0].properties.description.type, parentSchema: schema167.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -113607,24 +117339,24 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[0].properties.type.type, parentSchema: schema167.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -113634,25 +117366,25 @@ function validate182( message: 'must be equal to one of the allowed values', schema: schema167.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema167.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -113660,39 +117392,39 @@ function validate182( message: 'must be boolean', schema: schema167.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema167.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -113705,23 +117437,23 @@ function validate182( .required, parentSchema: schema167.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -113733,17 +117465,17 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -113757,12 +117489,12 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -113771,7 +117503,7 @@ function validate182( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -113783,23 +117515,23 @@ function validate182( .type, parentSchema: schema167.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -113807,40 +117539,40 @@ function validate182( message: 'must be array', schema: schema167.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema167.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -113853,23 +117585,23 @@ function validate182( .required, parentSchema: schema167.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -113882,17 +117614,17 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -113906,12 +117638,12 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -113920,7 +117652,7 @@ function validate182( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -113932,23 +117664,23 @@ function validate182( .type, parentSchema: schema167.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -113956,20 +117688,77 @@ function validate182( message: 'must be array', schema: schema167.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema167.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema167.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -113977,7 +117766,7 @@ function validate182( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -113988,23 +117777,23 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -114012,28 +117801,28 @@ function validate182( message: 'must be equal to constant', schema: 'device', parentSchema: schema167.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -114041,17 +117830,17 @@ function validate182( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema167.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -114059,46 +117848,46 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema167.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -114110,17 +117899,17 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -114134,27 +117923,27 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -114168,25 +117957,25 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -114203,23 +117992,23 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -114240,23 +118029,23 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -114267,23 +118056,23 @@ function validate182( schema167.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema167.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -114291,24 +118080,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[1].allOf[1].properties.services.type, parentSchema: schema167.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -114319,29 +118108,30 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -114352,17 +118142,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -114370,25 +118160,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[0].properties.name.type, parentSchema: schema167.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -114396,25 +118186,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[0].properties.description.type, parentSchema: schema167.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -114422,24 +118212,24 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[0].properties.type.type, parentSchema: schema167.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -114449,25 +118239,25 @@ function validate182( message: 'must be equal to one of the allowed values', schema: schema167.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema167.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -114475,39 +118265,39 @@ function validate182( message: 'must be boolean', schema: schema167.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema167.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -114520,23 +118310,23 @@ function validate182( .required, parentSchema: schema167.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -114549,17 +118339,17 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -114573,12 +118363,12 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -114587,7 +118377,7 @@ function validate182( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -114599,23 +118389,23 @@ function validate182( .type, parentSchema: schema167.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -114623,40 +118413,40 @@ function validate182( message: 'must be array', schema: schema167.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema167.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -114670,23 +118460,23 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -114699,17 +118489,17 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -114723,12 +118513,12 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -114737,7 +118527,7 @@ function validate182( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -114749,23 +118539,23 @@ function validate182( .type, parentSchema: schema167.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -114773,20 +118563,78 @@ function validate182( message: 'must be array', schema: schema167.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema167.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema167.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -114794,7 +118642,7 @@ function validate182( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -114805,23 +118653,23 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -114829,28 +118677,28 @@ function validate182( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema167.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -114858,17 +118706,17 @@ function validate182( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema167.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -114876,46 +118724,46 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema167.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -114930,17 +118778,17 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -114954,27 +118802,27 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -114988,25 +118836,25 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -115023,23 +118871,23 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -115061,23 +118909,23 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -115089,23 +118937,23 @@ function validate182( .type, parentSchema: schema167.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -115113,24 +118961,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[2].allOf[1].properties.services.type, parentSchema: schema167.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -115141,29 +118989,30 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -115174,17 +119023,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -115192,25 +119041,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[3].allOf[0].properties.name.type, parentSchema: schema167.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -115218,25 +119067,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[3].allOf[0].properties.description.type, parentSchema: schema167.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -115244,24 +119093,24 @@ function validate182( message: 'must be string', schema: schema167.anyOf[3].allOf[0].properties.type.type, parentSchema: schema167.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -115271,25 +119120,25 @@ function validate182( message: 'must be equal to one of the allowed values', schema: schema167.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema167.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -115297,39 +119146,39 @@ function validate182( message: 'must be boolean', schema: schema167.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema167.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -115343,23 +119192,23 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -115372,17 +119221,17 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -115396,12 +119245,12 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -115410,7 +119259,7 @@ function validate182( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -115422,23 +119271,23 @@ function validate182( .type, parentSchema: schema167.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -115446,40 +119295,40 @@ function validate182( message: 'must be array', schema: schema167.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema167.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -115495,23 +119344,23 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -115527,17 +119376,17 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -115551,12 +119400,12 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -115565,7 +119414,7 @@ function validate182( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -115578,23 +119427,23 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -115603,20 +119452,78 @@ function validate182( schema: schema167.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema167.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema167.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -115624,7 +119531,7 @@ function validate182( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -115635,21 +119542,21 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -115660,17 +119567,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -115678,39 +119585,39 @@ function validate182( message: 'must be equal to constant', schema: 'group', parentSchema: schema167.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -115723,23 +119630,23 @@ function validate182( .required, parentSchema: schema167.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -115751,17 +119658,17 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -115775,12 +119682,12 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -115789,7 +119696,7 @@ function validate182( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -115801,23 +119708,23 @@ function validate182( .type, parentSchema: schema167.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -115825,24 +119732,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema167.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -115853,22 +119760,22 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -115879,9 +119786,9 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate182.errors = vErrors; @@ -115954,117 +119861,127 @@ const schema168 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -116137,8 +120054,13 @@ const schema168 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -116218,8 +120140,13 @@ const schema168 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -116272,7 +120199,8 @@ function validate183( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -116767,6 +120695,63 @@ function validate183( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema168.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -116775,7 +120760,7 @@ function validate183( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -116786,23 +120771,23 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -116810,28 +120795,28 @@ function validate183( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema168.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -116839,17 +120824,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -116857,42 +120842,42 @@ function validate183( message: 'must be string', schema: schema168.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema168.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -116904,17 +120889,17 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -116928,27 +120913,27 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -116962,25 +120947,25 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -116997,23 +120982,23 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -117034,23 +121019,23 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -117060,23 +121045,23 @@ function validate183( schema168.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema168.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -117084,24 +121069,24 @@ function validate183( message: 'must be array', schema: schema168.anyOf[0].allOf[1].properties.services.type, parentSchema: schema168.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -117112,30 +121097,31 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -117146,20 +121132,20 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -117167,17 +121153,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -117185,27 +121171,27 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.url.type, parentSchema: schema168.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -117213,25 +121199,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.name.type, parentSchema: schema168.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -117239,25 +121225,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.description.type, parentSchema: schema168.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -117265,24 +121251,24 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.type.type, parentSchema: schema168.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -117292,25 +121278,25 @@ function validate183( message: 'must be equal to one of the allowed values', schema: schema168.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema168.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -117318,39 +121304,39 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema168.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -117363,23 +121349,23 @@ function validate183( .required, parentSchema: schema168.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -117392,17 +121378,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -117416,12 +121402,12 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -117430,7 +121416,7 @@ function validate183( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -117442,23 +121428,23 @@ function validate183( .type, parentSchema: schema168.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -117466,40 +121452,40 @@ function validate183( message: 'must be array', schema: schema168.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema168.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -117513,23 +121499,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -117542,17 +121528,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -117566,12 +121552,12 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -117580,7 +121566,7 @@ function validate183( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -117592,23 +121578,23 @@ function validate183( .type, parentSchema: schema168.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -117616,20 +121602,78 @@ function validate183( message: 'must be array', schema: schema168.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema168.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema168.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -117638,7 +121682,7 @@ function validate183( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -117649,23 +121693,23 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -117673,25 +121717,25 @@ function validate183( message: 'must be equal to constant', schema: 'device', parentSchema: schema168.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -117699,44 +121743,44 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema168.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117751,17 +121795,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117779,30 +121823,30 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117818,17 +121862,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117846,24 +121890,24 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -117876,23 +121920,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -117903,29 +121947,29 @@ function validate183( schema168.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema168.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -117934,17 +121978,17 @@ function validate183( schema: 'uri', parentSchema: schema168.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -117952,46 +121996,46 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema168.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -118006,17 +122050,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -118033,27 +122077,27 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -118067,25 +122111,25 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -118102,23 +122146,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -118141,23 +122185,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -118169,23 +122213,23 @@ function validate183( .type, parentSchema: schema168.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -118193,17 +122237,17 @@ function validate183( message: 'must be array', schema: schema168.anyOf[1].allOf[1].properties.services.type, parentSchema: schema168.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -118212,7 +122256,7 @@ function validate183( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -118223,30 +122267,31 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -118257,20 +122302,20 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -118278,17 +122323,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -118296,27 +122341,27 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.url.type, parentSchema: schema168.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -118324,25 +122369,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.name.type, parentSchema: schema168.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -118350,25 +122395,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.description.type, parentSchema: schema168.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -118376,24 +122421,24 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.type.type, parentSchema: schema168.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -118403,25 +122448,25 @@ function validate183( message: 'must be equal to one of the allowed values', schema: schema168.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema168.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -118429,39 +122474,39 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema168.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -118475,23 +122520,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -118504,17 +122549,17 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -118528,12 +122573,12 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -118542,7 +122587,7 @@ function validate183( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -118554,23 +122599,23 @@ function validate183( .type, parentSchema: schema168.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -118578,40 +122623,40 @@ function validate183( message: 'must be array', schema: schema168.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema168.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -118627,23 +122672,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -118659,17 +122704,17 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -118683,12 +122728,12 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -118697,7 +122742,7 @@ function validate183( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -118710,23 +122755,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -118735,20 +122780,78 @@ function validate183( schema: schema168.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema168.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema168.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -118757,7 +122860,7 @@ function validate183( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -118768,23 +122871,23 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -118792,28 +122895,28 @@ function validate183( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema168.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -118821,17 +122924,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -118839,46 +122942,46 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema168.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -118893,17 +122996,17 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -118917,27 +123020,27 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -118951,25 +123054,25 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -118986,23 +123089,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -119024,23 +123127,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -119052,23 +123155,23 @@ function validate183( .type, parentSchema: schema168.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -119076,24 +123179,24 @@ function validate183( message: 'must be array', schema: schema168.anyOf[2].allOf[1].properties.services.type, parentSchema: schema168.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -119104,30 +123207,31 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -119138,20 +123242,20 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -119159,17 +123263,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -119177,27 +123281,27 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.url.type, parentSchema: schema168.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -119205,25 +123309,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.name.type, parentSchema: schema168.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -119231,25 +123335,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.description.type, parentSchema: schema168.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -119257,24 +123361,24 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.type.type, parentSchema: schema168.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -119285,25 +123389,25 @@ function validate183( message: 'must be equal to one of the allowed values', schema: schema168.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema168.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -119311,39 +123415,39 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema168.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -119359,23 +123463,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -119391,17 +123495,17 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -119418,12 +123522,12 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -119432,7 +123536,7 @@ function validate183( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -119445,23 +123549,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -119471,43 +123575,43 @@ function validate183( schema168.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema168.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -119523,23 +123627,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -119556,17 +123660,17 @@ function validate183( schema168.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -119583,12 +123687,12 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -119597,7 +123701,7 @@ function validate183( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -119610,23 +123714,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -119636,20 +123740,78 @@ function validate183( schema168.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema168.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema168.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -119658,7 +123820,7 @@ function validate183( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -119669,21 +123831,21 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -119694,17 +123856,17 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -119712,39 +123874,39 @@ function validate183( message: 'must be equal to constant', schema: 'group', parentSchema: schema168.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -119757,23 +123919,23 @@ function validate183( .required, parentSchema: schema168.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -119785,17 +123947,17 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -119809,12 +123971,12 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -119823,7 +123985,7 @@ function validate183( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -119835,23 +123997,23 @@ function validate183( .type, parentSchema: schema168.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -119859,24 +124021,24 @@ function validate183( message: 'must be array', schema: schema168.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema168.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -119887,22 +124049,22 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -119913,9 +124075,9 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate183.errors = vErrors; @@ -119982,8 +124144,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120057,8 +124224,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120132,8 +124304,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120207,8 +124384,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120260,7 +124442,8 @@ function validate184( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -120702,6 +124885,62 @@ function validate184( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema169.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -120709,7 +124948,7 @@ function validate184( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -120720,23 +124959,23 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -120744,28 +124983,28 @@ function validate184( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema169.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -120773,17 +125012,17 @@ function validate184( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema169.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -120791,42 +125030,42 @@ function validate184( message: 'must be string', schema: schema169.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema169.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -120838,17 +125077,17 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -120862,27 +125101,27 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -120896,25 +125135,25 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -120931,23 +125170,23 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -120968,23 +125207,23 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -120994,23 +125233,23 @@ function validate184( schema169.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema169.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -121018,24 +125257,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[0].allOf[1].properties.services.type, parentSchema: schema169.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -121046,29 +125285,30 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -121079,17 +125319,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -121097,25 +125337,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[0].properties.name.type, parentSchema: schema169.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -121123,25 +125363,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[0].properties.description.type, parentSchema: schema169.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -121149,24 +125389,24 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[0].properties.type.type, parentSchema: schema169.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -121176,25 +125416,25 @@ function validate184( message: 'must be equal to one of the allowed values', schema: schema169.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema169.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -121202,39 +125442,39 @@ function validate184( message: 'must be boolean', schema: schema169.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema169.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -121247,23 +125487,23 @@ function validate184( .required, parentSchema: schema169.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -121275,17 +125515,17 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -121299,12 +125539,12 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -121313,7 +125553,7 @@ function validate184( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -121325,23 +125565,23 @@ function validate184( .type, parentSchema: schema169.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -121349,40 +125589,40 @@ function validate184( message: 'must be array', schema: schema169.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema169.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -121395,23 +125635,23 @@ function validate184( .required, parentSchema: schema169.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -121424,17 +125664,17 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -121448,12 +125688,12 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -121462,7 +125702,7 @@ function validate184( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -121474,23 +125714,23 @@ function validate184( .type, parentSchema: schema169.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -121498,20 +125738,77 @@ function validate184( message: 'must be array', schema: schema169.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema169.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema169.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -121519,7 +125816,7 @@ function validate184( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -121530,23 +125827,23 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -121554,28 +125851,28 @@ function validate184( message: 'must be equal to constant', schema: 'device', parentSchema: schema169.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -121583,17 +125880,17 @@ function validate184( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema169.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -121601,46 +125898,46 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema169.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -121652,17 +125949,17 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -121676,27 +125973,27 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -121710,25 +126007,25 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -121745,23 +126042,23 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -121782,23 +126079,23 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -121809,23 +126106,23 @@ function validate184( schema169.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema169.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -121833,24 +126130,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[1].allOf[1].properties.services.type, parentSchema: schema169.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -121861,29 +126158,30 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -121894,17 +126192,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -121912,25 +126210,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[0].properties.name.type, parentSchema: schema169.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -121938,25 +126236,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[0].properties.description.type, parentSchema: schema169.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -121964,24 +126262,24 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[0].properties.type.type, parentSchema: schema169.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -121991,25 +126289,25 @@ function validate184( message: 'must be equal to one of the allowed values', schema: schema169.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema169.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -122017,39 +126315,39 @@ function validate184( message: 'must be boolean', schema: schema169.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema169.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -122062,23 +126360,23 @@ function validate184( .required, parentSchema: schema169.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -122091,17 +126389,17 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -122115,12 +126413,12 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -122129,7 +126427,7 @@ function validate184( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -122141,23 +126439,23 @@ function validate184( .type, parentSchema: schema169.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -122165,40 +126463,40 @@ function validate184( message: 'must be array', schema: schema169.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema169.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -122212,23 +126510,23 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -122241,17 +126539,17 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -122265,12 +126563,12 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -122279,7 +126577,7 @@ function validate184( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -122291,23 +126589,23 @@ function validate184( .type, parentSchema: schema169.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -122315,20 +126613,78 @@ function validate184( message: 'must be array', schema: schema169.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema169.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema169.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -122336,7 +126692,7 @@ function validate184( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -122347,23 +126703,23 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -122371,28 +126727,28 @@ function validate184( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema169.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -122400,17 +126756,17 @@ function validate184( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema169.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -122418,46 +126774,46 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema169.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -122472,17 +126828,17 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -122496,27 +126852,27 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -122530,25 +126886,25 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -122565,23 +126921,23 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -122603,23 +126959,23 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -122631,23 +126987,23 @@ function validate184( .type, parentSchema: schema169.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -122655,24 +127011,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[2].allOf[1].properties.services.type, parentSchema: schema169.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -122683,29 +127039,30 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -122716,17 +127073,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -122734,25 +127091,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[3].allOf[0].properties.name.type, parentSchema: schema169.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -122760,25 +127117,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[3].allOf[0].properties.description.type, parentSchema: schema169.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -122786,24 +127143,24 @@ function validate184( message: 'must be string', schema: schema169.anyOf[3].allOf[0].properties.type.type, parentSchema: schema169.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -122813,25 +127170,25 @@ function validate184( message: 'must be equal to one of the allowed values', schema: schema169.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema169.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -122839,39 +127196,39 @@ function validate184( message: 'must be boolean', schema: schema169.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema169.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -122885,23 +127242,23 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -122914,17 +127271,17 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -122938,12 +127295,12 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -122952,7 +127309,7 @@ function validate184( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -122964,23 +127321,23 @@ function validate184( .type, parentSchema: schema169.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -122988,40 +127345,40 @@ function validate184( message: 'must be array', schema: schema169.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema169.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -123037,23 +127394,23 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -123069,17 +127426,17 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -123093,12 +127450,12 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -123107,7 +127464,7 @@ function validate184( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -123120,23 +127477,23 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -123145,20 +127502,78 @@ function validate184( schema: schema169.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema169.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema169.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -123166,7 +127581,7 @@ function validate184( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -123177,21 +127592,21 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -123202,17 +127617,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -123220,39 +127635,39 @@ function validate184( message: 'must be equal to constant', schema: 'group', parentSchema: schema169.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -123265,23 +127680,23 @@ function validate184( .required, parentSchema: schema169.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -123293,17 +127708,17 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -123317,12 +127732,12 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -123331,7 +127746,7 @@ function validate184( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -123343,23 +127758,23 @@ function validate184( .type, parentSchema: schema169.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -123367,24 +127782,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema169.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -123395,22 +127810,22 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -123421,9 +127836,9 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate184.errors = vErrors; @@ -123496,117 +127911,127 @@ const schema170 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -123679,8 +128104,13 @@ const schema170 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -123760,8 +128190,13 @@ const schema170 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -123814,7 +128249,8 @@ function validate185( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -124309,6 +128745,63 @@ function validate185( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema170.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -124317,7 +128810,7 @@ function validate185( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -124328,23 +128821,23 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -124352,28 +128845,28 @@ function validate185( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema170.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -124381,17 +128874,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -124399,42 +128892,42 @@ function validate185( message: 'must be string', schema: schema170.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema170.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -124446,17 +128939,17 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -124470,27 +128963,27 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -124504,25 +128997,25 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -124539,23 +129032,23 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -124576,23 +129069,23 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -124602,23 +129095,23 @@ function validate185( schema170.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema170.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -124626,24 +129119,24 @@ function validate185( message: 'must be array', schema: schema170.anyOf[0].allOf[1].properties.services.type, parentSchema: schema170.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -124654,30 +129147,31 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -124688,20 +129182,20 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -124709,17 +129203,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -124727,27 +129221,27 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.url.type, parentSchema: schema170.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -124755,25 +129249,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.name.type, parentSchema: schema170.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -124781,25 +129275,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.description.type, parentSchema: schema170.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -124807,24 +129301,24 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.type.type, parentSchema: schema170.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -124834,25 +129328,25 @@ function validate185( message: 'must be equal to one of the allowed values', schema: schema170.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema170.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -124860,39 +129354,39 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema170.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -124905,23 +129399,23 @@ function validate185( .required, parentSchema: schema170.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -124934,17 +129428,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -124958,12 +129452,12 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -124972,7 +129466,7 @@ function validate185( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -124984,23 +129478,23 @@ function validate185( .type, parentSchema: schema170.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -125008,40 +129502,40 @@ function validate185( message: 'must be array', schema: schema170.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema170.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -125055,23 +129549,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -125084,17 +129578,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -125108,12 +129602,12 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -125122,7 +129616,7 @@ function validate185( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -125134,23 +129628,23 @@ function validate185( .type, parentSchema: schema170.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -125158,20 +129652,78 @@ function validate185( message: 'must be array', schema: schema170.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema170.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema170.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -125180,7 +129732,7 @@ function validate185( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -125191,23 +129743,23 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -125215,25 +129767,25 @@ function validate185( message: 'must be equal to constant', schema: 'device', parentSchema: schema170.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -125241,44 +129793,44 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema170.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125293,17 +129845,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125321,30 +129873,30 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125360,17 +129912,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125388,24 +129940,24 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -125418,23 +129970,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -125445,29 +129997,29 @@ function validate185( schema170.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema170.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -125476,17 +130028,17 @@ function validate185( schema: 'uri', parentSchema: schema170.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -125494,46 +130046,46 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema170.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -125548,17 +130100,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -125575,27 +130127,27 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -125609,25 +130161,25 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -125644,23 +130196,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -125683,23 +130235,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -125711,23 +130263,23 @@ function validate185( .type, parentSchema: schema170.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -125735,17 +130287,17 @@ function validate185( message: 'must be array', schema: schema170.anyOf[1].allOf[1].properties.services.type, parentSchema: schema170.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -125754,7 +130306,7 @@ function validate185( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -125765,30 +130317,31 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -125799,20 +130352,20 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -125820,17 +130373,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -125838,27 +130391,27 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.url.type, parentSchema: schema170.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -125866,25 +130419,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.name.type, parentSchema: schema170.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -125892,25 +130445,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.description.type, parentSchema: schema170.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -125918,24 +130471,24 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.type.type, parentSchema: schema170.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -125945,25 +130498,25 @@ function validate185( message: 'must be equal to one of the allowed values', schema: schema170.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema170.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -125971,39 +130524,39 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema170.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -126017,23 +130570,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -126046,17 +130599,17 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -126070,12 +130623,12 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -126084,7 +130637,7 @@ function validate185( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -126096,23 +130649,23 @@ function validate185( .type, parentSchema: schema170.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -126120,40 +130673,40 @@ function validate185( message: 'must be array', schema: schema170.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema170.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -126169,23 +130722,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -126201,17 +130754,17 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -126225,12 +130778,12 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -126239,7 +130792,7 @@ function validate185( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -126252,23 +130805,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -126277,20 +130830,78 @@ function validate185( schema: schema170.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema170.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema170.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -126299,7 +130910,7 @@ function validate185( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -126310,23 +130921,23 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -126334,28 +130945,28 @@ function validate185( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema170.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -126363,17 +130974,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -126381,46 +130992,46 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema170.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -126435,17 +131046,17 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -126459,27 +131070,27 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -126493,25 +131104,25 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -126528,23 +131139,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -126566,23 +131177,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -126594,23 +131205,23 @@ function validate185( .type, parentSchema: schema170.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -126618,24 +131229,24 @@ function validate185( message: 'must be array', schema: schema170.anyOf[2].allOf[1].properties.services.type, parentSchema: schema170.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -126646,30 +131257,31 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -126680,20 +131292,20 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -126701,17 +131313,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -126719,27 +131331,27 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.url.type, parentSchema: schema170.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -126747,25 +131359,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.name.type, parentSchema: schema170.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -126773,25 +131385,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.description.type, parentSchema: schema170.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -126799,24 +131411,24 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.type.type, parentSchema: schema170.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -126827,25 +131439,25 @@ function validate185( message: 'must be equal to one of the allowed values', schema: schema170.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema170.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -126853,39 +131465,39 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema170.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -126901,23 +131513,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -126933,17 +131545,17 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -126960,12 +131572,12 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -126974,7 +131586,7 @@ function validate185( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -126987,23 +131599,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -127013,43 +131625,43 @@ function validate185( schema170.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema170.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -127065,23 +131677,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -127098,17 +131710,17 @@ function validate185( schema170.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -127125,12 +131737,12 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -127139,7 +131751,7 @@ function validate185( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -127152,23 +131764,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -127178,20 +131790,78 @@ function validate185( schema170.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema170.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema170.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -127200,7 +131870,7 @@ function validate185( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -127211,21 +131881,21 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -127236,17 +131906,17 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -127254,39 +131924,39 @@ function validate185( message: 'must be equal to constant', schema: 'group', parentSchema: schema170.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -127299,23 +131969,23 @@ function validate185( .required, parentSchema: schema170.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -127327,17 +131997,17 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -127351,12 +132021,12 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -127365,7 +132035,7 @@ function validate185( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -127377,23 +132047,23 @@ function validate185( .type, parentSchema: schema170.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -127401,24 +132071,24 @@ function validate185( message: 'must be array', schema: schema170.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema170.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -127429,22 +132099,22 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -127455,9 +132125,9 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate185.errors = vErrors; @@ -127524,8 +132194,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127599,8 +132274,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127674,8 +132354,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127749,8 +132434,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127802,7 +132492,8 @@ function validate186( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -128244,6 +132935,62 @@ function validate186( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema171.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -128251,7 +132998,7 @@ function validate186( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -128262,23 +133009,23 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -128286,28 +133033,28 @@ function validate186( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema171.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -128315,17 +133062,17 @@ function validate186( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema171.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -128333,42 +133080,42 @@ function validate186( message: 'must be string', schema: schema171.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema171.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -128380,17 +133127,17 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -128404,27 +133151,27 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -128438,25 +133185,25 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -128473,23 +133220,23 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -128510,23 +133257,23 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -128536,23 +133283,23 @@ function validate186( schema171.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema171.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -128560,24 +133307,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[0].allOf[1].properties.services.type, parentSchema: schema171.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -128588,29 +133335,30 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -128621,17 +133369,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -128639,25 +133387,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[0].properties.name.type, parentSchema: schema171.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -128665,25 +133413,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[0].properties.description.type, parentSchema: schema171.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -128691,24 +133439,24 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[0].properties.type.type, parentSchema: schema171.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -128718,25 +133466,25 @@ function validate186( message: 'must be equal to one of the allowed values', schema: schema171.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema171.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -128744,39 +133492,39 @@ function validate186( message: 'must be boolean', schema: schema171.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema171.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -128789,23 +133537,23 @@ function validate186( .required, parentSchema: schema171.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -128817,17 +133565,17 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -128841,12 +133589,12 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -128855,7 +133603,7 @@ function validate186( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -128867,23 +133615,23 @@ function validate186( .type, parentSchema: schema171.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -128891,40 +133639,40 @@ function validate186( message: 'must be array', schema: schema171.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema171.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -128937,23 +133685,23 @@ function validate186( .required, parentSchema: schema171.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -128966,17 +133714,17 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -128990,12 +133738,12 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -129004,7 +133752,7 @@ function validate186( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -129016,23 +133764,23 @@ function validate186( .type, parentSchema: schema171.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -129040,20 +133788,77 @@ function validate186( message: 'must be array', schema: schema171.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema171.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema171.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -129061,7 +133866,7 @@ function validate186( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -129072,23 +133877,23 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -129096,28 +133901,28 @@ function validate186( message: 'must be equal to constant', schema: 'device', parentSchema: schema171.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -129125,17 +133930,17 @@ function validate186( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema171.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -129143,46 +133948,46 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema171.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -129194,17 +133999,17 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -129218,27 +134023,27 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -129252,25 +134057,25 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -129287,23 +134092,23 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -129324,23 +134129,23 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -129351,23 +134156,23 @@ function validate186( schema171.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema171.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -129375,24 +134180,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[1].allOf[1].properties.services.type, parentSchema: schema171.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -129403,29 +134208,30 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -129436,17 +134242,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -129454,25 +134260,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[0].properties.name.type, parentSchema: schema171.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -129480,25 +134286,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[0].properties.description.type, parentSchema: schema171.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -129506,24 +134312,24 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[0].properties.type.type, parentSchema: schema171.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -129533,25 +134339,25 @@ function validate186( message: 'must be equal to one of the allowed values', schema: schema171.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema171.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -129559,39 +134365,39 @@ function validate186( message: 'must be boolean', schema: schema171.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema171.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -129604,23 +134410,23 @@ function validate186( .required, parentSchema: schema171.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -129633,17 +134439,17 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -129657,12 +134463,12 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -129671,7 +134477,7 @@ function validate186( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -129683,23 +134489,23 @@ function validate186( .type, parentSchema: schema171.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -129707,40 +134513,40 @@ function validate186( message: 'must be array', schema: schema171.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema171.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -129754,23 +134560,23 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -129783,17 +134589,17 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -129807,12 +134613,12 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -129821,7 +134627,7 @@ function validate186( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -129833,23 +134639,23 @@ function validate186( .type, parentSchema: schema171.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -129857,20 +134663,78 @@ function validate186( message: 'must be array', schema: schema171.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema171.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema171.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -129878,7 +134742,7 @@ function validate186( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -129889,23 +134753,23 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -129913,28 +134777,28 @@ function validate186( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema171.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -129942,17 +134806,17 @@ function validate186( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema171.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -129960,46 +134824,46 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema171.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -130014,17 +134878,17 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -130038,27 +134902,27 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -130072,25 +134936,25 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -130107,23 +134971,23 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -130145,23 +135009,23 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -130173,23 +135037,23 @@ function validate186( .type, parentSchema: schema171.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -130197,24 +135061,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[2].allOf[1].properties.services.type, parentSchema: schema171.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -130225,29 +135089,30 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -130258,17 +135123,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -130276,25 +135141,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[3].allOf[0].properties.name.type, parentSchema: schema171.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -130302,25 +135167,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[3].allOf[0].properties.description.type, parentSchema: schema171.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -130328,24 +135193,24 @@ function validate186( message: 'must be string', schema: schema171.anyOf[3].allOf[0].properties.type.type, parentSchema: schema171.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -130355,25 +135220,25 @@ function validate186( message: 'must be equal to one of the allowed values', schema: schema171.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema171.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -130381,39 +135246,39 @@ function validate186( message: 'must be boolean', schema: schema171.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema171.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -130427,23 +135292,23 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -130456,17 +135321,17 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -130480,12 +135345,12 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -130494,7 +135359,7 @@ function validate186( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -130506,23 +135371,23 @@ function validate186( .type, parentSchema: schema171.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -130530,40 +135395,40 @@ function validate186( message: 'must be array', schema: schema171.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema171.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -130579,23 +135444,23 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -130611,17 +135476,17 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -130635,12 +135500,12 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -130649,7 +135514,7 @@ function validate186( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -130662,23 +135527,23 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -130687,20 +135552,78 @@ function validate186( schema: schema171.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema171.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema171.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -130708,7 +135631,7 @@ function validate186( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -130719,21 +135642,21 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -130744,17 +135667,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -130762,39 +135685,39 @@ function validate186( message: 'must be equal to constant', schema: 'group', parentSchema: schema171.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -130807,23 +135730,23 @@ function validate186( .required, parentSchema: schema171.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -130835,17 +135758,17 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -130859,12 +135782,12 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -130873,7 +135796,7 @@ function validate186( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -130885,23 +135808,23 @@ function validate186( .type, parentSchema: schema171.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -130909,24 +135832,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema171.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -130937,22 +135860,22 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -130963,9 +135886,9 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate186.errors = vErrors; @@ -131038,117 +135961,127 @@ const schema172 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -131221,8 +136154,13 @@ const schema172 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -131302,8 +136240,13 @@ const schema172 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -131356,7 +136299,8 @@ function validate187( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -131851,6 +136795,63 @@ function validate187( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema172.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -131859,7 +136860,7 @@ function validate187( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -131870,23 +136871,23 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -131894,28 +136895,28 @@ function validate187( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema172.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -131923,17 +136924,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -131941,42 +136942,42 @@ function validate187( message: 'must be string', schema: schema172.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema172.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -131988,17 +136989,17 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -132012,27 +137013,27 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -132046,25 +137047,25 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -132081,23 +137082,23 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -132118,23 +137119,23 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -132144,23 +137145,23 @@ function validate187( schema172.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema172.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -132168,24 +137169,24 @@ function validate187( message: 'must be array', schema: schema172.anyOf[0].allOf[1].properties.services.type, parentSchema: schema172.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -132196,30 +137197,31 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -132230,20 +137232,20 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -132251,17 +137253,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -132269,27 +137271,27 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.url.type, parentSchema: schema172.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -132297,25 +137299,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.name.type, parentSchema: schema172.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -132323,25 +137325,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.description.type, parentSchema: schema172.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -132349,24 +137351,24 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.type.type, parentSchema: schema172.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -132376,25 +137378,25 @@ function validate187( message: 'must be equal to one of the allowed values', schema: schema172.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema172.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -132402,39 +137404,39 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema172.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -132447,23 +137449,23 @@ function validate187( .required, parentSchema: schema172.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -132476,17 +137478,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -132500,12 +137502,12 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -132514,7 +137516,7 @@ function validate187( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -132526,23 +137528,23 @@ function validate187( .type, parentSchema: schema172.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -132550,40 +137552,40 @@ function validate187( message: 'must be array', schema: schema172.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema172.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -132597,23 +137599,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -132626,17 +137628,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -132650,12 +137652,12 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -132664,7 +137666,7 @@ function validate187( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -132676,23 +137678,23 @@ function validate187( .type, parentSchema: schema172.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -132700,20 +137702,78 @@ function validate187( message: 'must be array', schema: schema172.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema172.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema172.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -132722,7 +137782,7 @@ function validate187( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -132733,23 +137793,23 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -132757,25 +137817,25 @@ function validate187( message: 'must be equal to constant', schema: 'device', parentSchema: schema172.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -132783,44 +137843,44 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema172.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132835,17 +137895,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132863,30 +137923,30 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132902,17 +137962,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132930,24 +137990,24 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -132960,23 +138020,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -132987,29 +138047,29 @@ function validate187( schema172.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema172.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -133018,17 +138078,17 @@ function validate187( schema: 'uri', parentSchema: schema172.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -133036,46 +138096,46 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema172.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -133090,17 +138150,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -133117,27 +138177,27 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -133151,25 +138211,25 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -133186,23 +138246,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -133225,23 +138285,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -133253,23 +138313,23 @@ function validate187( .type, parentSchema: schema172.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -133277,17 +138337,17 @@ function validate187( message: 'must be array', schema: schema172.anyOf[1].allOf[1].properties.services.type, parentSchema: schema172.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -133296,7 +138356,7 @@ function validate187( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -133307,30 +138367,31 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -133341,20 +138402,20 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -133362,17 +138423,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -133380,27 +138441,27 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.url.type, parentSchema: schema172.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -133408,25 +138469,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.name.type, parentSchema: schema172.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -133434,25 +138495,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.description.type, parentSchema: schema172.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -133460,24 +138521,24 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.type.type, parentSchema: schema172.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -133487,25 +138548,25 @@ function validate187( message: 'must be equal to one of the allowed values', schema: schema172.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema172.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -133513,39 +138574,39 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema172.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -133559,23 +138620,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -133588,17 +138649,17 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -133612,12 +138673,12 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -133626,7 +138687,7 @@ function validate187( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -133638,23 +138699,23 @@ function validate187( .type, parentSchema: schema172.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -133662,40 +138723,40 @@ function validate187( message: 'must be array', schema: schema172.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema172.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -133711,23 +138772,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -133743,17 +138804,17 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -133767,12 +138828,12 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -133781,7 +138842,7 @@ function validate187( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -133794,23 +138855,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -133819,20 +138880,78 @@ function validate187( schema: schema172.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema172.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema172.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -133841,7 +138960,7 @@ function validate187( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -133852,23 +138971,23 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -133876,28 +138995,28 @@ function validate187( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema172.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -133905,17 +139024,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -133923,46 +139042,46 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema172.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -133977,17 +139096,17 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -134001,27 +139120,27 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -134035,25 +139154,25 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -134070,23 +139189,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -134108,23 +139227,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -134136,23 +139255,23 @@ function validate187( .type, parentSchema: schema172.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -134160,24 +139279,24 @@ function validate187( message: 'must be array', schema: schema172.anyOf[2].allOf[1].properties.services.type, parentSchema: schema172.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -134188,30 +139307,31 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -134222,20 +139342,20 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -134243,17 +139363,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -134261,27 +139381,27 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.url.type, parentSchema: schema172.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -134289,25 +139409,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.name.type, parentSchema: schema172.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -134315,25 +139435,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.description.type, parentSchema: schema172.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -134341,24 +139461,24 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.type.type, parentSchema: schema172.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -134369,25 +139489,25 @@ function validate187( message: 'must be equal to one of the allowed values', schema: schema172.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema172.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -134395,39 +139515,39 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema172.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -134443,23 +139563,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -134475,17 +139595,17 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -134502,12 +139622,12 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -134516,7 +139636,7 @@ function validate187( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -134529,23 +139649,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -134555,43 +139675,43 @@ function validate187( schema172.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema172.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -134607,23 +139727,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -134640,17 +139760,17 @@ function validate187( schema172.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -134667,12 +139787,12 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -134681,7 +139801,7 @@ function validate187( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -134694,23 +139814,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -134720,20 +139840,78 @@ function validate187( schema172.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema172.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema172.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -134742,7 +139920,7 @@ function validate187( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -134753,21 +139931,21 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -134778,17 +139956,17 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -134796,39 +139974,39 @@ function validate187( message: 'must be equal to constant', schema: 'group', parentSchema: schema172.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -134841,23 +140019,23 @@ function validate187( .required, parentSchema: schema172.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -134869,17 +140047,17 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -134893,12 +140071,12 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -134907,7 +140085,7 @@ function validate187( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -134919,23 +140097,23 @@ function validate187( .type, parentSchema: schema172.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -134943,24 +140121,24 @@ function validate187( message: 'must be array', schema: schema172.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema172.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -134971,22 +140149,22 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -134997,9 +140175,9 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate187.errors = vErrors; @@ -141988,8 +147166,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142063,8 +147246,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142138,8 +147326,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142213,8 +147406,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142266,7 +147464,8 @@ function validate190( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -142708,6 +147907,62 @@ function validate190( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema175.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -142715,7 +147970,7 @@ function validate190( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -142726,23 +147981,23 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -142750,28 +148005,28 @@ function validate190( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema175.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -142779,17 +148034,17 @@ function validate190( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema175.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -142797,42 +148052,42 @@ function validate190( message: 'must be string', schema: schema175.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema175.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -142844,17 +148099,17 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -142868,27 +148123,27 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -142902,25 +148157,25 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -142937,23 +148192,23 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -142974,23 +148229,23 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -143000,23 +148255,23 @@ function validate190( schema175.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema175.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -143024,24 +148279,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[0].allOf[1].properties.services.type, parentSchema: schema175.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -143052,29 +148307,30 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -143085,17 +148341,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -143103,25 +148359,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[0].properties.name.type, parentSchema: schema175.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -143129,25 +148385,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[0].properties.description.type, parentSchema: schema175.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -143155,24 +148411,24 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[0].properties.type.type, parentSchema: schema175.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -143182,25 +148438,25 @@ function validate190( message: 'must be equal to one of the allowed values', schema: schema175.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema175.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -143208,39 +148464,39 @@ function validate190( message: 'must be boolean', schema: schema175.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema175.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -143253,23 +148509,23 @@ function validate190( .required, parentSchema: schema175.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -143281,17 +148537,17 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -143305,12 +148561,12 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -143319,7 +148575,7 @@ function validate190( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -143331,23 +148587,23 @@ function validate190( .type, parentSchema: schema175.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -143355,40 +148611,40 @@ function validate190( message: 'must be array', schema: schema175.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema175.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -143401,23 +148657,23 @@ function validate190( .required, parentSchema: schema175.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -143430,17 +148686,17 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -143454,12 +148710,12 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -143468,7 +148724,7 @@ function validate190( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -143480,23 +148736,23 @@ function validate190( .type, parentSchema: schema175.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -143504,20 +148760,77 @@ function validate190( message: 'must be array', schema: schema175.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema175.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema175.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -143525,7 +148838,7 @@ function validate190( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -143536,23 +148849,23 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -143560,28 +148873,28 @@ function validate190( message: 'must be equal to constant', schema: 'device', parentSchema: schema175.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -143589,17 +148902,17 @@ function validate190( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema175.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -143607,46 +148920,46 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema175.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -143658,17 +148971,17 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -143682,27 +148995,27 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -143716,25 +149029,25 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -143751,23 +149064,23 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -143788,23 +149101,23 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -143815,23 +149128,23 @@ function validate190( schema175.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema175.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -143839,24 +149152,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[1].allOf[1].properties.services.type, parentSchema: schema175.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -143867,29 +149180,30 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -143900,17 +149214,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -143918,25 +149232,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[0].properties.name.type, parentSchema: schema175.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -143944,25 +149258,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[0].properties.description.type, parentSchema: schema175.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -143970,24 +149284,24 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[0].properties.type.type, parentSchema: schema175.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -143997,25 +149311,25 @@ function validate190( message: 'must be equal to one of the allowed values', schema: schema175.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema175.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -144023,39 +149337,39 @@ function validate190( message: 'must be boolean', schema: schema175.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema175.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -144068,23 +149382,23 @@ function validate190( .required, parentSchema: schema175.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -144097,17 +149411,17 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -144121,12 +149435,12 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -144135,7 +149449,7 @@ function validate190( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -144147,23 +149461,23 @@ function validate190( .type, parentSchema: schema175.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -144171,40 +149485,40 @@ function validate190( message: 'must be array', schema: schema175.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema175.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -144218,23 +149532,23 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -144247,17 +149561,17 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -144271,12 +149585,12 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -144285,7 +149599,7 @@ function validate190( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -144297,23 +149611,23 @@ function validate190( .type, parentSchema: schema175.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -144321,20 +149635,78 @@ function validate190( message: 'must be array', schema: schema175.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema175.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema175.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -144342,7 +149714,7 @@ function validate190( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -144353,23 +149725,23 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -144377,28 +149749,28 @@ function validate190( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema175.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -144406,17 +149778,17 @@ function validate190( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema175.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -144424,46 +149796,46 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema175.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -144478,17 +149850,17 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -144502,27 +149874,27 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -144536,25 +149908,25 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -144571,23 +149943,23 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -144609,23 +149981,23 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -144637,23 +150009,23 @@ function validate190( .type, parentSchema: schema175.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -144661,24 +150033,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[2].allOf[1].properties.services.type, parentSchema: schema175.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -144689,29 +150061,30 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -144722,17 +150095,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -144740,25 +150113,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[3].allOf[0].properties.name.type, parentSchema: schema175.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -144766,25 +150139,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[3].allOf[0].properties.description.type, parentSchema: schema175.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -144792,24 +150165,24 @@ function validate190( message: 'must be string', schema: schema175.anyOf[3].allOf[0].properties.type.type, parentSchema: schema175.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -144819,25 +150192,25 @@ function validate190( message: 'must be equal to one of the allowed values', schema: schema175.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema175.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -144845,39 +150218,39 @@ function validate190( message: 'must be boolean', schema: schema175.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema175.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -144891,23 +150264,23 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -144920,17 +150293,17 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -144944,12 +150317,12 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -144958,7 +150331,7 @@ function validate190( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -144970,23 +150343,23 @@ function validate190( .type, parentSchema: schema175.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -144994,40 +150367,40 @@ function validate190( message: 'must be array', schema: schema175.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema175.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -145043,23 +150416,23 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -145075,17 +150448,17 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -145099,12 +150472,12 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -145113,7 +150486,7 @@ function validate190( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -145126,23 +150499,23 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -145151,20 +150524,78 @@ function validate190( schema: schema175.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema175.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema175.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -145172,7 +150603,7 @@ function validate190( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -145183,21 +150614,21 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -145208,17 +150639,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -145226,39 +150657,39 @@ function validate190( message: 'must be equal to constant', schema: 'group', parentSchema: schema175.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -145271,23 +150702,23 @@ function validate190( .required, parentSchema: schema175.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -145299,17 +150730,17 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -145323,12 +150754,12 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -145337,7 +150768,7 @@ function validate190( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -145349,23 +150780,23 @@ function validate190( .type, parentSchema: schema175.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -145373,24 +150804,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema175.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -145401,22 +150832,22 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -145427,9 +150858,9 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate190.errors = vErrors; @@ -145502,8 +150933,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145583,8 +151019,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145685,8 +151126,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145766,8 +151212,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145820,7 +151271,8 @@ function validate191( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -146315,6 +151767,63 @@ function validate191( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema176.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -146323,7 +151832,7 @@ function validate191( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -146334,23 +151843,23 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -146358,28 +151867,28 @@ function validate191( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema176.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -146387,17 +151896,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -146405,42 +151914,42 @@ function validate191( message: 'must be string', schema: schema176.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema176.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -146452,17 +151961,17 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -146476,27 +151985,27 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -146510,25 +152019,25 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -146545,23 +152054,23 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -146582,23 +152091,23 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -146608,23 +152117,23 @@ function validate191( schema176.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema176.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -146632,24 +152141,24 @@ function validate191( message: 'must be array', schema: schema176.anyOf[0].allOf[1].properties.services.type, parentSchema: schema176.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -146660,30 +152169,31 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -146694,20 +152204,20 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -146715,17 +152225,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -146733,27 +152243,27 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.url.type, parentSchema: schema176.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -146761,25 +152271,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.name.type, parentSchema: schema176.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -146787,25 +152297,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.description.type, parentSchema: schema176.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -146813,24 +152323,24 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.type.type, parentSchema: schema176.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -146840,25 +152350,25 @@ function validate191( message: 'must be equal to one of the allowed values', schema: schema176.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema176.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -146866,39 +152376,39 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema176.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -146911,23 +152421,23 @@ function validate191( .required, parentSchema: schema176.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -146940,17 +152450,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -146964,12 +152474,12 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -146978,7 +152488,7 @@ function validate191( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -146990,23 +152500,23 @@ function validate191( .type, parentSchema: schema176.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -147014,40 +152524,40 @@ function validate191( message: 'must be array', schema: schema176.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema176.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -147061,23 +152571,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -147090,17 +152600,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -147114,12 +152624,12 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -147128,7 +152638,7 @@ function validate191( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -147140,23 +152650,23 @@ function validate191( .type, parentSchema: schema176.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -147164,20 +152674,78 @@ function validate191( message: 'must be array', schema: schema176.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema176.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema176.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -147186,7 +152754,7 @@ function validate191( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -147197,23 +152765,23 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -147221,25 +152789,25 @@ function validate191( message: 'must be equal to constant', schema: 'device', parentSchema: schema176.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -147247,44 +152815,44 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema176.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147299,17 +152867,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147327,30 +152895,30 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147366,17 +152934,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147394,24 +152962,24 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -147424,23 +152992,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -147451,29 +153019,29 @@ function validate191( schema176.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema176.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -147482,17 +153050,17 @@ function validate191( schema: 'uri', parentSchema: schema176.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -147500,46 +153068,46 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema176.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -147554,17 +153122,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -147581,27 +153149,27 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -147615,25 +153183,25 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -147650,23 +153218,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -147689,23 +153257,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -147717,23 +153285,23 @@ function validate191( .type, parentSchema: schema176.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -147741,17 +153309,17 @@ function validate191( message: 'must be array', schema: schema176.anyOf[1].allOf[1].properties.services.type, parentSchema: schema176.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -147760,7 +153328,7 @@ function validate191( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -147771,30 +153339,31 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -147805,20 +153374,20 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -147826,17 +153395,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -147844,27 +153413,27 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.url.type, parentSchema: schema176.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -147872,25 +153441,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.name.type, parentSchema: schema176.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -147898,25 +153467,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.description.type, parentSchema: schema176.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -147924,24 +153493,24 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.type.type, parentSchema: schema176.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -147951,25 +153520,25 @@ function validate191( message: 'must be equal to one of the allowed values', schema: schema176.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema176.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -147977,39 +153546,39 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema176.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -148023,23 +153592,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -148052,17 +153621,17 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -148076,12 +153645,12 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -148090,7 +153659,7 @@ function validate191( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -148102,23 +153671,23 @@ function validate191( .type, parentSchema: schema176.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -148126,40 +153695,40 @@ function validate191( message: 'must be array', schema: schema176.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema176.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -148175,23 +153744,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -148207,17 +153776,17 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -148231,12 +153800,12 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -148245,7 +153814,7 @@ function validate191( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -148258,23 +153827,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -148283,20 +153852,78 @@ function validate191( schema: schema176.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema176.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema176.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -148305,7 +153932,7 @@ function validate191( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -148316,23 +153943,23 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -148340,28 +153967,28 @@ function validate191( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema176.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -148369,17 +153996,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -148387,46 +154014,46 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema176.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -148441,17 +154068,17 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -148465,27 +154092,27 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -148499,25 +154126,25 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -148534,23 +154161,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -148572,23 +154199,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -148600,23 +154227,23 @@ function validate191( .type, parentSchema: schema176.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -148624,24 +154251,24 @@ function validate191( message: 'must be array', schema: schema176.anyOf[2].allOf[1].properties.services.type, parentSchema: schema176.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -148652,30 +154279,31 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -148686,20 +154314,20 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -148707,17 +154335,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -148725,27 +154353,27 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.url.type, parentSchema: schema176.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -148753,25 +154381,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.name.type, parentSchema: schema176.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -148779,25 +154407,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.description.type, parentSchema: schema176.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -148805,24 +154433,24 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.type.type, parentSchema: schema176.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -148833,25 +154461,25 @@ function validate191( message: 'must be equal to one of the allowed values', schema: schema176.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema176.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -148859,39 +154487,39 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema176.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -148907,23 +154535,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -148939,17 +154567,17 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -148966,12 +154594,12 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -148980,7 +154608,7 @@ function validate191( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -148993,23 +154621,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -149019,43 +154647,43 @@ function validate191( schema176.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema176.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -149071,23 +154699,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -149104,17 +154732,17 @@ function validate191( schema176.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -149131,12 +154759,12 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -149145,7 +154773,7 @@ function validate191( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -149158,23 +154786,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -149184,20 +154812,78 @@ function validate191( schema176.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema176.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema176.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -149206,7 +154892,7 @@ function validate191( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -149217,21 +154903,21 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -149242,17 +154928,17 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -149260,39 +154946,39 @@ function validate191( message: 'must be equal to constant', schema: 'group', parentSchema: schema176.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -149305,23 +154991,23 @@ function validate191( .required, parentSchema: schema176.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -149333,17 +155019,17 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -149357,12 +155043,12 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -149371,7 +155057,7 @@ function validate191( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -149383,23 +155069,23 @@ function validate191( .type, parentSchema: schema176.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -149407,24 +155093,24 @@ function validate191( message: 'must be array', schema: schema176.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema176.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -149435,22 +155121,22 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -149461,9 +155147,9 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate191.errors = vErrors; @@ -149530,8 +155216,13 @@ const schema177 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -149606,7 +155297,8 @@ function validate192( if ( (data0.type === undefined && (missing1 = 'type')) || (data0.name === undefined && (missing1 = 'name')) || - (data0.isPublic === undefined && (missing1 = 'isPublic')) + (data0.isPublic === undefined && (missing1 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing1 = 'bookingEndpoint')) ) { validate192.errors = [ { @@ -150066,6 +155758,60 @@ function validate192( } else { var valid2 = true; } + if (valid2) { + if (data0.bookingEndpoint !== undefined) { + let data11 = data0.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate192.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema177.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate192.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema177.properties.instance.allOf[0] + .properties.bookingEndpoint.type, + parentSchema: + schema177.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -150090,13 +155836,13 @@ function validate192( } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data0 && typeof data0 == 'object' && !Array.isArray(data0)) { if (data0.type !== undefined) { - let data11 = data0.type; - const _errs26 = errors; - if ('device' !== data11) { + let data12 = data0.type; + const _errs28 = errors; + if ('device' !== data12) { validate192.errors = [ { instancePath: instancePath + '/instance/type', @@ -150107,23 +155853,23 @@ function validate192( schema: 'device', parentSchema: schema177.properties.instance.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data0.experiment !== undefined) { - let data12 = data0.experiment; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data0.experiment; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate192.errors = [ { instancePath: instancePath + '/instance/experiment', @@ -150136,7 +155882,7 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .experiment, - data: data12, + data: data13, }, ]; return false; @@ -150156,41 +155902,41 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .experiment, - data: data12, + data: data13, }, ]; return false; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data0.services !== undefined) { - let data13 = data0.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data0.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { if ( - data14 && - typeof data14 == 'object' && - !Array.isArray(data14) + data15 && + typeof data15 == 'object' && + !Array.isArray(data15) ) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate192.errors = [ { instancePath: @@ -150209,7 +155955,7 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data15, + data: data16, }, ]; return false; @@ -150235,22 +155981,22 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate192.errors = [ { instancePath: @@ -150271,20 +156017,20 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate192.errors = [ { instancePath: @@ -150305,16 +156051,16 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate192.errors = [ @@ -150343,12 +156089,12 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } @@ -150370,13 +156116,13 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } @@ -150396,13 +156142,13 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .services, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } @@ -150424,7 +156170,7 @@ function validate192( return false; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var valid0 = _errs1 === errors; } else { @@ -150432,9 +156178,9 @@ function validate192( } if (valid0) { if (data.deviceToken !== undefined) { - let data18 = data.deviceToken; - const _errs40 = errors; - if (typeof data18 !== 'string') { + let data19 = data.deviceToken; + const _errs42 = errors; + if (typeof data19 !== 'string') { validate192.errors = [ { instancePath: instancePath + '/deviceToken', @@ -150444,12 +156190,12 @@ function validate192( message: 'must be string', schema: schema177.properties.deviceToken.type, parentSchema: schema177.properties.deviceToken, - data: data18, + data: data19, }, ]; return false; } - var valid0 = _errs40 === errors; + var valid0 = _errs42 === errors; } else { var valid0 = true; } @@ -150529,8 +156275,13 @@ const schema178 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -150627,7 +156378,8 @@ function validate193( (data0.url === undefined && (missing1 = 'url')) || (data0.type === undefined && (missing1 = 'type')) || (data0.name === undefined && (missing1 = 'name')) || - (data0.isPublic === undefined && (missing1 = 'isPublic')) + (data0.isPublic === undefined && (missing1 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing1 = 'bookingEndpoint')) ) { validate193.errors = [ { @@ -151144,6 +156896,60 @@ function validate193( } else { var valid2 = true; } + if (valid2) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate193.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema178.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate193.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema178.properties.instance.allOf[0] + .properties.bookingEndpoint.type, + parentSchema: + schema178.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -151169,13 +156975,13 @@ function validate193( } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data0 && typeof data0 == 'object' && !Array.isArray(data0)) { if (data0.type !== undefined) { - let data12 = data0.type; - const _errs28 = errors; - if ('device' !== data12) { + let data13 = data0.type; + const _errs30 = errors; + if ('device' !== data13) { validate193.errors = [ { instancePath: instancePath + '/instance/type', @@ -151186,20 +156992,20 @@ function validate193( schema: 'device', parentSchema: schema178.properties.instance.allOf[1].properties.type, - data: data12, + data: data13, }, ]; return false; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data0.connected !== undefined) { - let data13 = data0.connected; - const _errs29 = errors; - if (typeof data13 !== 'boolean') { + let data14 = data0.connected; + const _errs31 = errors; + if (typeof data14 !== 'boolean') { validate193.errors = [ { instancePath: instancePath + '/instance/connected', @@ -151213,39 +157019,39 @@ function validate193( .type, parentSchema: schema178.properties.instance.allOf[1].properties.connected, - data: data13, + data: data14, }, ]; return false; } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data0.announcedAvailability !== undefined) { - let data14 = data0.announcedAvailability; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data14)) { + let data15 = data0.announcedAvailability; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data15)) { var valid8 = true; - const len2 = data14.length; + const len2 = data15.length; for (let i2 = 0; i2 < len2; i2++) { - let data15 = data14[i2]; - const _errs33 = errors; - if (errors === _errs33) { + let data16 = data15[i2]; + const _errs35 = errors; + if (errors === _errs35) { if ( - data15 && - typeof data15 == 'object' && - !Array.isArray(data15) + data16 && + typeof data16 == 'object' && + !Array.isArray(data16) ) { - if (data15.start !== undefined) { - let data16 = data15.start; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data16.start !== undefined) { + let data17 = data16.start; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate193.errors = [ { instancePath: @@ -151264,7 +157070,7 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; @@ -151290,25 +157096,25 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; } } } - var valid9 = _errs35 === errors; + var valid9 = _errs37 === errors; } else { var valid9 = true; } if (valid9) { - if (data15.end !== undefined) { - let data17 = data15.end; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats22.validate(data17)) { + if (data16.end !== undefined) { + let data18 = data16.end; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats26.validate(data18)) { validate193.errors = [ { instancePath: @@ -151329,7 +157135,7 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability .items.properties.end, - data: data17, + data: data18, }, ]; return false; @@ -151355,14 +157161,14 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.end, - data: data17, + data: data18, }, ]; return false; } } } - var valid9 = _errs37 === errors; + var valid9 = _errs39 === errors; } else { var valid9 = true; } @@ -151385,13 +157191,13 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .announcedAvailability.items, - data: data15, + data: data16, }, ]; return false; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } @@ -151412,24 +157218,24 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .announcedAvailability, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } if (valid7) { if (data0.experiment !== undefined) { - let data18 = data0.experiment; - const _errs39 = errors; - if (errors === _errs39) { - if (errors === _errs39) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { + let data19 = data0.experiment; + const _errs41 = errors; + if (errors === _errs41) { + if (errors === _errs41) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { validate193.errors = [ { instancePath: instancePath + '/instance/experiment', @@ -151442,7 +157248,7 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; @@ -151462,41 +157268,41 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; } } } - var valid7 = _errs39 === errors; + var valid7 = _errs41 === errors; } else { var valid7 = true; } if (valid7) { if (data0.services !== undefined) { - let data19 = data0.services; - const _errs41 = errors; - if (errors === _errs41) { - if (Array.isArray(data19)) { + let data20 = data0.services; + const _errs43 = errors; + if (errors === _errs43) { + if (Array.isArray(data20)) { var valid10 = true; - const len3 = data19.length; + const len3 = data20.length; for (let i3 = 0; i3 < len3; i3++) { - let data20 = data19[i3]; - const _errs43 = errors; - if (errors === _errs43) { + let data21 = data20[i3]; + const _errs45 = errors; + if (errors === _errs45) { if ( - data20 && - typeof data20 == 'object' && - !Array.isArray(data20) + data21 && + typeof data21 == 'object' && + !Array.isArray(data21) ) { - if (data20.serviceType !== undefined) { - let data21 = data20.serviceType; - const _errs46 = errors; - if (errors === _errs46) { - if (errors === _errs46) { - if (typeof data21 === 'string') { - if (!formats0(data21)) { + if (data21.serviceType !== undefined) { + let data22 = data21.serviceType; + const _errs48 = errors; + if (errors === _errs48) { + if (errors === _errs48) { + if (typeof data22 === 'string') { + if (!formats0(data22)) { validate193.errors = [ { instancePath: @@ -151515,7 +157321,7 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items .properties.serviceType, - data: data21, + data: data22, }, ]; return false; @@ -151541,22 +157347,22 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data21, + data: data22, }, ]; return false; } } } - var valid11 = _errs46 === errors; + var valid11 = _errs48 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceId !== undefined) { - let data22 = data20.serviceId; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data21.serviceId !== undefined) { + let data23 = data21.serviceId; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate193.errors = [ { instancePath: @@ -151577,20 +157383,20 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceId, - data: data22, + data: data23, }, ]; return false; } - var valid11 = _errs48 === errors; + var valid11 = _errs50 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceDirection !== undefined) { - let data23 = data20.serviceDirection; - const _errs50 = errors; - if (typeof data23 !== 'string') { + if (data21.serviceDirection !== undefined) { + let data24 = data21.serviceDirection; + const _errs52 = errors; + if (typeof data24 !== 'string') { validate193.errors = [ { instancePath: @@ -151611,16 +157417,16 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } if ( !( - data23 === 'consumer' || - data23 === 'producer' || - data23 === 'prosumer' + data24 === 'consumer' || + data24 === 'producer' || + data24 === 'prosumer' ) ) { validate193.errors = [ @@ -151649,12 +157455,12 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } - var valid11 = _errs50 === errors; + var valid11 = _errs52 === errors; } else { var valid11 = true; } @@ -151676,13 +157482,13 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1] .properties.services.items, - data: data20, + data: data21, }, ]; return false; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (!valid10) { break; } @@ -151702,13 +157508,13 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .services, - data: data19, + data: data20, }, ]; return false; } } - var valid7 = _errs41 === errors; + var valid7 = _errs43 === errors; } else { var valid7 = true; } @@ -151732,7 +157538,7 @@ function validate193( return false; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var valid0 = _errs1 === errors; } else { @@ -151740,9 +157546,9 @@ function validate193( } if (valid0) { if (data.deviceToken !== undefined) { - let data24 = data.deviceToken; - const _errs52 = errors; - if (typeof data24 !== 'string') { + let data25 = data.deviceToken; + const _errs54 = errors; + if (typeof data25 !== 'string') { validate193.errors = [ { instancePath: instancePath + '/deviceToken', @@ -151752,12 +157558,12 @@ function validate193( message: 'must be string', schema: schema178.properties.deviceToken.type, parentSchema: schema178.properties.deviceToken, - data: data24, + data: data25, }, ]; return false; } - var valid0 = _errs52 === errors; + var valid0 = _errs54 === errors; } else { var valid0 = true; } @@ -151823,7 +157629,7 @@ function validate194( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate194.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -151866,7 +157672,7 @@ function validate194( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate194.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -151984,7 +157790,7 @@ function validate195( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate195.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -152027,7 +157833,7 @@ function validate195( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate195.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -152190,7 +157996,7 @@ function validate196( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate196.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -152233,7 +158039,7 @@ function validate196( if (errors === _errs7) { if (errors === _errs7) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate196.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -152401,7 +158207,7 @@ function validate196( if (errors === _errs17) { if (errors === _errs17) { if (typeof data6 === 'string') { - if (!formats22.validate(data6)) { + if (!formats26.validate(data6)) { validate196.errors = [ { instancePath: @@ -152636,7 +158442,7 @@ function validate197( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate197.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -152679,7 +158485,7 @@ function validate197( if (errors === _errs7) { if (errors === _errs7) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate197.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -152847,7 +158653,7 @@ function validate197( if (errors === _errs17) { if (errors === _errs17) { if (typeof data6 === 'string') { - if (!formats22.validate(data6)) { + if (!formats26.validate(data6)) { validate197.errors = [ { instancePath: @@ -153037,7 +158843,7 @@ function validate198( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate198.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -153080,7 +158886,7 @@ function validate198( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate198.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -153198,7 +159004,7 @@ function validate199( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate199.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -153241,7 +159047,7 @@ function validate199( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate199.errors = [ { instancePath: instancePath + '/' + i0 + '/end', diff --git a/services/device/src/clients/device/client.ts b/services/device/src/clients/device/client.ts index a9cd592d..dd095ccf 100644 --- a/services/device/src/clients/device/client.ts +++ b/services/device/src/clients/device/client.ts @@ -127,23 +127,10 @@ function parsePathParameters(url: string, endpoint: string): string[] { * // returns ["username", "role_name"] * validateUrl("https://api.example.com/users/username/roles/role_name", "/users/{}/roles/{}") */ -function validateUrl(url: string, baseUrl: string, endpoint: string): string[] { +function validateUrl(url: string, endpoint: string): string[] { if (!isValidHttpUrl(url)) throw new InvalidUrlError('Provided url is not a valid http url'); - if (!url.startsWith(baseUrl)) - throw new InvalidUrlError('Provided url does not start with the provided base url'); - const pathParameters = parsePathParameters(url, endpoint); - - let extendedBaseUrl = baseUrl + endpoint; - - pathParameters.forEach(pathParameter => { - extendedBaseUrl = extendedBaseUrl.replace('{}', pathParameter); - }); - - if (url !== extendedBaseUrl) - throw new InvalidUrlError('Provided url does not match extended base url'); - - return pathParameters; + return parsePathParameters(url, endpoint); } /** @@ -224,8 +211,10 @@ export class Client { /** * List devices * - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -241,9 +230,10 @@ export class Client { */ public async listDevices(options?: { headers?: [string, string][]; + baseUrl?: string; url?: string; }): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/devices'); + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/devices'); if (!RequestValidation.validateListDevicesInput()) throw new ValidationError( @@ -292,8 +282,10 @@ export class Client { * If the callback fails the url MIGHT not be called in the future. * * There can be multiple callbacks registered with the same device. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -312,10 +304,11 @@ export class Client { options?: { headers?: [string, string][]; changedUrl?: string; + baseUrl?: string; url?: string; }, ): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/devices'); + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/devices'); const body = device; @@ -394,7 +387,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const parameters = { device_id: device_id, @@ -481,7 +474,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const body = deviceUpdate; @@ -558,7 +551,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const parameters = { device_id: device_id, @@ -631,7 +624,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const parameters = { device_id: device_id, @@ -715,7 +708,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/availability'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/availability'); + const [device_id] = validateUrl(url, '/devices/{}/availability'); const parameters = { device_id: device_id, @@ -796,7 +789,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/availability'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/availability'); + const [device_id] = validateUrl(url, '/devices/{}/availability'); const parameters = { device_id: device_id, @@ -866,7 +859,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/availability'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/availability'); + const [device_id] = validateUrl(url, '/devices/{}/availability'); const body = availabilityRules; @@ -938,7 +931,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/websocket'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/websocket'); + const [device_id] = validateUrl(url, '/devices/{}/websocket'); const parameters = { device_id: device_id, @@ -1015,7 +1008,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/signaling'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/signaling'); + const [device_id] = validateUrl(url, '/devices/{}/signaling'); const body = sigMessage; @@ -1062,8 +1055,10 @@ export class Client { /** * List Peer Connection * - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -1079,9 +1074,11 @@ export class Client { */ public async listPeerconnections(options?: { headers?: [string, string][]; + baseUrl?: string; url?: string; }): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/peerconnections'); + const url = + options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/peerconnections'); if (!RequestValidation.validateListPeerconnectionsInput()) throw new ValidationError( @@ -1129,8 +1126,10 @@ export class Client { * An URL that will be called once the peer connection is closed. * @param options.statusChangedUrl * An URL that will be called if the status of the peerconnection changes. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -1151,10 +1150,12 @@ export class Client { headers?: [string, string][]; closedUrl?: string; statusChangedUrl?: string; + baseUrl?: string; url?: string; }, ): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/peerconnections'); + const url = + options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/peerconnections'); const body = peerconnection; @@ -1238,7 +1239,7 @@ export class Client { ): Promise { const urlSuffix = '/peerconnections/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [peerconnection_id] = validateUrl(url, this.baseUrl, '/peerconnections/{}'); + const [peerconnection_id] = validateUrl(url, '/peerconnections/{}'); const parameters = { peerconnection_id: peerconnection_id, @@ -1308,7 +1309,7 @@ export class Client { ): Promise { const urlSuffix = '/peerconnections/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [peerconnection_id] = validateUrl(url, this.baseUrl, '/peerconnections/{}'); + const [peerconnection_id] = validateUrl(url, '/peerconnections/{}'); const parameters = { peerconnection_id: peerconnection_id, @@ -1387,11 +1388,7 @@ export class Client { ): Promise { const urlSuffix = '/peerconnections/{}/device_status'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [peerconnection_id] = validateUrl( - url, - this.baseUrl, - '/peerconnections/{}/device_status', - ); + const [peerconnection_id] = validateUrl(url, '/peerconnections/{}/device_status'); const parameters = { peerconnection_id: peerconnection_id, diff --git a/services/device/src/clients/device/types.ts b/services/device/src/clients/device/types.ts index cc790817..463cace0 100644 --- a/services/device/src/clients/device/types.ts +++ b/services/device/src/clients/device/types.ts @@ -271,6 +271,10 @@ export type DeviceOverview = * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } : T extends 'request' @@ -299,6 +303,10 @@ export type DeviceOverview = * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } : T extends 'response' @@ -331,6 +339,10 @@ export type DeviceOverview = * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } : never; @@ -390,6 +402,10 @@ export type InstantiableCloudDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -460,6 +480,10 @@ export type InstantiableCloudDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -533,6 +557,10 @@ export type ConcreteDevice = * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -576,6 +604,10 @@ export type ConcreteDevice = * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -613,6 +645,10 @@ export type ConcreteDevice = * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -663,6 +699,10 @@ export type InstantiableBrowserDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -733,6 +777,10 @@ export type InstantiableBrowserDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -800,6 +848,10 @@ export type DeviceGroup = * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -832,6 +884,10 @@ export type DeviceGroup = * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -868,6 +924,10 @@ export type DeviceGroup = * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -907,6 +967,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -943,6 +1007,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -989,6 +1057,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1025,6 +1097,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1058,6 +1134,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1090,6 +1170,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1122,6 +1206,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1154,6 +1242,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1191,6 +1283,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1227,6 +1323,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1273,6 +1373,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1309,6 +1413,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1405,6 +1513,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1599,6 +1727,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1631,6 +1763,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1663,6 +1799,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1711,6 +1851,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1747,6 +1891,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1793,6 +1941,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1829,6 +1981,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; diff --git a/services/device/src/clients/federation/client.ts b/services/device/src/clients/federation/client.ts index de417c91..48d74634 100644 --- a/services/device/src/clients/federation/client.ts +++ b/services/device/src/clients/federation/client.ts @@ -127,23 +127,10 @@ function parsePathParameters(url: string, endpoint: string): string[] { * // returns ["username", "role_name"] * validateUrl("https://api.example.com/users/username/roles/role_name", "/users/{}/roles/{}") */ -function validateUrl(url: string, baseUrl: string, endpoint: string): string[] { +function validateUrl(url: string, endpoint: string): string[] { if (!isValidHttpUrl(url)) throw new InvalidUrlError('Provided url is not a valid http url'); - if (!url.startsWith(baseUrl)) - throw new InvalidUrlError('Provided url does not start with the provided base url'); - const pathParameters = parsePathParameters(url, endpoint); - - let extendedBaseUrl = baseUrl + endpoint; - - pathParameters.forEach(pathParameter => { - extendedBaseUrl = extendedBaseUrl.replace('{}', pathParameter); - }); - - if (url !== extendedBaseUrl) - throw new InvalidUrlError('Provided url does not match extended base url'); - - return pathParameters; + return parsePathParameters(url, endpoint); } /** @@ -224,8 +211,10 @@ export class Client { /** * List institutions * - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -241,9 +230,11 @@ export class Client { */ public async listInstitutions(options?: { headers?: [string, string][]; + baseUrl?: string; url?: string; }): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/institutions'); + const url = + options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/institutions'); if (!RequestValidation.validateListInstitutionsInput()) throw new ValidationError( @@ -287,8 +278,10 @@ export class Client { * * @param institution * The institution to be created. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -306,10 +299,12 @@ export class Client { institution: Types.Institution<'request'>, options?: { headers?: [string, string][]; + baseUrl?: string; url?: string; }, ): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/institutions'); + const url = + options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/institutions'); const body = institution; @@ -377,7 +372,7 @@ export class Client { ): Promise { const urlSuffix = '/institutions/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [institution_id] = validateUrl(url, this.baseUrl, '/institutions/{}'); + const [institution_id] = validateUrl(url, '/institutions/{}'); const parameters = { institution_id: institution_id, @@ -449,7 +444,7 @@ export class Client { ): Promise { const urlSuffix = '/institutions/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [institution_id] = validateUrl(url, this.baseUrl, '/institutions/{}'); + const [institution_id] = validateUrl(url, '/institutions/{}'); const body = institution; @@ -521,7 +516,7 @@ export class Client { ): Promise { const urlSuffix = '/institutions/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [institution_id] = validateUrl(url, this.baseUrl, '/institutions/{}'); + const [institution_id] = validateUrl(url, '/institutions/{}'); const parameters = { institution_id: institution_id, diff --git a/services/device/src/database/repositories/device/deviceOverview.ts b/services/device/src/database/repositories/device/deviceOverview.ts index e60b1ce0..5b39bafb 100644 --- a/services/device/src/database/repositories/device/deviceOverview.ts +++ b/services/device/src/database/repositories/device/deviceOverview.ts @@ -4,6 +4,7 @@ import { EntityManager } from 'typeorm'; import { DeviceOverview, DeviceOverviewUpdate } from '../../../generated/types.js'; import { deviceUrlFromId } from '../../../methods/urlFromId.js'; import { DeviceOverviewModel } from '../../model.js'; +import { config } from '../../../config.js'; export class DeviceOverviewRepository extends AbstractRepository< DeviceOverviewModel, @@ -40,6 +41,7 @@ export class DeviceOverviewRepository extends AbstractRepository< name: model.name, description: model.description ?? undefined, isPublic: model.isPublic, + bookingEndpoint: (config.BASE_URL + "/booking").replace("//booking", "/booking") }; } } diff --git a/services/device/src/operations/devices/get.ts b/services/device/src/operations/devices/get.ts index 5753f1e6..ce08f985 100644 --- a/services/device/src/operations/devices/get.ts +++ b/services/device/src/operations/devices/get.ts @@ -32,7 +32,7 @@ export const getDevices: getDevicesSignature = async req => { await Promise.all( institutions.map(async institution => { try { - return await clients.device.listDevices({ url: institution.api }); + return await clients.device.listDevices({ baseUrl: institution.api }); } catch (error) { logger.log( 'error', diff --git a/services/experiment/src/clients/device/basicValidation.cjs b/services/experiment/src/clients/device/basicValidation.cjs index c1a37652..30f9c743 100644 --- a/services/experiment/src/clients/device/basicValidation.cjs +++ b/services/experiment/src/clients/device/basicValidation.cjs @@ -604,8 +604,13 @@ const schema9 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, 'x-standalone': true, 'x-name': 'DeviceOverview', @@ -625,7 +630,8 @@ function validate24( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate24.errors = [ { @@ -1049,6 +1055,50 @@ function validate24( } else { var valid0 = true; } + if (valid0) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs23 = errors; + if (errors === _errs23) { + if (errors === _errs23) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate24.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: schema9.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate24.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema9.properties.bookingEndpoint.type, + parentSchema: schema9.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid0 = _errs23 === errors; + } else { + var valid0 = true; + } + } } } } @@ -1274,8 +1324,13 @@ const schema11 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -1322,7 +1377,8 @@ function validate26( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate26.errors = [ { @@ -1753,6 +1809,54 @@ function validate26( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate26.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema11.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate26.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema11.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema11.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -1778,13 +1882,13 @@ function validate26( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data12) { validate26.errors = [ { instancePath: instancePath + '/type', @@ -1794,23 +1898,23 @@ function validate26( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema11.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate26.errors = [ { instancePath: instancePath + '/instantiateUrl', @@ -1820,7 +1924,7 @@ function validate26( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema11.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; @@ -1835,37 +1939,37 @@ function validate26( message: 'must be string', schema: schema11.allOf[1].properties.instantiateUrl.type, parentSchema: schema11.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate26.errors = [ { instancePath: @@ -1879,7 +1983,7 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -1900,22 +2004,22 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate26.errors = [ { instancePath: @@ -1931,20 +2035,20 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate26.errors = [ { instancePath: @@ -1963,16 +2067,16 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate26.errors = [ @@ -1997,12 +2101,12 @@ function validate26( parentSchema: schema11.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -2018,13 +2122,13 @@ function validate26( message: 'must be object', schema: schema11.allOf[1].properties.services.items.type, parentSchema: schema11.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -2039,13 +2143,13 @@ function validate26( message: 'must be array', schema: schema11.allOf[1].properties.services.type, parentSchema: schema11.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -2067,7 +2171,7 @@ function validate26( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate26.errors = vErrors; return errors === 0; @@ -2085,7 +2189,7 @@ const schema12 = { 'x-location': '#/components/schemas/time_slot', 'x-schema-type': 'all', }; -const formats22 = require('ajv-formats/dist/formats').fullFormats['date-time']; +const formats26 = require('ajv-formats/dist/formats').fullFormats['date-time']; function validate27( data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}, @@ -2100,7 +2204,7 @@ function validate27( if (errors === _errs1) { if (errors === _errs1) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate27.errors = [ { instancePath: instancePath + '/start', @@ -2143,7 +2247,7 @@ function validate27( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate27.errors = [ { instancePath: instancePath + '/end', @@ -2239,7 +2343,7 @@ function validate28( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate28.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -2282,7 +2386,7 @@ function validate28( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate28.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -2411,8 +2515,13 @@ const schema14 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -2480,7 +2589,8 @@ function validate29( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate29.errors = [ { @@ -2911,6 +3021,54 @@ function validate29( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate29.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema14.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate29.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema14.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema14.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -2936,13 +3094,13 @@ function validate29( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('device' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('device' !== data12) { validate29.errors = [ { instancePath: instancePath + '/type', @@ -2952,20 +3110,20 @@ function validate29( message: 'must be equal to constant', schema: 'device', parentSchema: schema14.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.connected !== undefined) { - let data12 = data.connected; - const _errs27 = errors; - if (typeof data12 !== 'boolean') { + let data13 = data.connected; + const _errs29 = errors; + if (typeof data13 !== 'boolean') { validate29.errors = [ { instancePath: instancePath + '/connected', @@ -2975,35 +3133,35 @@ function validate29( message: 'must be boolean', schema: schema14.allOf[1].properties.connected.type, parentSchema: schema14.allOf[1].properties.connected, - data: data12, + data: data13, }, ]; return false; } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.announcedAvailability !== undefined) { - let data13 = data.announcedAvailability; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.announcedAvailability; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.start !== undefined) { - let data15 = data14.start; - const _errs33 = errors; - if (errors === _errs33) { - if (errors === _errs33) { - if (typeof data15 === 'string') { - if (!formats22.validate(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.start !== undefined) { + let data16 = data15.start; + const _errs35 = errors; + if (errors === _errs35) { + if (errors === _errs35) { + if (typeof data16 === 'string') { + if (!formats26.validate(data16)) { validate29.errors = [ { instancePath: @@ -3020,7 +3178,7 @@ function validate29( parentSchema: schema14.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; @@ -3044,25 +3202,25 @@ function validate29( parentSchema: schema14.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.end !== undefined) { - let data16 = data14.end; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data15.end !== undefined) { + let data17 = data15.end; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate29.errors = [ { instancePath: @@ -3080,7 +3238,7 @@ function validate29( parentSchema: schema14.allOf[1].properties .announcedAvailability.items.properties.end, - data: data16, + data: data17, }, ]; return false; @@ -3104,14 +3262,14 @@ function validate29( parentSchema: schema14.allOf[1].properties.announcedAvailability .items.properties.end, - data: data16, + data: data17, }, ]; return false; } } } - var valid8 = _errs35 === errors; + var valid8 = _errs37 === errors; } else { var valid8 = true; } @@ -3130,13 +3288,13 @@ function validate29( .type, parentSchema: schema14.allOf[1].properties.announcedAvailability.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -3151,24 +3309,24 @@ function validate29( message: 'must be array', schema: schema14.allOf[1].properties.announcedAvailability.type, parentSchema: schema14.allOf[1].properties.announcedAvailability, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } if (valid6) { if (data.experiment !== undefined) { - let data17 = data.experiment; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { + let data18 = data.experiment; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { validate29.errors = [ { instancePath: instancePath + '/experiment', @@ -3178,7 +3336,7 @@ function validate29( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema14.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; @@ -3193,41 +3351,41 @@ function validate29( message: 'must be string', schema: schema14.allOf[1].properties.experiment.type, parentSchema: schema14.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; } } } - var valid6 = _errs37 === errors; + var valid6 = _errs39 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data18 = data.services; - const _errs39 = errors; - if (errors === _errs39) { - if (Array.isArray(data18)) { + let data19 = data.services; + const _errs41 = errors; + if (errors === _errs41) { + if (Array.isArray(data19)) { var valid9 = true; - const len3 = data18.length; + const len3 = data19.length; for (let i3 = 0; i3 < len3; i3++) { - let data19 = data18[i3]; - const _errs41 = errors; - if (errors === _errs41) { + let data20 = data19[i3]; + const _errs43 = errors; + if (errors === _errs43) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs44 = errors; - if (errors === _errs44) { - if (errors === _errs44) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs46 = errors; + if (errors === _errs46) { + if (errors === _errs46) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { validate29.errors = [ { instancePath: @@ -3244,7 +3402,7 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; @@ -3268,22 +3426,22 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; } } } - var valid10 = _errs44 === errors; + var valid10 = _errs46 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs46 = errors; - if (typeof data21 !== 'string') { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs48 = errors; + if (typeof data22 !== 'string') { validate29.errors = [ { instancePath: @@ -3299,20 +3457,20 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceId, - data: data21, + data: data22, }, ]; return false; } - var valid10 = _errs46 === errors; + var valid10 = _errs48 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate29.errors = [ { instancePath: @@ -3331,16 +3489,16 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { validate29.errors = [ @@ -3366,12 +3524,12 @@ function validate29( parentSchema: schema14.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } - var valid10 = _errs48 === errors; + var valid10 = _errs50 === errors; } else { var valid10 = true; } @@ -3387,13 +3545,13 @@ function validate29( message: 'must be object', schema: schema14.allOf[1].properties.services.items.type, parentSchema: schema14.allOf[1].properties.services.items, - data: data19, + data: data20, }, ]; return false; } } - var valid9 = _errs41 === errors; + var valid9 = _errs43 === errors; if (!valid9) { break; } @@ -3408,13 +3566,13 @@ function validate29( message: 'must be array', schema: schema14.allOf[1].properties.services.type, parentSchema: schema14.allOf[1].properties.services, - data: data18, + data: data19, }, ]; return false; } } - var valid6 = _errs39 === errors; + var valid6 = _errs41 === errors; } else { var valid6 = true; } @@ -3438,7 +3596,7 @@ function validate29( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate29.errors = vErrors; return errors === 0; @@ -3495,8 +3653,13 @@ const schema15 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -3543,7 +3706,8 @@ function validate30( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate30.errors = [ { @@ -3974,6 +4138,54 @@ function validate30( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate30.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema15.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate30.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema15.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema15.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -3999,13 +4211,13 @@ function validate30( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('edge instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('edge instantiable' !== data12) { validate30.errors = [ { instancePath: instancePath + '/type', @@ -4015,23 +4227,23 @@ function validate30( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema15.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.codeUrl !== undefined) { - let data12 = data.codeUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.codeUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate30.errors = [ { instancePath: instancePath + '/codeUrl', @@ -4041,7 +4253,7 @@ function validate30( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema15.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; @@ -4056,37 +4268,37 @@ function validate30( message: 'must be string', schema: schema15.allOf[1].properties.codeUrl.type, parentSchema: schema15.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate30.errors = [ { instancePath: @@ -4100,7 +4312,7 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -4121,22 +4333,22 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate30.errors = [ { instancePath: @@ -4152,20 +4364,20 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate30.errors = [ { instancePath: @@ -4184,16 +4396,16 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate30.errors = [ @@ -4218,12 +4430,12 @@ function validate30( parentSchema: schema15.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -4239,13 +4451,13 @@ function validate30( message: 'must be object', schema: schema15.allOf[1].properties.services.items.type, parentSchema: schema15.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -4260,13 +4472,13 @@ function validate30( message: 'must be array', schema: schema15.allOf[1].properties.services.type, parentSchema: schema15.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -4288,7 +4500,7 @@ function validate30( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate30.errors = vErrors; return errors === 0; @@ -4441,8 +4653,13 @@ const schema17 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -4484,7 +4701,8 @@ function validate32( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate32.errors = [ { @@ -4915,6 +5133,54 @@ function validate32( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate32.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema17.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate32.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema17.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema17.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -4940,8 +5206,8 @@ function validate32( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if (data.devices === undefined && (missing3 = 'devices')) { @@ -4960,9 +5226,9 @@ function validate32( return false; } else { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('group' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('group' !== data12) { validate32.errors = [ { instancePath: instancePath + '/type', @@ -4972,30 +5238,30 @@ function validate32( message: 'must be equal to constant', schema: 'group', parentSchema: schema17.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.devices !== undefined) { - let data12 = data.devices; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.devices; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { let missing4; - if (data13.url === undefined && (missing4 = 'url')) { + if (data14.url === undefined && (missing4 = 'url')) { validate32.errors = [ { instancePath: instancePath + '/devices/' + i2, @@ -5005,18 +5271,18 @@ function validate32( message: "must have required property '" + missing4 + "'", schema: schema17.allOf[1].properties.devices.items.required, parentSchema: schema17.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } else { - if (data13.url !== undefined) { - let data14 = data13.url; - const _errs31 = errors; - if (errors === _errs31) { - if (errors === _errs31) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + if (data14.url !== undefined) { + let data15 = data14.url; + const _errs33 = errors; + if (errors === _errs33) { + if (errors === _errs33) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate32.errors = [ { instancePath: @@ -5030,7 +5296,7 @@ function validate32( parentSchema: schema17.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -5051,7 +5317,7 @@ function validate32( parentSchema: schema17.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -5070,13 +5336,13 @@ function validate32( message: 'must be object', schema: schema17.allOf[1].properties.devices.items.type, parentSchema: schema17.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -5091,13 +5357,13 @@ function validate32( message: 'must be array', schema: schema17.allOf[1].properties.devices.type, parentSchema: schema17.allOf[1].properties.devices, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -5119,7 +5385,7 @@ function validate32( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate32.errors = vErrors; return errors === 0; @@ -5179,117 +5445,127 @@ const schema18 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -5362,8 +5638,13 @@ const schema18 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -5443,8 +5724,13 @@ const schema18 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -5496,7 +5782,8 @@ function validate33( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -5990,6 +6277,62 @@ function validate33( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema18.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -5998,7 +6341,7 @@ function validate33( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -6009,23 +6352,23 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -6033,28 +6376,28 @@ function validate33( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema18.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -6062,17 +6405,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -6080,42 +6423,42 @@ function validate33( message: 'must be string', schema: schema18.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema18.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -6127,17 +6470,17 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -6151,27 +6494,27 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -6185,25 +6528,25 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -6220,23 +6563,23 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -6257,23 +6600,23 @@ function validate33( parentSchema: schema18.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -6283,23 +6626,23 @@ function validate33( schema18.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema18.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -6307,24 +6650,24 @@ function validate33( message: 'must be array', schema: schema18.anyOf[0].allOf[1].properties.services.type, parentSchema: schema18.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -6335,30 +6678,31 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -6369,20 +6713,20 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -6390,17 +6734,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -6408,27 +6752,27 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.url.type, parentSchema: schema18.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -6436,25 +6780,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.name.type, parentSchema: schema18.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -6462,25 +6806,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.description.type, parentSchema: schema18.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -6488,24 +6832,24 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[0].properties.type.type, parentSchema: schema18.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -6515,25 +6859,25 @@ function validate33( message: 'must be equal to one of the allowed values', schema: schema18.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema18.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -6541,39 +6885,39 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema18.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -6586,23 +6930,23 @@ function validate33( .required, parentSchema: schema18.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -6615,17 +6959,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -6639,12 +6983,12 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -6653,7 +6997,7 @@ function validate33( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -6665,23 +7009,23 @@ function validate33( .type, parentSchema: schema18.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -6689,40 +7033,40 @@ function validate33( message: 'must be array', schema: schema18.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema18.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -6735,23 +7079,23 @@ function validate33( .required, parentSchema: schema18.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -6764,17 +7108,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -6788,12 +7132,12 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -6802,7 +7146,7 @@ function validate33( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -6814,23 +7158,23 @@ function validate33( .type, parentSchema: schema18.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -6838,20 +7182,77 @@ function validate33( message: 'must be array', schema: schema18.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema18.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema18.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -6860,7 +7261,7 @@ function validate33( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -6871,23 +7272,23 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -6895,25 +7296,25 @@ function validate33( message: 'must be equal to constant', schema: 'device', parentSchema: schema18.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -6921,44 +7322,44 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema18.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -6973,17 +7374,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -7001,30 +7402,30 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -7040,17 +7441,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -7068,24 +7469,24 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -7098,23 +7499,23 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -7125,29 +7526,29 @@ function validate33( schema18.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema18.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -7156,17 +7557,17 @@ function validate33( schema: 'uri', parentSchema: schema18.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -7174,46 +7575,46 @@ function validate33( message: 'must be string', schema: schema18.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema18.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -7228,17 +7629,17 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -7255,27 +7656,27 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -7289,25 +7690,25 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -7324,23 +7725,23 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -7362,23 +7763,23 @@ function validate33( parentSchema: schema18.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -7390,23 +7791,23 @@ function validate33( .type, parentSchema: schema18.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -7414,17 +7815,17 @@ function validate33( message: 'must be array', schema: schema18.anyOf[1].allOf[1].properties.services.type, parentSchema: schema18.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -7433,7 +7834,7 @@ function validate33( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -7444,30 +7845,31 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -7478,20 +7880,20 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -7499,17 +7901,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -7517,27 +7919,27 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.url.type, parentSchema: schema18.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -7545,25 +7947,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.name.type, parentSchema: schema18.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -7571,25 +7973,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.description.type, parentSchema: schema18.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -7597,24 +7999,24 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[0].properties.type.type, parentSchema: schema18.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -7624,25 +8026,25 @@ function validate33( message: 'must be equal to one of the allowed values', schema: schema18.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema18.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -7650,39 +8052,39 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema18.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -7696,23 +8098,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -7725,17 +8127,17 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -7749,12 +8151,12 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -7763,7 +8165,7 @@ function validate33( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -7775,23 +8177,23 @@ function validate33( .type, parentSchema: schema18.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -7799,40 +8201,40 @@ function validate33( message: 'must be array', schema: schema18.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema18.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -7848,23 +8250,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -7880,17 +8282,17 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -7904,12 +8306,12 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -7918,7 +8320,7 @@ function validate33( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -7930,23 +8332,23 @@ function validate33( .type, parentSchema: schema18.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -7954,20 +8356,78 @@ function validate33( message: 'must be array', schema: schema18.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema18.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema18.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -7976,7 +8436,7 @@ function validate33( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -7987,23 +8447,23 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -8011,28 +8471,28 @@ function validate33( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema18.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -8040,17 +8500,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -8058,46 +8518,46 @@ function validate33( message: 'must be string', schema: schema18.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema18.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -8112,17 +8572,17 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -8136,27 +8596,27 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -8170,25 +8630,25 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -8205,23 +8665,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -8243,23 +8703,23 @@ function validate33( parentSchema: schema18.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -8270,23 +8730,23 @@ function validate33( schema18.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema18.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -8294,24 +8754,24 @@ function validate33( message: 'must be array', schema: schema18.anyOf[2].allOf[1].properties.services.type, parentSchema: schema18.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -8322,30 +8782,31 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -8356,20 +8817,20 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -8377,17 +8838,17 @@ function validate33( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema18.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -8395,27 +8856,27 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.url.type, parentSchema: schema18.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -8423,25 +8884,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.name.type, parentSchema: schema18.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -8449,25 +8910,25 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.description.type, parentSchema: schema18.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -8475,24 +8936,24 @@ function validate33( message: 'must be string', schema: schema18.anyOf[3].allOf[0].properties.type.type, parentSchema: schema18.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -8503,25 +8964,25 @@ function validate33( message: 'must be equal to one of the allowed values', schema: schema18.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema18.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -8529,39 +8990,39 @@ function validate33( message: 'must be boolean', schema: schema18.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema18.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -8577,23 +9038,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -8609,17 +9070,17 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -8636,12 +9097,12 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -8650,7 +9111,7 @@ function validate33( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -8663,23 +9124,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -8688,43 +9149,43 @@ function validate33( schema: schema18.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema18.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -8740,23 +9201,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -8773,17 +9234,17 @@ function validate33( schema18.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -8800,12 +9261,12 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -8814,7 +9275,7 @@ function validate33( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -8827,23 +9288,23 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -8853,20 +9314,78 @@ function validate33( schema18.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema18.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema18.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema18.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema18.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -8875,7 +9394,7 @@ function validate33( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -8886,21 +9405,21 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -8911,17 +9430,17 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -8929,39 +9448,39 @@ function validate33( message: 'must be equal to constant', schema: 'group', parentSchema: schema18.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -8974,23 +9493,23 @@ function validate33( .required, parentSchema: schema18.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -9002,17 +9521,17 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -9026,12 +9545,12 @@ function validate33( parentSchema: schema18.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -9040,7 +9559,7 @@ function validate33( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -9052,23 +9571,23 @@ function validate33( .type, parentSchema: schema18.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -9076,24 +9595,24 @@ function validate33( message: 'must be array', schema: schema18.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema18.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -9104,22 +9623,22 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -9130,9 +9649,9 @@ function validate33( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate33.errors = vErrors; @@ -9516,8 +10035,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -9611,8 +10135,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -9727,8 +10256,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -9822,8 +10356,13 @@ const schema21 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -10108,7 +10647,9 @@ function validate36( (data4.url === undefined && (missing3 = 'url')) || (data4.type === undefined && (missing3 = 'type')) || (data4.name === undefined && (missing3 = 'name')) || - (data4.isPublic === undefined && (missing3 = 'isPublic')) + (data4.isPublic === undefined && (missing3 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing3 = 'bookingEndpoint')) ) { const err0 = { instancePath: instancePath + '/device', @@ -10702,6 +11243,68 @@ function validate36( } else { var valid7 = true; } + if (valid7) { + if (data4.bookingEndpoint !== undefined) { + let data16 = data4.bookingEndpoint; + const _errs42 = errors; + if (errors === _errs42) { + if (errors === _errs42) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err18 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid7 = _errs42 === errors; + } else { + var valid7 = true; + } + } } } } @@ -10710,7 +11313,7 @@ function validate36( } } } else { - const err18 = { + const err20 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/0/type', keyword: 'type', @@ -10721,23 +11324,23 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid6 = _errs18 === errors; if (valid6) { - const _errs42 = errors; - if (errors === _errs42) { + const _errs44 = errors; + if (errors === _errs44) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data16 = data4.type; - const _errs44 = errors; - if ('cloud instantiable' !== data16) { - const err19 = { + let data17 = data4.type; + const _errs46 = errors; + if ('cloud instantiable' !== data17) { + const err21 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/type/const', @@ -10748,28 +11351,28 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.type, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid12 = _errs44 === errors; + var valid12 = _errs46 === errors; } else { var valid12 = true; } if (valid12) { if (data4.instantiateUrl !== undefined) { - let data17 = data4.instantiateUrl; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { - const err20 = { + let data18 = data4.instantiateUrl; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { + const err22 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/format', @@ -10780,17 +11383,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/type', @@ -10803,46 +11406,46 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid12 = _errs45 === errors; + var valid12 = _errs47 === errors; } else { var valid12 = true; } if (valid12) { if (data4.services !== undefined) { - let data18 = data4.services; - const _errs47 = errors; - if (errors === _errs47) { - if (Array.isArray(data18)) { + let data19 = data4.services; + const _errs49 = errors; + if (errors === _errs49) { + if (Array.isArray(data19)) { var valid13 = true; - const len2 = data18.length; + const len2 = data19.length; for (let i2 = 0; i2 < len2; i2++) { - let data19 = data18[i2]; - const _errs49 = errors; - if (errors === _errs49) { + let data20 = data19[i2]; + const _errs51 = errors; + if (errors === _errs51) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs52 = errors; - if (errors === _errs52) { - if (errors === _errs52) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { - const err22 = { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs54 = errors; + if (errors === _errs54) { + if (errors === _errs54) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { + const err24 = { instancePath: instancePath + '/device/services/' + @@ -10859,17 +11462,17 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/device/services/' + @@ -10888,27 +11491,27 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid14 = _errs52 === errors; + var valid14 = _errs54 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs54 = errors; - if (typeof data21 !== 'string') { - const err24 = { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs56 = errors; + if (typeof data22 !== 'string') { + const err26 = { instancePath: instancePath + '/device/services/' + @@ -10927,25 +11530,25 @@ function validate36( schema21.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items .properties.serviceId, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid14 = _errs54 === errors; + var valid14 = _errs56 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs56 = errors; - if (typeof data22 !== 'string') { - const err25 = { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs58 = errors; + if (typeof data23 !== 'string') { + const err27 = { instancePath: instancePath + '/device/services/' + @@ -10964,23 +11567,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/device/services/' + @@ -11006,23 +11609,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid14 = _errs56 === errors; + var valid14 = _errs58 === errors; } else { var valid14 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/device/services/' + i2, schemaPath: @@ -11036,23 +11639,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid13 = _errs49 === errors; + var valid13 = _errs51 === errors; if (!valid13) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/services/type', @@ -11065,24 +11668,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[0].allOf[1] .properties.services, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid12 = _errs47 === errors; + var valid12 = _errs49 === errors; } else { var valid12 = true; } } } } else { - const err29 = { + const err31 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/type', keyword: 'type', @@ -11093,30 +11696,32 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid6 = _errs42 === errors; + var valid6 = _errs44 === errors; } var _valid0 = _errs17 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs58 = errors; - const _errs59 = errors; - if (errors === _errs59) { + const _errs60 = errors; + const _errs61 = errors; + if (errors === _errs61) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing6; if ( (data4.url === undefined && (missing6 = 'url')) || (data4.type === undefined && (missing6 = 'type')) || (data4.name === undefined && (missing6 = 'name')) || - (data4.isPublic === undefined && (missing6 = 'isPublic')) + (data4.isPublic === undefined && (missing6 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing6 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/required', @@ -11130,20 +11735,20 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data4.url !== undefined) { - let data23 = data4.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err31 = { + let data24 = data4.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err33 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/format', @@ -11154,17 +11759,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/type', @@ -11177,27 +11782,27 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid16 = _errs61 === errors; + var valid16 = _errs63 === errors; } else { var valid16 = true; } if (valid16) { if (data4.name !== undefined) { - let data24 = data4.name; - const _errs63 = errors; - if (typeof data24 !== 'string') { - const err33 = { + let data25 = data4.name; + const _errs65 = errors; + if (typeof data25 !== 'string') { + const err35 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/name/type', @@ -11210,25 +11815,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.name, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid16 = _errs63 === errors; + var valid16 = _errs65 === errors; } else { var valid16 = true; } if (valid16) { if (data4.description !== undefined) { - let data25 = data4.description; - const _errs65 = errors; - if (typeof data25 !== 'string') { - const err34 = { + let data26 = data4.description; + const _errs67 = errors; + if (typeof data26 !== 'string') { + const err36 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/description/type', @@ -11241,25 +11846,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.description, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs67 === errors; } else { var valid16 = true; } if (valid16) { if (data4.type !== undefined) { - let data26 = data4.type; - const _errs67 = errors; - if (typeof data26 !== 'string') { - const err35 = { + let data27 = data4.type; + const _errs69 = errors; + if (typeof data27 !== 'string') { + const err37 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/type', @@ -11272,24 +11877,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data26 === 'device' || - data26 === 'group' || - data26 === 'edge instantiable' || - data26 === 'cloud instantiable' + data27 === 'device' || + data27 === 'group' || + data27 === 'edge instantiable' || + data27 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/enum', @@ -11306,25 +11911,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid16 = _errs67 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data4.isPublic !== undefined) { - let data27 = data4.isPublic; - const _errs69 = errors; - if (typeof data27 !== 'boolean') { - const err37 = { + let data28 = data4.isPublic; + const _errs71 = errors; + if (typeof data28 !== 'boolean') { + const err39 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/isPublic/type', @@ -11337,42 +11942,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[0].properties.isPublic, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs71 === errors; } else { var valid16 = true; } if (valid16) { if (data4.viewer !== undefined) { - let data28 = data4.viewer; - const _errs71 = errors; - if (errors === _errs71) { - if (Array.isArray(data28)) { + let data29 = data4.viewer; + const _errs73 = errors; + if (errors === _errs73) { + if (Array.isArray(data29)) { var valid17 = true; - const len3 = data28.length; + const len3 = data29.length; for (let i3 = 0; i3 < len3; i3++) { - let data29 = data28[i3]; - const _errs73 = errors; - if (errors === _errs73) { + let data30 = data29[i3]; + const _errs75 = errors; + if (errors === _errs75) { if ( - data29 && - typeof data29 == 'object' && - !Array.isArray(data29) + data30 && + typeof data30 == 'object' && + !Array.isArray(data30) ) { let missing7; if ( - data29.url === undefined && + data30.url === undefined && (missing7 = 'url') ) { - const err38 = { + const err40 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -11391,23 +11996,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data29.url !== undefined) { - let data30 = data29.url; - const _errs75 = errors; - if (errors === _errs75) { - if (errors === _errs75) { - if (typeof data30 === 'string') { - if (!formats0(data30)) { - const err39 = { + if (data30.url !== undefined) { + let data31 = data30.url; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data31 === 'string') { + if (!formats0(data31)) { + const err41 = { instancePath: instancePath + '/device/viewer/' + @@ -11427,17 +12032,17 @@ function validate36( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/device/viewer/' + @@ -11458,12 +12063,12 @@ function validate36( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -11472,7 +12077,7 @@ function validate36( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -11488,23 +12093,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid17 = _errs73 === errors; + var valid17 = _errs75 === errors; if (!valid17) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/viewer/type', @@ -11517,43 +12122,43 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[0].properties.viewer, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid16 = _errs71 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data4.owner !== undefined) { - let data31 = data4.owner; - const _errs77 = errors; - if (errors === _errs77) { - if (Array.isArray(data31)) { + let data32 = data4.owner; + const _errs79 = errors; + if (errors === _errs79) { + if (Array.isArray(data32)) { var valid19 = true; - const len4 = data31.length; + const len4 = data32.length; for (let i4 = 0; i4 < len4; i4++) { - let data32 = data31[i4]; - const _errs79 = errors; - if (errors === _errs79) { + let data33 = data32[i4]; + const _errs81 = errors; + if (errors === _errs81) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data33 && + typeof data33 == 'object' && + !Array.isArray(data33) ) { let missing8; if ( - data32.url === undefined && + data33.url === undefined && (missing8 = 'url') ) { - const err43 = { + const err45 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -11572,23 +12177,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data32.url !== undefined) { - let data33 = data32.url; - const _errs81 = errors; - if (errors === _errs81) { - if (errors === _errs81) { - if (typeof data33 === 'string') { - if (!formats0(data33)) { - const err44 = { + if (data33.url !== undefined) { + let data34 = data33.url; + const _errs83 = errors; + if (errors === _errs83) { + if (errors === _errs83) { + if (typeof data34 === 'string') { + if (!formats0(data34)) { + const err46 = { instancePath: instancePath + '/device/owner/' + @@ -11608,17 +12213,17 @@ function validate36( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/device/owner/' + @@ -11639,12 +12244,12 @@ function validate36( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -11653,7 +12258,7 @@ function validate36( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -11669,23 +12274,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid19 = _errs79 === errors; + var valid19 = _errs81 === errors; if (!valid19) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/owner/type', @@ -11698,20 +12303,85 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[0].properties.owner, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid16 = _errs77 === errors; + var valid16 = _errs79 === errors; } else { var valid16 = true; } + if (valid16) { + if (data4.bookingEndpoint !== undefined) { + let data35 = data4.bookingEndpoint; + const _errs85 = errors; + if (errors === _errs85) { + if (errors === _errs85) { + if (typeof data35 === 'string') { + if (!formats0(data35)) { + const err50 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid16 = _errs85 === errors; + } else { + var valid16 = true; + } + } } } } @@ -11720,7 +12390,7 @@ function validate36( } } } else { - const err48 = { + const err52 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/type', keyword: 'type', @@ -11731,23 +12401,23 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid15 = _errs59 === errors; + var valid15 = _errs61 === errors; if (valid15) { - const _errs83 = errors; - if (errors === _errs83) { + const _errs87 = errors; + if (errors === _errs87) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data34 = data4.type; - const _errs85 = errors; - if ('device' !== data34) { - const err49 = { + let data36 = data4.type; + const _errs89 = errors; + if ('device' !== data36) { + const err53 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/type/const', @@ -11758,25 +12428,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[1] .properties.type, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid21 = _errs85 === errors; + var valid21 = _errs89 === errors; } else { var valid21 = true; } if (valid21) { if (data4.connected !== undefined) { - let data35 = data4.connected; - const _errs86 = errors; - if (typeof data35 !== 'boolean') { - const err50 = { + let data37 = data4.connected; + const _errs90 = errors; + if (typeof data37 !== 'boolean') { + const err54 = { instancePath: instancePath + '/device/connected', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/connected/type', @@ -11789,44 +12459,44 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[1] .properties.connected, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid21 = _errs86 === errors; + var valid21 = _errs90 === errors; } else { var valid21 = true; } if (valid21) { if (data4.announcedAvailability !== undefined) { - let data36 = data4.announcedAvailability; - const _errs88 = errors; - if (errors === _errs88) { - if (Array.isArray(data36)) { + let data38 = data4.announcedAvailability; + const _errs92 = errors; + if (errors === _errs92) { + if (Array.isArray(data38)) { var valid22 = true; - const len5 = data36.length; + const len5 = data38.length; for (let i5 = 0; i5 < len5; i5++) { - let data37 = data36[i5]; - const _errs90 = errors; - if (errors === _errs90) { + let data39 = data38[i5]; + const _errs94 = errors; + if (errors === _errs94) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.start !== undefined) { - let data38 = data37.start; - const _errs92 = errors; - if (errors === _errs92) { - if (errors === _errs92) { - if (typeof data38 === 'string') { - if (!formats22.validate(data38)) { - const err51 = { + if (data39.start !== undefined) { + let data40 = data39.start; + const _errs96 = errors; + if (errors === _errs96) { + if (errors === _errs96) { + if (typeof data40 === 'string') { + if (!formats26.validate(data40)) { + const err55 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11846,17 +12516,17 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11877,30 +12547,30 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid23 = _errs92 === errors; + var valid23 = _errs96 === errors; } else { var valid23 = true; } if (valid23) { - if (data37.end !== undefined) { - let data39 = data37.end; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data39 === 'string') { - if (!formats22.validate(data39)) { - const err53 = { + if (data39.end !== undefined) { + let data41 = data39.end; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data41 === 'string') { + if (!formats26.validate(data41)) { + const err57 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11920,17 +12590,17 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11951,24 +12621,24 @@ function validate36( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid23 = _errs94 === errors; + var valid23 = _errs98 === errors; } else { var valid23 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -11986,23 +12656,23 @@ function validate36( schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.announcedAvailability .items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid22 = _errs90 === errors; + var valid22 = _errs94 === errors; if (!valid22) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/device/announcedAvailability', schemaPath: @@ -12016,29 +12686,29 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1].allOf[1] .properties.announcedAvailability, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid21 = _errs88 === errors; + var valid21 = _errs92 === errors; } else { var valid21 = true; } if (valid21) { if (data4.experiment !== undefined) { - let data40 = data4.experiment; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err57 = { + let data42 = data4.experiment; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err61 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/format', @@ -12049,17 +12719,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/type', @@ -12072,46 +12742,46 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid21 = _errs96 === errors; + var valid21 = _errs100 === errors; } else { var valid21 = true; } if (valid21) { if (data4.services !== undefined) { - let data41 = data4.services; - const _errs98 = errors; - if (errors === _errs98) { - if (Array.isArray(data41)) { + let data43 = data4.services; + const _errs102 = errors; + if (errors === _errs102) { + if (Array.isArray(data43)) { var valid24 = true; - const len6 = data41.length; + const len6 = data43.length; for (let i6 = 0; i6 < len6; i6++) { - let data42 = data41[i6]; - const _errs100 = errors; - if (errors === _errs100) { + let data44 = data43[i6]; + const _errs104 = errors; + if (errors === _errs104) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { - if (data42.serviceType !== undefined) { - let data43 = data42.serviceType; - const _errs103 = errors; - if (errors === _errs103) { - if (errors === _errs103) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err59 = { + if (data44.serviceType !== undefined) { + let data45 = data44.serviceType; + const _errs107 = errors; + if (errors === _errs107) { + if (errors === _errs107) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err63 = { instancePath: instancePath + '/device/services/' + @@ -12131,17 +12801,17 @@ function validate36( .device.anyOf[1].allOf[1] .properties.services.items .properties.serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/device/services/' + @@ -12162,27 +12832,27 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid25 = _errs103 === errors; + var valid25 = _errs107 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceId !== undefined) { - let data44 = data42.serviceId; - const _errs105 = errors; - if (typeof data44 !== 'string') { - const err61 = { + if (data44.serviceId !== undefined) { + let data46 = data44.serviceId; + const _errs109 = errors; + if (typeof data46 !== 'string') { + const err65 = { instancePath: instancePath + '/device/services/' + @@ -12203,25 +12873,25 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceId, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid25 = _errs105 === errors; + var valid25 = _errs109 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceDirection !== undefined) { - let data45 = data42.serviceDirection; - const _errs107 = errors; - if (typeof data45 !== 'string') { - const err62 = { + if (data44.serviceDirection !== undefined) { + let data47 = data44.serviceDirection; + const _errs111 = errors; + if (typeof data47 !== 'string') { + const err66 = { instancePath: instancePath + '/device/services/' + @@ -12242,23 +12912,23 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data45 === 'consumer' || - data45 === 'producer' || - data45 === 'prosumer' + data47 === 'consumer' || + data47 === 'producer' || + data47 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/device/services/' + @@ -12287,23 +12957,23 @@ function validate36( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid25 = _errs107 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/device/services/' + i6, schemaPath: @@ -12317,23 +12987,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid24 = _errs100 === errors; + var valid24 = _errs104 === errors; if (!valid24) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/services/type', @@ -12346,17 +13016,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs98 === errors; + var valid21 = _errs102 === errors; } else { var valid21 = true; } @@ -12365,7 +13035,7 @@ function validate36( } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/type', keyword: 'type', @@ -12378,30 +13048,32 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid15 = _errs83 === errors; + var valid15 = _errs87 === errors; } - var _valid0 = _errs58 === errors; + var _valid0 = _errs60 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs109 = errors; - const _errs110 = errors; - if (errors === _errs110) { + const _errs113 = errors; + const _errs114 = errors; + if (errors === _errs114) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing9; if ( (data4.url === undefined && (missing9 = 'url')) || (data4.type === undefined && (missing9 = 'type')) || (data4.name === undefined && (missing9 = 'name')) || - (data4.isPublic === undefined && (missing9 = 'isPublic')) + (data4.isPublic === undefined && (missing9 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing9 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/required', @@ -12416,20 +13088,20 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data4.url !== undefined) { - let data46 = data4.url; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data46 === 'string') { - if (!formats0(data46)) { - const err68 = { + let data48 = data4.url; + const _errs116 = errors; + if (errors === _errs116) { + if (errors === _errs116) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err72 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/format', @@ -12440,17 +13112,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/type', @@ -12463,27 +13135,27 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[0] .properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs116 === errors; } else { var valid27 = true; } if (valid27) { if (data4.name !== undefined) { - let data47 = data4.name; - const _errs114 = errors; - if (typeof data47 !== 'string') { - const err70 = { + let data49 = data4.name; + const _errs118 = errors; + if (typeof data49 !== 'string') { + const err74 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/name/type', @@ -12496,25 +13168,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[0] .properties.name, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { if (data4.description !== undefined) { - let data48 = data4.description; - const _errs116 = errors; - if (typeof data48 !== 'string') { - const err71 = { + let data50 = data4.description; + const _errs120 = errors; + if (typeof data50 !== 'string') { + const err75 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/description/type', @@ -12527,25 +13199,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[0] .properties.description, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { if (data4.type !== undefined) { - let data49 = data4.type; - const _errs118 = errors; - if (typeof data49 !== 'string') { - const err72 = { + let data51 = data4.type; + const _errs122 = errors; + if (typeof data51 !== 'string') { + const err76 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/type', @@ -12558,24 +13230,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data49 === 'device' || - data49 === 'group' || - data49 === 'edge instantiable' || - data49 === 'cloud instantiable' + data51 === 'device' || + data51 === 'group' || + data51 === 'edge instantiable' || + data51 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/enum', @@ -12592,25 +13264,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid27 = _errs118 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } if (valid27) { if (data4.isPublic !== undefined) { - let data50 = data4.isPublic; - const _errs120 = errors; - if (typeof data50 !== 'boolean') { - const err74 = { + let data52 = data4.isPublic; + const _errs124 = errors; + if (typeof data52 !== 'boolean') { + const err78 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/isPublic/type', @@ -12623,42 +13295,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.isPublic, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs124 === errors; } else { var valid27 = true; } if (valid27) { if (data4.viewer !== undefined) { - let data51 = data4.viewer; - const _errs122 = errors; - if (errors === _errs122) { - if (Array.isArray(data51)) { + let data53 = data4.viewer; + const _errs126 = errors; + if (errors === _errs126) { + if (Array.isArray(data53)) { var valid28 = true; - const len7 = data51.length; + const len7 = data53.length; for (let i7 = 0; i7 < len7; i7++) { - let data52 = data51[i7]; - const _errs124 = errors; - if (errors === _errs124) { + let data54 = data53[i7]; + const _errs128 = errors; + if (errors === _errs128) { if ( - data52 && - typeof data52 == 'object' && - !Array.isArray(data52) + data54 && + typeof data54 == 'object' && + !Array.isArray(data54) ) { let missing10; if ( - data52.url === undefined && + data54.url === undefined && (missing10 = 'url') ) { - const err75 = { + const err79 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -12677,23 +13349,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data52.url !== undefined) { - let data53 = data52.url; - const _errs126 = errors; - if (errors === _errs126) { - if (errors === _errs126) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err76 = { + if (data54.url !== undefined) { + let data55 = data54.url; + const _errs130 = errors; + if (errors === _errs130) { + if (errors === _errs130) { + if (typeof data55 === 'string') { + if (!formats0(data55)) { + const err80 = { instancePath: instancePath + '/device/viewer/' + @@ -12713,17 +13385,17 @@ function validate36( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/device/viewer/' + @@ -12744,12 +13416,12 @@ function validate36( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -12758,7 +13430,7 @@ function validate36( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -12774,23 +13446,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid28 = _errs124 === errors; + var valid28 = _errs128 === errors; if (!valid28) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/viewer/type', @@ -12803,43 +13475,43 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.viewer, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid27 = _errs122 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data4.owner !== undefined) { - let data54 = data4.owner; - const _errs128 = errors; - if (errors === _errs128) { - if (Array.isArray(data54)) { + let data56 = data4.owner; + const _errs132 = errors; + if (errors === _errs132) { + if (Array.isArray(data56)) { var valid30 = true; - const len8 = data54.length; + const len8 = data56.length; for (let i8 = 0; i8 < len8; i8++) { - let data55 = data54[i8]; - const _errs130 = errors; - if (errors === _errs130) { + let data57 = data56[i8]; + const _errs134 = errors; + if (errors === _errs134) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data57 && + typeof data57 == 'object' && + !Array.isArray(data57) ) { let missing11; if ( - data55.url === undefined && + data57.url === undefined && (missing11 = 'url') ) { - const err80 = { + const err84 = { instancePath: instancePath + '/device/owner/' + @@ -12862,23 +13534,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties .owner.items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data55.url !== undefined) { - let data56 = data55.url; - const _errs132 = errors; - if (errors === _errs132) { - if (errors === _errs132) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err81 = { + if (data57.url !== undefined) { + let data58 = data57.url; + const _errs136 = errors; + if (errors === _errs136) { + if (errors === _errs136) { + if (typeof data58 === 'string') { + if (!formats0(data58)) { + const err85 = { instancePath: instancePath + '/device/owner/' + @@ -12899,17 +13571,17 @@ function validate36( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/device/owner/' + @@ -12930,12 +13602,12 @@ function validate36( .device.anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -12944,7 +13616,7 @@ function validate36( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/device/owner/' + i8, schemaPath: @@ -12960,23 +13632,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid30 = _errs130 === errors; + var valid30 = _errs134 === errors; if (!valid30) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/owner/type', @@ -12989,20 +13661,86 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[0].properties.owner, - data: data54, + data: data56, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid27 = _errs128 === errors; + var valid27 = _errs132 === errors; } else { var valid27 = true; } + if (valid27) { + if (data4.bookingEndpoint !== undefined) { + let data59 = data4.bookingEndpoint; + const _errs138 = errors; + if (errors === _errs138) { + if (errors === _errs138) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err89 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid27 = _errs138 === errors; + } else { + var valid27 = true; + } + } } } } @@ -13011,7 +13749,7 @@ function validate36( } } } else { - const err85 = { + const err91 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/type', keyword: 'type', @@ -13024,23 +13762,23 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid26 = _errs110 === errors; + var valid26 = _errs114 === errors; if (valid26) { - const _errs134 = errors; - if (errors === _errs134) { + const _errs140 = errors; + if (errors === _errs140) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data57 = data4.type; - const _errs136 = errors; - if ('edge instantiable' !== data57) { - const err86 = { + let data60 = data4.type; + const _errs142 = errors; + if ('edge instantiable' !== data60) { + const err92 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/type/const', @@ -13051,28 +13789,28 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2].allOf[1] .properties.type, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid32 = _errs136 === errors; + var valid32 = _errs142 === errors; } else { var valid32 = true; } if (valid32) { if (data4.codeUrl !== undefined) { - let data58 = data4.codeUrl; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data58 === 'string') { - if (!formats0(data58)) { - const err87 = { + let data61 = data4.codeUrl; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data61 === 'string') { + if (!formats0(data61)) { + const err93 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/format', @@ -13083,17 +13821,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/type', @@ -13106,46 +13844,46 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; } else { var valid32 = true; } if (valid32) { if (data4.services !== undefined) { - let data59 = data4.services; - const _errs139 = errors; - if (errors === _errs139) { - if (Array.isArray(data59)) { + let data62 = data4.services; + const _errs145 = errors; + if (errors === _errs145) { + if (Array.isArray(data62)) { var valid33 = true; - const len9 = data59.length; + const len9 = data62.length; for (let i9 = 0; i9 < len9; i9++) { - let data60 = data59[i9]; - const _errs141 = errors; - if (errors === _errs141) { + let data63 = data62[i9]; + const _errs147 = errors; + if (errors === _errs147) { if ( - data60 && - typeof data60 == 'object' && - !Array.isArray(data60) + data63 && + typeof data63 == 'object' && + !Array.isArray(data63) ) { - if (data60.serviceType !== undefined) { - let data61 = data60.serviceType; - const _errs144 = errors; - if (errors === _errs144) { - if (errors === _errs144) { - if (typeof data61 === 'string') { - if (!formats0(data61)) { - const err89 = { + if (data63.serviceType !== undefined) { + let data64 = data63.serviceType; + const _errs150 = errors; + if (errors === _errs150) { + if (errors === _errs150) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err95 = { instancePath: instancePath + '/device/services/' + @@ -13163,17 +13901,17 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/device/services/' + @@ -13194,27 +13932,27 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid34 = _errs144 === errors; + var valid34 = _errs150 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceId !== undefined) { - let data62 = data60.serviceId; - const _errs146 = errors; - if (typeof data62 !== 'string') { - const err91 = { + if (data63.serviceId !== undefined) { + let data65 = data63.serviceId; + const _errs152 = errors; + if (typeof data65 !== 'string') { + const err97 = { instancePath: instancePath + '/device/services/' + @@ -13233,25 +13971,25 @@ function validate36( schema21.allOf[1].properties.device .anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid34 = _errs146 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceDirection !== undefined) { - let data63 = data60.serviceDirection; - const _errs148 = errors; - if (typeof data63 !== 'string') { - const err92 = { + if (data63.serviceDirection !== undefined) { + let data66 = data63.serviceDirection; + const _errs154 = errors; + if (typeof data66 !== 'string') { + const err98 = { instancePath: instancePath + '/device/services/' + @@ -13272,23 +14010,23 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data63 === 'consumer' || - data63 === 'producer' || - data63 === 'prosumer' + data66 === 'consumer' || + data66 === 'producer' || + data66 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/device/services/' + @@ -13316,23 +14054,23 @@ function validate36( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid34 = _errs148 === errors; + var valid34 = _errs154 === errors; } else { var valid34 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/device/services/' + i9, schemaPath: @@ -13346,23 +14084,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services.items, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid33 = _errs141 === errors; + var valid33 = _errs147 === errors; if (!valid33) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/services/type', @@ -13375,24 +14113,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid32 = _errs139 === errors; + var valid32 = _errs145 === errors; } else { var valid32 = true; } } } } else { - const err96 = { + const err102 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/type', keyword: 'type', @@ -13405,30 +14143,32 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid26 = _errs134 === errors; + var valid26 = _errs140 === errors; } - var _valid0 = _errs109 === errors; + var _valid0 = _errs113 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs150 = errors; - const _errs151 = errors; - if (errors === _errs151) { + const _errs156 = errors; + const _errs157 = errors; + if (errors === _errs157) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing12; if ( (data4.url === undefined && (missing12 = 'url')) || (data4.type === undefined && (missing12 = 'type')) || (data4.name === undefined && (missing12 = 'name')) || - (data4.isPublic === undefined && (missing12 = 'isPublic')) + (data4.isPublic === undefined && (missing12 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing12 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/required', @@ -13443,20 +14183,20 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data4.url !== undefined) { - let data64 = data4.url; - const _errs153 = errors; - if (errors === _errs153) { - if (errors === _errs153) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err98 = { + let data67 = data4.url; + const _errs159 = errors; + if (errors === _errs159) { + if (errors === _errs159) { + if (typeof data67 === 'string') { + if (!formats0(data67)) { + const err104 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/format', @@ -13467,17 +14207,17 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/type', @@ -13490,27 +14230,27 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid36 = _errs153 === errors; + var valid36 = _errs159 === errors; } else { var valid36 = true; } if (valid36) { if (data4.name !== undefined) { - let data65 = data4.name; - const _errs155 = errors; - if (typeof data65 !== 'string') { - const err100 = { + let data68 = data4.name; + const _errs161 = errors; + if (typeof data68 !== 'string') { + const err106 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/name/type', @@ -13523,25 +14263,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3].allOf[0] .properties.name, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid36 = _errs155 === errors; + var valid36 = _errs161 === errors; } else { var valid36 = true; } if (valid36) { if (data4.description !== undefined) { - let data66 = data4.description; - const _errs157 = errors; - if (typeof data66 !== 'string') { - const err101 = { + let data69 = data4.description; + const _errs163 = errors; + if (typeof data69 !== 'string') { + const err107 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/description/type', @@ -13554,25 +14294,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.description, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid36 = _errs157 === errors; + var valid36 = _errs163 === errors; } else { var valid36 = true; } if (valid36) { if (data4.type !== undefined) { - let data67 = data4.type; - const _errs159 = errors; - if (typeof data67 !== 'string') { - const err102 = { + let data70 = data4.type; + const _errs165 = errors; + if (typeof data70 !== 'string') { + const err108 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/type', @@ -13585,24 +14325,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data67 === 'device' || - data67 === 'group' || - data67 === 'edge instantiable' || - data67 === 'cloud instantiable' + data70 === 'device' || + data70 === 'group' || + data70 === 'edge instantiable' || + data70 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/enum', @@ -13620,25 +14360,25 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid36 = _errs159 === errors; + var valid36 = _errs165 === errors; } else { var valid36 = true; } if (valid36) { if (data4.isPublic !== undefined) { - let data68 = data4.isPublic; - const _errs161 = errors; - if (typeof data68 !== 'boolean') { - const err104 = { + let data71 = data4.isPublic; + const _errs167 = errors; + if (typeof data71 !== 'boolean') { + const err110 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/isPublic/type', @@ -13651,42 +14391,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.isPublic, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs167 === errors; } else { var valid36 = true; } if (valid36) { if (data4.viewer !== undefined) { - let data69 = data4.viewer; - const _errs163 = errors; - if (errors === _errs163) { - if (Array.isArray(data69)) { + let data72 = data4.viewer; + const _errs169 = errors; + if (errors === _errs169) { + if (Array.isArray(data72)) { var valid37 = true; - const len10 = data69.length; + const len10 = data72.length; for (let i10 = 0; i10 < len10; i10++) { - let data70 = data69[i10]; - const _errs165 = errors; - if (errors === _errs165) { + let data73 = data72[i10]; + const _errs171 = errors; + if (errors === _errs171) { if ( - data70 && - typeof data70 == 'object' && - !Array.isArray(data70) + data73 && + typeof data73 == 'object' && + !Array.isArray(data73) ) { let missing13; if ( - data70.url === undefined && + data73.url === undefined && (missing13 = 'url') ) { - const err105 = { + const err111 = { instancePath: instancePath + '/device/viewer/' + @@ -13709,23 +14449,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties .viewer.items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data70.url !== undefined) { - let data71 = data70.url; - const _errs167 = errors; - if (errors === _errs167) { - if (errors === _errs167) { - if (typeof data71 === 'string') { - if (!formats0(data71)) { - const err106 = { + if (data73.url !== undefined) { + let data74 = data73.url; + const _errs173 = errors; + if (errors === _errs173) { + if (errors === _errs173) { + if (typeof data74 === 'string') { + if (!formats0(data74)) { + const err112 = { instancePath: instancePath + '/device/viewer/' + @@ -13746,17 +14486,17 @@ function validate36( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/device/viewer/' + @@ -13777,12 +14517,12 @@ function validate36( .device.anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -13791,7 +14531,7 @@ function validate36( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/device/viewer/' + @@ -13809,23 +14549,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid37 = _errs165 === errors; + var valid37 = _errs171 === errors; if (!valid37) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/viewer/type', @@ -13838,43 +14578,43 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[0].properties.viewer, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid36 = _errs163 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data4.owner !== undefined) { - let data72 = data4.owner; - const _errs169 = errors; - if (errors === _errs169) { - if (Array.isArray(data72)) { + let data75 = data4.owner; + const _errs175 = errors; + if (errors === _errs175) { + if (Array.isArray(data75)) { var valid39 = true; - const len11 = data72.length; + const len11 = data75.length; for (let i11 = 0; i11 < len11; i11++) { - let data73 = data72[i11]; - const _errs171 = errors; - if (errors === _errs171) { + let data76 = data75[i11]; + const _errs177 = errors; + if (errors === _errs177) { if ( - data73 && - typeof data73 == 'object' && - !Array.isArray(data73) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing14; if ( - data73.url === undefined && + data76.url === undefined && (missing14 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/device/owner/' + @@ -13898,25 +14638,25 @@ function validate36( schema21.allOf[1].properties .device.anyOf[3].allOf[0] .properties.owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data73.url !== undefined) { - let data74 = data73.url; - const _errs173 = errors; - if (errors === _errs173) { - if (errors === _errs173) { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs179 = errors; + if (errors === _errs179) { + if (errors === _errs179) { if ( - typeof data74 === 'string' + typeof data77 === 'string' ) { - if (!formats0(data74)) { - const err111 = { + if (!formats0(data77)) { + const err117 = { instancePath: instancePath + '/device/owner/' + @@ -13937,17 +14677,17 @@ function validate36( .anyOf[3].allOf[0] .properties.owner .items.properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/device/owner/' + @@ -13970,12 +14710,12 @@ function validate36( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -13984,7 +14724,7 @@ function validate36( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/device/owner/' + @@ -14002,23 +14742,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties .owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid39 = _errs171 === errors; + var valid39 = _errs177 === errors; if (!valid39) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/device/owner', schemaPath: @@ -14033,20 +14773,86 @@ function validate36( parentSchema: schema21.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner, - data: data72, + data: data75, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid36 = _errs169 === errors; + var valid36 = _errs175 === errors; } else { var valid36 = true; } + if (valid36) { + if (data4.bookingEndpoint !== undefined) { + let data78 = data4.bookingEndpoint; + const _errs181 = errors; + if (errors === _errs181) { + if (errors === _errs181) { + if (typeof data78 === 'string') { + if (!formats0(data78)) { + const err121 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema21.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema21.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema21.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid36 = _errs181 === errors; + } else { + var valid36 = true; + } + } } } } @@ -14055,7 +14861,7 @@ function validate36( } } } else { - const err115 = { + const err123 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/type', keyword: 'type', @@ -14068,21 +14874,21 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid35 = _errs151 === errors; + var valid35 = _errs157 === errors; if (valid35) { - const _errs175 = errors; - if (errors === _errs175) { + const _errs183 = errors; + if (errors === _errs183) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing15; if (data4.devices === undefined && (missing15 = 'devices')) { - const err116 = { + const err124 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/required', @@ -14097,17 +14903,17 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data4.type !== undefined) { - let data75 = data4.type; - const _errs177 = errors; - if ('group' !== data75) { - const err117 = { + let data79 = data4.type; + const _errs185 = errors; + if ('group' !== data79) { + const err125 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/type/const', @@ -14118,42 +14924,42 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3].allOf[1] .properties.type, - data: data75, + data: data79, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid41 = _errs177 === errors; + var valid41 = _errs185 === errors; } else { var valid41 = true; } if (valid41) { if (data4.devices !== undefined) { - let data76 = data4.devices; - const _errs178 = errors; - if (errors === _errs178) { - if (Array.isArray(data76)) { + let data80 = data4.devices; + const _errs186 = errors; + if (errors === _errs186) { + if (Array.isArray(data80)) { var valid42 = true; - const len12 = data76.length; + const len12 = data80.length; for (let i12 = 0; i12 < len12; i12++) { - let data77 = data76[i12]; - const _errs180 = errors; - if (errors === _errs180) { + let data81 = data80[i12]; + const _errs188 = errors; + if (errors === _errs188) { if ( - data77 && - typeof data77 == 'object' && - !Array.isArray(data77) + data81 && + typeof data81 == 'object' && + !Array.isArray(data81) ) { let missing16; if ( - data77.url === undefined && + data81.url === undefined && (missing16 = 'url') ) { - const err118 = { + const err126 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -14172,23 +14978,23 @@ function validate36( schema21.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data77.url !== undefined) { - let data78 = data77.url; - const _errs182 = errors; - if (errors === _errs182) { - if (errors === _errs182) { - if (typeof data78 === 'string') { - if (!formats0(data78)) { - const err119 = { + if (data81.url !== undefined) { + let data82 = data81.url; + const _errs190 = errors; + if (errors === _errs190) { + if (errors === _errs190) { + if (typeof data82 === 'string') { + if (!formats0(data82)) { + const err127 = { instancePath: instancePath + '/device/devices/' + @@ -14208,17 +15014,17 @@ function validate36( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/device/devices/' + @@ -14239,12 +15045,12 @@ function validate36( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -14253,7 +15059,7 @@ function validate36( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -14267,23 +15073,23 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices.items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid42 = _errs180 === errors; + var valid42 = _errs188 === errors; if (!valid42) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/device/devices', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/devices/type', @@ -14296,24 +15102,24 @@ function validate36( parentSchema: schema21.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices, - data: data76, + data: data80, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid41 = _errs178 === errors; + var valid41 = _errs186 === errors; } else { var valid41 = true; } } } } else { - const err123 = { + const err131 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/type', @@ -14327,22 +15133,22 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid35 = _errs175 === errors; + var valid35 = _errs183 === errors; } - var _valid0 = _errs150 === errors; + var _valid0 = _errs156 === errors; valid5 = valid5 || _valid0; } } } if (!valid5) { - const err124 = { + const err132 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf', keyword: 'anyOf', @@ -14353,9 +15159,9 @@ function validate36( data: data4, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate36.errors = vErrors; @@ -21415,7 +22221,7 @@ function validate43( if (errors === _errs3) { if (errors === _errs3) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate43.errors = [ { instancePath: instancePath + '/start', @@ -21458,7 +22264,7 @@ function validate43( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate43.errors = [ { instancePath: instancePath + '/end', @@ -21616,7 +22422,7 @@ function validate43( if (errors === _errs15) { if (errors === _errs15) { if (typeof data5 === 'string') { - if (!formats22.validate(data5)) { + if (!formats26.validate(data5)) { validate43.errors = [ { instancePath: instancePath + '/repeat/until', @@ -28181,7 +28987,7 @@ const schema45 = { 'x-location': '#/components/parameters/device_id/schema', 'x-schema-type': 'all', }; -const formats258 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; +const formats284 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; function validate60( data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}, @@ -28191,7 +28997,7 @@ function validate60( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate60.errors = [ { instancePath, @@ -28277,7 +29083,7 @@ function validate62( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate62.errors = [ { instancePath, @@ -28330,7 +29136,7 @@ function validate63( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate63.errors = [ { instancePath, @@ -28489,7 +29295,7 @@ function validate66( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate66.errors = [ { instancePath, @@ -28628,8 +29434,13 @@ const schema53 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, 'x-standalone': false, @@ -28657,7 +29468,8 @@ function validate68( (data0.url === undefined && (missing0 = 'url')) || (data0.type === undefined && (missing0 = 'type')) || (data0.name === undefined && (missing0 = 'name')) || - (data0.isPublic === undefined && (missing0 = 'isPublic')) + (data0.isPublic === undefined && (missing0 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate68.errors = [ { @@ -29130,6 +29942,57 @@ function validate68( } else { var valid1 = true; } + if (valid1) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs25 = errors; + if (errors === _errs25) { + if (errors === _errs25) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate68.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema53.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate68.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema53.items.properties.bookingEndpoint.type, + parentSchema: + schema53.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid1 = _errs25 === errors; + } else { + var valid1 = true; + } + } } } } @@ -29232,8 +30095,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29313,8 +30181,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29415,8 +30288,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29496,8 +30374,13 @@ const schema54 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -29549,7 +30432,8 @@ function validate69( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -30043,6 +30927,62 @@ function validate69( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema54.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -30051,7 +30991,7 @@ function validate69( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -30062,23 +31002,23 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -30086,28 +31026,28 @@ function validate69( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema54.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -30115,17 +31055,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -30133,42 +31073,42 @@ function validate69( message: 'must be string', schema: schema54.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema54.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -30180,17 +31120,17 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -30204,27 +31144,27 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -30238,25 +31178,25 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -30273,23 +31213,23 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -30310,23 +31250,23 @@ function validate69( parentSchema: schema54.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -30336,23 +31276,23 @@ function validate69( schema54.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema54.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -30360,24 +31300,24 @@ function validate69( message: 'must be array', schema: schema54.anyOf[0].allOf[1].properties.services.type, parentSchema: schema54.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -30388,30 +31328,31 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -30422,20 +31363,20 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -30443,17 +31384,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -30461,27 +31402,27 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.url.type, parentSchema: schema54.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -30489,25 +31430,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.name.type, parentSchema: schema54.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -30515,25 +31456,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.description.type, parentSchema: schema54.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -30541,24 +31482,24 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[0].properties.type.type, parentSchema: schema54.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -30568,25 +31509,25 @@ function validate69( message: 'must be equal to one of the allowed values', schema: schema54.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema54.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -30594,39 +31535,39 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema54.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -30639,23 +31580,23 @@ function validate69( .required, parentSchema: schema54.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -30668,17 +31609,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -30692,12 +31633,12 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -30706,7 +31647,7 @@ function validate69( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -30718,23 +31659,23 @@ function validate69( .type, parentSchema: schema54.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -30742,40 +31683,40 @@ function validate69( message: 'must be array', schema: schema54.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema54.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -30788,23 +31729,23 @@ function validate69( .required, parentSchema: schema54.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -30817,17 +31758,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -30841,12 +31782,12 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -30855,7 +31796,7 @@ function validate69( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -30867,23 +31808,23 @@ function validate69( .type, parentSchema: schema54.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -30891,20 +31832,77 @@ function validate69( message: 'must be array', schema: schema54.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema54.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema54.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -30913,7 +31911,7 @@ function validate69( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -30924,23 +31922,23 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -30948,25 +31946,25 @@ function validate69( message: 'must be equal to constant', schema: 'device', parentSchema: schema54.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -30974,44 +31972,44 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema54.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31026,17 +32024,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31054,30 +32052,30 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31093,17 +32091,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -31121,24 +32119,24 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -31151,23 +32149,23 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -31178,29 +32176,29 @@ function validate69( schema54.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema54.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -31209,17 +32207,17 @@ function validate69( schema: 'uri', parentSchema: schema54.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -31227,46 +32225,46 @@ function validate69( message: 'must be string', schema: schema54.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema54.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -31281,17 +32279,17 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -31308,27 +32306,27 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -31342,25 +32340,25 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -31377,23 +32375,23 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -31415,23 +32413,23 @@ function validate69( parentSchema: schema54.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -31443,23 +32441,23 @@ function validate69( .type, parentSchema: schema54.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -31467,17 +32465,17 @@ function validate69( message: 'must be array', schema: schema54.anyOf[1].allOf[1].properties.services.type, parentSchema: schema54.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -31486,7 +32484,7 @@ function validate69( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -31497,30 +32495,31 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -31531,20 +32530,20 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -31552,17 +32551,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -31570,27 +32569,27 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.url.type, parentSchema: schema54.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -31598,25 +32597,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.name.type, parentSchema: schema54.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -31624,25 +32623,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.description.type, parentSchema: schema54.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -31650,24 +32649,24 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[0].properties.type.type, parentSchema: schema54.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -31677,25 +32676,25 @@ function validate69( message: 'must be equal to one of the allowed values', schema: schema54.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema54.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -31703,39 +32702,39 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema54.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -31749,23 +32748,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -31778,17 +32777,17 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -31802,12 +32801,12 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -31816,7 +32815,7 @@ function validate69( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -31828,23 +32827,23 @@ function validate69( .type, parentSchema: schema54.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -31852,40 +32851,40 @@ function validate69( message: 'must be array', schema: schema54.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema54.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -31901,23 +32900,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -31933,17 +32932,17 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -31957,12 +32956,12 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -31971,7 +32970,7 @@ function validate69( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -31983,23 +32982,23 @@ function validate69( .type, parentSchema: schema54.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -32007,20 +33006,78 @@ function validate69( message: 'must be array', schema: schema54.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema54.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema54.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -32029,7 +33086,7 @@ function validate69( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -32040,23 +33097,23 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -32064,28 +33121,28 @@ function validate69( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema54.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -32093,17 +33150,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -32111,46 +33168,46 @@ function validate69( message: 'must be string', schema: schema54.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema54.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -32165,17 +33222,17 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -32189,27 +33246,27 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -32223,25 +33280,25 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -32258,23 +33315,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -32296,23 +33353,23 @@ function validate69( parentSchema: schema54.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -32323,23 +33380,23 @@ function validate69( schema54.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema54.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -32347,24 +33404,24 @@ function validate69( message: 'must be array', schema: schema54.anyOf[2].allOf[1].properties.services.type, parentSchema: schema54.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -32375,30 +33432,31 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -32409,20 +33467,20 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -32430,17 +33488,17 @@ function validate69( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema54.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -32448,27 +33506,27 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.url.type, parentSchema: schema54.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -32476,25 +33534,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.name.type, parentSchema: schema54.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -32502,25 +33560,25 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.description.type, parentSchema: schema54.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -32528,24 +33586,24 @@ function validate69( message: 'must be string', schema: schema54.anyOf[3].allOf[0].properties.type.type, parentSchema: schema54.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -32556,25 +33614,25 @@ function validate69( message: 'must be equal to one of the allowed values', schema: schema54.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema54.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -32582,39 +33640,39 @@ function validate69( message: 'must be boolean', schema: schema54.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema54.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -32630,23 +33688,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -32662,17 +33720,17 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -32689,12 +33747,12 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -32703,7 +33761,7 @@ function validate69( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -32716,23 +33774,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -32741,43 +33799,43 @@ function validate69( schema: schema54.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema54.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -32793,23 +33851,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -32826,17 +33884,17 @@ function validate69( schema54.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -32853,12 +33911,12 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -32867,7 +33925,7 @@ function validate69( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -32880,23 +33938,23 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -32906,20 +33964,78 @@ function validate69( schema54.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema54.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema54.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema54.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema54.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -32928,7 +34044,7 @@ function validate69( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -32939,21 +34055,21 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -32964,17 +34080,17 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -32982,39 +34098,39 @@ function validate69( message: 'must be equal to constant', schema: 'group', parentSchema: schema54.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -33027,23 +34143,23 @@ function validate69( .required, parentSchema: schema54.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -33055,17 +34171,17 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -33079,12 +34195,12 @@ function validate69( parentSchema: schema54.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -33093,7 +34209,7 @@ function validate69( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -33105,23 +34221,23 @@ function validate69( .type, parentSchema: schema54.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -33129,24 +34245,24 @@ function validate69( message: 'must be array', schema: schema54.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema54.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -33157,22 +34273,22 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -33183,9 +34299,9 @@ function validate69( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate69.errors = vErrors; @@ -33258,8 +34374,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33339,8 +34460,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33441,8 +34567,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33522,8 +34653,13 @@ const schema55 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -33575,7 +34711,8 @@ function validate70( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -34069,6 +35206,62 @@ function validate70( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema55.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -34077,7 +35270,7 @@ function validate70( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -34088,23 +35281,23 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -34112,28 +35305,28 @@ function validate70( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema55.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -34141,17 +35334,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -34159,42 +35352,42 @@ function validate70( message: 'must be string', schema: schema55.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema55.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -34206,17 +35399,17 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -34230,27 +35423,27 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -34264,25 +35457,25 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -34299,23 +35492,23 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -34336,23 +35529,23 @@ function validate70( parentSchema: schema55.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -34362,23 +35555,23 @@ function validate70( schema55.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema55.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -34386,24 +35579,24 @@ function validate70( message: 'must be array', schema: schema55.anyOf[0].allOf[1].properties.services.type, parentSchema: schema55.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -34414,30 +35607,31 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -34448,20 +35642,20 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -34469,17 +35663,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -34487,27 +35681,27 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.url.type, parentSchema: schema55.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -34515,25 +35709,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.name.type, parentSchema: schema55.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -34541,25 +35735,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.description.type, parentSchema: schema55.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -34567,24 +35761,24 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[0].properties.type.type, parentSchema: schema55.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -34594,25 +35788,25 @@ function validate70( message: 'must be equal to one of the allowed values', schema: schema55.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema55.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -34620,39 +35814,39 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema55.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -34665,23 +35859,23 @@ function validate70( .required, parentSchema: schema55.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -34694,17 +35888,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -34718,12 +35912,12 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -34732,7 +35926,7 @@ function validate70( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -34744,23 +35938,23 @@ function validate70( .type, parentSchema: schema55.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -34768,40 +35962,40 @@ function validate70( message: 'must be array', schema: schema55.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema55.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -34814,23 +36008,23 @@ function validate70( .required, parentSchema: schema55.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -34843,17 +36037,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -34867,12 +36061,12 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -34881,7 +36075,7 @@ function validate70( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -34893,23 +36087,23 @@ function validate70( .type, parentSchema: schema55.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -34917,20 +36111,77 @@ function validate70( message: 'must be array', schema: schema55.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema55.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema55.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -34939,7 +36190,7 @@ function validate70( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -34950,23 +36201,23 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -34974,25 +36225,25 @@ function validate70( message: 'must be equal to constant', schema: 'device', parentSchema: schema55.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -35000,44 +36251,44 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema55.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35052,17 +36303,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35080,30 +36331,30 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35119,17 +36370,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -35147,24 +36398,24 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -35177,23 +36428,23 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -35204,29 +36455,29 @@ function validate70( schema55.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema55.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -35235,17 +36486,17 @@ function validate70( schema: 'uri', parentSchema: schema55.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -35253,46 +36504,46 @@ function validate70( message: 'must be string', schema: schema55.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema55.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -35307,17 +36558,17 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -35334,27 +36585,27 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -35368,25 +36619,25 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -35403,23 +36654,23 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -35441,23 +36692,23 @@ function validate70( parentSchema: schema55.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -35469,23 +36720,23 @@ function validate70( .type, parentSchema: schema55.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -35493,17 +36744,17 @@ function validate70( message: 'must be array', schema: schema55.anyOf[1].allOf[1].properties.services.type, parentSchema: schema55.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -35512,7 +36763,7 @@ function validate70( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -35523,30 +36774,31 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -35557,20 +36809,20 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -35578,17 +36830,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -35596,27 +36848,27 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.url.type, parentSchema: schema55.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -35624,25 +36876,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.name.type, parentSchema: schema55.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -35650,25 +36902,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.description.type, parentSchema: schema55.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -35676,24 +36928,24 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[0].properties.type.type, parentSchema: schema55.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -35703,25 +36955,25 @@ function validate70( message: 'must be equal to one of the allowed values', schema: schema55.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema55.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -35729,39 +36981,39 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema55.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -35775,23 +37027,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -35804,17 +37056,17 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -35828,12 +37080,12 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -35842,7 +37094,7 @@ function validate70( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -35854,23 +37106,23 @@ function validate70( .type, parentSchema: schema55.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -35878,40 +37130,40 @@ function validate70( message: 'must be array', schema: schema55.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema55.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -35927,23 +37179,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -35959,17 +37211,17 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -35983,12 +37235,12 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -35997,7 +37249,7 @@ function validate70( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -36009,23 +37261,23 @@ function validate70( .type, parentSchema: schema55.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -36033,20 +37285,78 @@ function validate70( message: 'must be array', schema: schema55.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema55.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema55.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -36055,7 +37365,7 @@ function validate70( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -36066,23 +37376,23 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -36090,28 +37400,28 @@ function validate70( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema55.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -36119,17 +37429,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -36137,46 +37447,46 @@ function validate70( message: 'must be string', schema: schema55.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema55.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -36191,17 +37501,17 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -36215,27 +37525,27 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -36249,25 +37559,25 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -36284,23 +37594,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -36322,23 +37632,23 @@ function validate70( parentSchema: schema55.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -36349,23 +37659,23 @@ function validate70( schema55.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema55.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -36373,24 +37683,24 @@ function validate70( message: 'must be array', schema: schema55.anyOf[2].allOf[1].properties.services.type, parentSchema: schema55.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -36401,30 +37711,31 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -36435,20 +37746,20 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -36456,17 +37767,17 @@ function validate70( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema55.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -36474,27 +37785,27 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.url.type, parentSchema: schema55.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -36502,25 +37813,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.name.type, parentSchema: schema55.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -36528,25 +37839,25 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.description.type, parentSchema: schema55.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -36554,24 +37865,24 @@ function validate70( message: 'must be string', schema: schema55.anyOf[3].allOf[0].properties.type.type, parentSchema: schema55.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -36582,25 +37893,25 @@ function validate70( message: 'must be equal to one of the allowed values', schema: schema55.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema55.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -36608,39 +37919,39 @@ function validate70( message: 'must be boolean', schema: schema55.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema55.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -36656,23 +37967,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -36688,17 +37999,17 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -36715,12 +38026,12 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -36729,7 +38040,7 @@ function validate70( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -36742,23 +38053,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -36767,43 +38078,43 @@ function validate70( schema: schema55.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema55.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -36819,23 +38130,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -36852,17 +38163,17 @@ function validate70( schema55.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -36879,12 +38190,12 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -36893,7 +38204,7 @@ function validate70( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -36906,23 +38217,23 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -36932,20 +38243,78 @@ function validate70( schema55.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema55.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema55.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema55.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema55.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -36954,7 +38323,7 @@ function validate70( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -36965,21 +38334,21 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -36990,17 +38359,17 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -37008,39 +38377,39 @@ function validate70( message: 'must be equal to constant', schema: 'group', parentSchema: schema55.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -37053,23 +38422,23 @@ function validate70( .required, parentSchema: schema55.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -37081,17 +38450,17 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -37105,12 +38474,12 @@ function validate70( parentSchema: schema55.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -37119,7 +38488,7 @@ function validate70( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -37131,23 +38500,23 @@ function validate70( .type, parentSchema: schema55.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -37155,24 +38524,24 @@ function validate70( message: 'must be array', schema: schema55.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema55.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -37183,22 +38552,22 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -37209,9 +38578,9 @@ function validate70( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate70.errors = vErrors; @@ -37284,8 +38653,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37365,8 +38739,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37467,8 +38846,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37548,8 +38932,13 @@ const schema56 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -37602,7 +38991,8 @@ function validate71( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -38096,6 +39486,62 @@ function validate71( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema56.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -38104,7 +39550,7 @@ function validate71( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -38115,23 +39561,23 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -38139,28 +39585,28 @@ function validate71( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema56.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -38168,17 +39614,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -38186,42 +39632,42 @@ function validate71( message: 'must be string', schema: schema56.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema56.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -38233,17 +39679,17 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -38257,27 +39703,27 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -38291,25 +39737,25 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -38326,23 +39772,23 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -38363,23 +39809,23 @@ function validate71( parentSchema: schema56.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -38389,23 +39835,23 @@ function validate71( schema56.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema56.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -38413,24 +39859,24 @@ function validate71( message: 'must be array', schema: schema56.anyOf[0].allOf[1].properties.services.type, parentSchema: schema56.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -38441,30 +39887,31 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -38475,20 +39922,20 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -38496,17 +39943,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -38514,27 +39961,27 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.url.type, parentSchema: schema56.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -38542,25 +39989,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.name.type, parentSchema: schema56.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -38568,25 +40015,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.description.type, parentSchema: schema56.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -38594,24 +40041,24 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[0].properties.type.type, parentSchema: schema56.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -38621,25 +40068,25 @@ function validate71( message: 'must be equal to one of the allowed values', schema: schema56.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema56.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -38647,39 +40094,39 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema56.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -38692,23 +40139,23 @@ function validate71( .required, parentSchema: schema56.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -38721,17 +40168,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -38745,12 +40192,12 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -38759,7 +40206,7 @@ function validate71( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -38771,23 +40218,23 @@ function validate71( .type, parentSchema: schema56.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -38795,40 +40242,40 @@ function validate71( message: 'must be array', schema: schema56.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema56.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -38841,23 +40288,23 @@ function validate71( .required, parentSchema: schema56.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -38870,17 +40317,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -38894,12 +40341,12 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -38908,7 +40355,7 @@ function validate71( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -38920,23 +40367,23 @@ function validate71( .type, parentSchema: schema56.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -38944,20 +40391,77 @@ function validate71( message: 'must be array', schema: schema56.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema56.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema56.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -38966,7 +40470,7 @@ function validate71( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -38977,23 +40481,23 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -39001,25 +40505,25 @@ function validate71( message: 'must be equal to constant', schema: 'device', parentSchema: schema56.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -39027,44 +40531,44 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema56.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39079,17 +40583,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39107,30 +40611,30 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39146,17 +40650,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -39174,24 +40678,24 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -39204,23 +40708,23 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -39231,29 +40735,29 @@ function validate71( schema56.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema56.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -39262,17 +40766,17 @@ function validate71( schema: 'uri', parentSchema: schema56.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -39280,46 +40784,46 @@ function validate71( message: 'must be string', schema: schema56.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema56.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -39334,17 +40838,17 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -39361,27 +40865,27 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -39395,25 +40899,25 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -39430,23 +40934,23 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -39468,23 +40972,23 @@ function validate71( parentSchema: schema56.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -39496,23 +41000,23 @@ function validate71( .type, parentSchema: schema56.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -39520,17 +41024,17 @@ function validate71( message: 'must be array', schema: schema56.anyOf[1].allOf[1].properties.services.type, parentSchema: schema56.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -39539,7 +41043,7 @@ function validate71( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -39550,30 +41054,31 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -39584,20 +41089,20 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -39605,17 +41110,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -39623,27 +41128,27 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.url.type, parentSchema: schema56.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -39651,25 +41156,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.name.type, parentSchema: schema56.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -39677,25 +41182,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.description.type, parentSchema: schema56.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -39703,24 +41208,24 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[0].properties.type.type, parentSchema: schema56.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -39730,25 +41235,25 @@ function validate71( message: 'must be equal to one of the allowed values', schema: schema56.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema56.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -39756,39 +41261,39 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema56.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -39802,23 +41307,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -39831,17 +41336,17 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -39855,12 +41360,12 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -39869,7 +41374,7 @@ function validate71( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -39881,23 +41386,23 @@ function validate71( .type, parentSchema: schema56.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -39905,40 +41410,40 @@ function validate71( message: 'must be array', schema: schema56.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema56.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -39954,23 +41459,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -39986,17 +41491,17 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -40010,12 +41515,12 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -40024,7 +41529,7 @@ function validate71( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -40036,23 +41541,23 @@ function validate71( .type, parentSchema: schema56.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -40060,20 +41565,78 @@ function validate71( message: 'must be array', schema: schema56.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema56.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema56.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -40082,7 +41645,7 @@ function validate71( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -40093,23 +41656,23 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -40117,28 +41680,28 @@ function validate71( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema56.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -40146,17 +41709,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -40164,46 +41727,46 @@ function validate71( message: 'must be string', schema: schema56.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema56.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -40218,17 +41781,17 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -40242,27 +41805,27 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -40276,25 +41839,25 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -40311,23 +41874,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -40349,23 +41912,23 @@ function validate71( parentSchema: schema56.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -40376,23 +41939,23 @@ function validate71( schema56.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema56.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -40400,24 +41963,24 @@ function validate71( message: 'must be array', schema: schema56.anyOf[2].allOf[1].properties.services.type, parentSchema: schema56.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -40428,30 +41991,31 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -40462,20 +42026,20 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -40483,17 +42047,17 @@ function validate71( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema56.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -40501,27 +42065,27 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.url.type, parentSchema: schema56.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -40529,25 +42093,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.name.type, parentSchema: schema56.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -40555,25 +42119,25 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.description.type, parentSchema: schema56.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -40581,24 +42145,24 @@ function validate71( message: 'must be string', schema: schema56.anyOf[3].allOf[0].properties.type.type, parentSchema: schema56.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -40609,25 +42173,25 @@ function validate71( message: 'must be equal to one of the allowed values', schema: schema56.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema56.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -40635,39 +42199,39 @@ function validate71( message: 'must be boolean', schema: schema56.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema56.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -40683,23 +42247,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -40715,17 +42279,17 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -40742,12 +42306,12 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -40756,7 +42320,7 @@ function validate71( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -40769,23 +42333,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -40794,43 +42358,43 @@ function validate71( schema: schema56.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema56.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -40846,23 +42410,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -40879,17 +42443,17 @@ function validate71( schema56.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -40906,12 +42470,12 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -40920,7 +42484,7 @@ function validate71( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -40933,23 +42497,23 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -40959,20 +42523,78 @@ function validate71( schema56.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema56.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema56.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema56.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema56.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -40981,7 +42603,7 @@ function validate71( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -40992,21 +42614,21 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -41017,17 +42639,17 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -41035,39 +42657,39 @@ function validate71( message: 'must be equal to constant', schema: 'group', parentSchema: schema56.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -41080,23 +42702,23 @@ function validate71( .required, parentSchema: schema56.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -41108,17 +42730,17 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -41132,12 +42754,12 @@ function validate71( parentSchema: schema56.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -41146,7 +42768,7 @@ function validate71( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -41158,23 +42780,23 @@ function validate71( .type, parentSchema: schema56.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -41182,24 +42804,24 @@ function validate71( message: 'must be array', schema: schema56.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema56.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -41210,22 +42832,22 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -41236,9 +42858,9 @@ function validate71( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate71.errors = vErrors; @@ -44767,8 +46389,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -44848,8 +46475,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -44950,8 +46582,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -45031,8 +46668,13 @@ const schema58 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -45085,7 +46727,8 @@ function validate73( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -45579,6 +47222,62 @@ function validate73( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema58.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -45587,7 +47286,7 @@ function validate73( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -45598,23 +47297,23 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -45622,28 +47321,28 @@ function validate73( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema58.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -45651,17 +47350,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -45669,42 +47368,42 @@ function validate73( message: 'must be string', schema: schema58.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema58.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -45716,17 +47415,17 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -45740,27 +47439,27 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -45774,25 +47473,25 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -45809,23 +47508,23 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -45846,23 +47545,23 @@ function validate73( parentSchema: schema58.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -45872,23 +47571,23 @@ function validate73( schema58.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema58.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -45896,24 +47595,24 @@ function validate73( message: 'must be array', schema: schema58.anyOf[0].allOf[1].properties.services.type, parentSchema: schema58.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -45924,30 +47623,31 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -45958,20 +47658,20 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -45979,17 +47679,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -45997,27 +47697,27 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.url.type, parentSchema: schema58.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -46025,25 +47725,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.name.type, parentSchema: schema58.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -46051,25 +47751,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.description.type, parentSchema: schema58.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -46077,24 +47777,24 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[0].properties.type.type, parentSchema: schema58.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -46104,25 +47804,25 @@ function validate73( message: 'must be equal to one of the allowed values', schema: schema58.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema58.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -46130,39 +47830,39 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema58.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -46175,23 +47875,23 @@ function validate73( .required, parentSchema: schema58.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -46204,17 +47904,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -46228,12 +47928,12 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -46242,7 +47942,7 @@ function validate73( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -46254,23 +47954,23 @@ function validate73( .type, parentSchema: schema58.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -46278,40 +47978,40 @@ function validate73( message: 'must be array', schema: schema58.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema58.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -46324,23 +48024,23 @@ function validate73( .required, parentSchema: schema58.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -46353,17 +48053,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -46377,12 +48077,12 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -46391,7 +48091,7 @@ function validate73( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -46403,23 +48103,23 @@ function validate73( .type, parentSchema: schema58.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -46427,20 +48127,77 @@ function validate73( message: 'must be array', schema: schema58.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema58.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema58.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -46449,7 +48206,7 @@ function validate73( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -46460,23 +48217,23 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -46484,25 +48241,25 @@ function validate73( message: 'must be equal to constant', schema: 'device', parentSchema: schema58.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -46510,44 +48267,44 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema58.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46562,17 +48319,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46590,30 +48347,30 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46629,17 +48386,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -46657,24 +48414,24 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -46687,23 +48444,23 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -46714,29 +48471,29 @@ function validate73( schema58.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema58.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -46745,17 +48502,17 @@ function validate73( schema: 'uri', parentSchema: schema58.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -46763,46 +48520,46 @@ function validate73( message: 'must be string', schema: schema58.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema58.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -46817,17 +48574,17 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -46844,27 +48601,27 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -46878,25 +48635,25 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -46913,23 +48670,23 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -46951,23 +48708,23 @@ function validate73( parentSchema: schema58.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -46979,23 +48736,23 @@ function validate73( .type, parentSchema: schema58.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -47003,17 +48760,17 @@ function validate73( message: 'must be array', schema: schema58.anyOf[1].allOf[1].properties.services.type, parentSchema: schema58.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -47022,7 +48779,7 @@ function validate73( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -47033,30 +48790,31 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -47067,20 +48825,20 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -47088,17 +48846,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -47106,27 +48864,27 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.url.type, parentSchema: schema58.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -47134,25 +48892,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.name.type, parentSchema: schema58.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -47160,25 +48918,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.description.type, parentSchema: schema58.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -47186,24 +48944,24 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[0].properties.type.type, parentSchema: schema58.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -47213,25 +48971,25 @@ function validate73( message: 'must be equal to one of the allowed values', schema: schema58.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema58.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -47239,39 +48997,39 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema58.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -47285,23 +49043,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -47314,17 +49072,17 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -47338,12 +49096,12 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -47352,7 +49110,7 @@ function validate73( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -47364,23 +49122,23 @@ function validate73( .type, parentSchema: schema58.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -47388,40 +49146,40 @@ function validate73( message: 'must be array', schema: schema58.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema58.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -47437,23 +49195,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -47469,17 +49227,17 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -47493,12 +49251,12 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -47507,7 +49265,7 @@ function validate73( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -47519,23 +49277,23 @@ function validate73( .type, parentSchema: schema58.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -47543,20 +49301,78 @@ function validate73( message: 'must be array', schema: schema58.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema58.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema58.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -47565,7 +49381,7 @@ function validate73( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -47576,23 +49392,23 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -47600,28 +49416,28 @@ function validate73( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema58.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -47629,17 +49445,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -47647,46 +49463,46 @@ function validate73( message: 'must be string', schema: schema58.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema58.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -47701,17 +49517,17 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -47725,27 +49541,27 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -47759,25 +49575,25 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -47794,23 +49610,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -47832,23 +49648,23 @@ function validate73( parentSchema: schema58.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -47859,23 +49675,23 @@ function validate73( schema58.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema58.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -47883,24 +49699,24 @@ function validate73( message: 'must be array', schema: schema58.anyOf[2].allOf[1].properties.services.type, parentSchema: schema58.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -47911,30 +49727,31 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -47945,20 +49762,20 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -47966,17 +49783,17 @@ function validate73( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema58.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -47984,27 +49801,27 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.url.type, parentSchema: schema58.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -48012,25 +49829,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.name.type, parentSchema: schema58.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -48038,25 +49855,25 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.description.type, parentSchema: schema58.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -48064,24 +49881,24 @@ function validate73( message: 'must be string', schema: schema58.anyOf[3].allOf[0].properties.type.type, parentSchema: schema58.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -48092,25 +49909,25 @@ function validate73( message: 'must be equal to one of the allowed values', schema: schema58.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema58.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -48118,39 +49935,39 @@ function validate73( message: 'must be boolean', schema: schema58.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema58.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -48166,23 +49983,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -48198,17 +50015,17 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -48225,12 +50042,12 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -48239,7 +50056,7 @@ function validate73( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -48252,23 +50069,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -48277,43 +50094,43 @@ function validate73( schema: schema58.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema58.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -48329,23 +50146,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -48362,17 +50179,17 @@ function validate73( schema58.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -48389,12 +50206,12 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -48403,7 +50220,7 @@ function validate73( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -48416,23 +50233,23 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -48442,20 +50259,78 @@ function validate73( schema58.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema58.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema58.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema58.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema58.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -48464,7 +50339,7 @@ function validate73( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -48475,21 +50350,21 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -48500,17 +50375,17 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -48518,39 +50393,39 @@ function validate73( message: 'must be equal to constant', schema: 'group', parentSchema: schema58.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -48563,23 +50438,23 @@ function validate73( .required, parentSchema: schema58.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -48591,17 +50466,17 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -48615,12 +50490,12 @@ function validate73( parentSchema: schema58.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -48629,7 +50504,7 @@ function validate73( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -48641,23 +50516,23 @@ function validate73( .type, parentSchema: schema58.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -48665,24 +50540,24 @@ function validate73( message: 'must be array', schema: schema58.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema58.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -48693,22 +50568,22 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -48719,9 +50594,9 @@ function validate73( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate73.errors = vErrors; @@ -48794,8 +50669,13 @@ const schema59 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -48892,7 +50772,8 @@ function validate74( (data0.url === undefined && (missing1 = 'url')) || (data0.type === undefined && (missing1 = 'type')) || (data0.name === undefined && (missing1 = 'name')) || - (data0.isPublic === undefined && (missing1 = 'isPublic')) + (data0.isPublic === undefined && (missing1 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing1 = 'bookingEndpoint')) ) { validate74.errors = [ { @@ -49409,6 +51290,60 @@ function validate74( } else { var valid2 = true; } + if (valid2) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate74.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema59.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate74.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema59.properties.instance.allOf[0] + .properties.bookingEndpoint.type, + parentSchema: + schema59.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -49434,13 +51369,13 @@ function validate74( } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data0 && typeof data0 == 'object' && !Array.isArray(data0)) { if (data0.type !== undefined) { - let data12 = data0.type; - const _errs28 = errors; - if ('device' !== data12) { + let data13 = data0.type; + const _errs30 = errors; + if ('device' !== data13) { validate74.errors = [ { instancePath: instancePath + '/instance/type', @@ -49451,20 +51386,20 @@ function validate74( schema: 'device', parentSchema: schema59.properties.instance.allOf[1].properties.type, - data: data12, + data: data13, }, ]; return false; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data0.connected !== undefined) { - let data13 = data0.connected; - const _errs29 = errors; - if (typeof data13 !== 'boolean') { + let data14 = data0.connected; + const _errs31 = errors; + if (typeof data14 !== 'boolean') { validate74.errors = [ { instancePath: instancePath + '/instance/connected', @@ -49478,39 +51413,39 @@ function validate74( .type, parentSchema: schema59.properties.instance.allOf[1].properties.connected, - data: data13, + data: data14, }, ]; return false; } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data0.announcedAvailability !== undefined) { - let data14 = data0.announcedAvailability; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data14)) { + let data15 = data0.announcedAvailability; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data15)) { var valid8 = true; - const len2 = data14.length; + const len2 = data15.length; for (let i2 = 0; i2 < len2; i2++) { - let data15 = data14[i2]; - const _errs33 = errors; - if (errors === _errs33) { + let data16 = data15[i2]; + const _errs35 = errors; + if (errors === _errs35) { if ( - data15 && - typeof data15 == 'object' && - !Array.isArray(data15) + data16 && + typeof data16 == 'object' && + !Array.isArray(data16) ) { - if (data15.start !== undefined) { - let data16 = data15.start; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data16.start !== undefined) { + let data17 = data16.start; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate74.errors = [ { instancePath: @@ -49529,7 +51464,7 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; @@ -49555,25 +51490,25 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; } } } - var valid9 = _errs35 === errors; + var valid9 = _errs37 === errors; } else { var valid9 = true; } if (valid9) { - if (data15.end !== undefined) { - let data17 = data15.end; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats22.validate(data17)) { + if (data16.end !== undefined) { + let data18 = data16.end; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats26.validate(data18)) { validate74.errors = [ { instancePath: @@ -49594,7 +51529,7 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability .items.properties.end, - data: data17, + data: data18, }, ]; return false; @@ -49620,14 +51555,14 @@ function validate74( schema59.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.end, - data: data17, + data: data18, }, ]; return false; } } } - var valid9 = _errs37 === errors; + var valid9 = _errs39 === errors; } else { var valid9 = true; } @@ -49650,13 +51585,13 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .announcedAvailability.items, - data: data15, + data: data16, }, ]; return false; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } @@ -49677,24 +51612,24 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .announcedAvailability, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } if (valid7) { if (data0.experiment !== undefined) { - let data18 = data0.experiment; - const _errs39 = errors; - if (errors === _errs39) { - if (errors === _errs39) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { + let data19 = data0.experiment; + const _errs41 = errors; + if (errors === _errs41) { + if (errors === _errs41) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { validate74.errors = [ { instancePath: instancePath + '/instance/experiment', @@ -49707,7 +51642,7 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; @@ -49727,41 +51662,41 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; } } } - var valid7 = _errs39 === errors; + var valid7 = _errs41 === errors; } else { var valid7 = true; } if (valid7) { if (data0.services !== undefined) { - let data19 = data0.services; - const _errs41 = errors; - if (errors === _errs41) { - if (Array.isArray(data19)) { + let data20 = data0.services; + const _errs43 = errors; + if (errors === _errs43) { + if (Array.isArray(data20)) { var valid10 = true; - const len3 = data19.length; + const len3 = data20.length; for (let i3 = 0; i3 < len3; i3++) { - let data20 = data19[i3]; - const _errs43 = errors; - if (errors === _errs43) { + let data21 = data20[i3]; + const _errs45 = errors; + if (errors === _errs45) { if ( - data20 && - typeof data20 == 'object' && - !Array.isArray(data20) + data21 && + typeof data21 == 'object' && + !Array.isArray(data21) ) { - if (data20.serviceType !== undefined) { - let data21 = data20.serviceType; - const _errs46 = errors; - if (errors === _errs46) { - if (errors === _errs46) { - if (typeof data21 === 'string') { - if (!formats0(data21)) { + if (data21.serviceType !== undefined) { + let data22 = data21.serviceType; + const _errs48 = errors; + if (errors === _errs48) { + if (errors === _errs48) { + if (typeof data22 === 'string') { + if (!formats0(data22)) { validate74.errors = [ { instancePath: @@ -49780,7 +51715,7 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items .properties.serviceType, - data: data21, + data: data22, }, ]; return false; @@ -49806,22 +51741,22 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data21, + data: data22, }, ]; return false; } } } - var valid11 = _errs46 === errors; + var valid11 = _errs48 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceId !== undefined) { - let data22 = data20.serviceId; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data21.serviceId !== undefined) { + let data23 = data21.serviceId; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate74.errors = [ { instancePath: @@ -49842,20 +51777,20 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceId, - data: data22, + data: data23, }, ]; return false; } - var valid11 = _errs48 === errors; + var valid11 = _errs50 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceDirection !== undefined) { - let data23 = data20.serviceDirection; - const _errs50 = errors; - if (typeof data23 !== 'string') { + if (data21.serviceDirection !== undefined) { + let data24 = data21.serviceDirection; + const _errs52 = errors; + if (typeof data24 !== 'string') { validate74.errors = [ { instancePath: @@ -49876,16 +51811,16 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } if ( !( - data23 === 'consumer' || - data23 === 'producer' || - data23 === 'prosumer' + data24 === 'consumer' || + data24 === 'producer' || + data24 === 'prosumer' ) ) { validate74.errors = [ @@ -49914,12 +51849,12 @@ function validate74( schema59.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } - var valid11 = _errs50 === errors; + var valid11 = _errs52 === errors; } else { var valid11 = true; } @@ -49941,13 +51876,13 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .services.items, - data: data20, + data: data21, }, ]; return false; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (!valid10) { break; } @@ -49967,13 +51902,13 @@ function validate74( parentSchema: schema59.properties.instance.allOf[1].properties .services, - data: data19, + data: data20, }, ]; return false; } } - var valid7 = _errs41 === errors; + var valid7 = _errs43 === errors; } else { var valid7 = true; } @@ -49997,7 +51932,7 @@ function validate74( return false; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var valid0 = _errs1 === errors; } else { @@ -50005,9 +51940,9 @@ function validate74( } if (valid0) { if (data.deviceToken !== undefined) { - let data24 = data.deviceToken; - const _errs52 = errors; - if (typeof data24 !== 'string') { + let data25 = data.deviceToken; + const _errs54 = errors; + if (typeof data25 !== 'string') { validate74.errors = [ { instancePath: instancePath + '/deviceToken', @@ -50017,12 +51952,12 @@ function validate74( message: 'must be string', schema: schema59.properties.deviceToken.type, parentSchema: schema59.properties.deviceToken, - data: data24, + data: data25, }, ]; return false; } - var valid0 = _errs52 === errors; + var valid0 = _errs54 === errors; } else { var valid0 = true; } @@ -50088,7 +52023,7 @@ function validate75( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate75.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -50131,7 +52066,7 @@ function validate75( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate75.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -50294,7 +52229,7 @@ function validate76( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate76.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -50337,7 +52272,7 @@ function validate76( if (errors === _errs7) { if (errors === _errs7) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate76.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -50505,7 +52440,7 @@ function validate76( if (errors === _errs17) { if (errors === _errs17) { if (typeof data6 === 'string') { - if (!formats22.validate(data6)) { + if (!formats26.validate(data6)) { validate76.errors = [ { instancePath: @@ -50695,7 +52630,7 @@ function validate77( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate77.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -50738,7 +52673,7 @@ function validate77( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate77.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -57414,8 +59349,13 @@ const schema77 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, 'x-standalone': true, 'x-name': 'DeviceOverviewRequest', @@ -57434,7 +59374,8 @@ function validate92( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate92.errors = [ { @@ -57814,6 +59755,50 @@ function validate92( } else { var valid0 = true; } + if (valid0) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs21 = errors; + if (errors === _errs21) { + if (errors === _errs21) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate92.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: schema77.properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate92.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema77.properties.bookingEndpoint.type, + parentSchema: schema77.properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid0 = _errs21 === errors; + } else { + var valid0 = true; + } + } } } } @@ -57888,8 +59873,13 @@ const schema78 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, 'x-standalone': true, 'x-name': 'DeviceOverviewResponse', @@ -57909,7 +59899,8 @@ function validate93( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate93.errors = [ { @@ -58333,6 +60324,50 @@ function validate93( } else { var valid0 = true; } + if (valid0) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs23 = errors; + if (errors === _errs23) { + if (errors === _errs23) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate93.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: schema78.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate93.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema78.properties.bookingEndpoint.type, + parentSchema: schema78.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid0 = _errs23 === errors; + } else { + var valid0 = true; + } + } } } } @@ -58699,8 +60734,13 @@ const schema81 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -58746,7 +60786,8 @@ function validate96( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate96.errors = [ { @@ -59131,6 +61172,53 @@ function validate96( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate96.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema81.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate96.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema81.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema81.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -59155,13 +61243,13 @@ function validate96( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('cloud instantiable' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('cloud instantiable' !== data11) { validate96.errors = [ { instancePath: instancePath + '/type', @@ -59171,23 +61259,23 @@ function validate96( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema81.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs25 = errors; - if (errors === _errs25) { - if (errors === _errs25) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { + let data12 = data.instantiateUrl; + const _errs27 = errors; + if (errors === _errs27) { + if (errors === _errs27) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { validate96.errors = [ { instancePath: instancePath + '/instantiateUrl', @@ -59197,7 +61285,7 @@ function validate96( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema81.allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }, ]; return false; @@ -59212,37 +61300,37 @@ function validate96( message: 'must be string', schema: schema81.allOf[1].properties.instantiateUrl.type, parentSchema: schema81.allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }, ]; return false; } } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data12 = data.services; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs32 = errors; - if (errors === _errs32) { - if (errors === _errs32) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs34 = errors; + if (errors === _errs34) { + if (errors === _errs34) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate96.errors = [ { instancePath: @@ -59256,7 +61344,7 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; @@ -59277,22 +61365,22 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; } } } - var valid8 = _errs32 === errors; + var valid8 = _errs34 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs34 = errors; - if (typeof data15 !== 'string') { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs36 = errors; + if (typeof data16 !== 'string') { validate96.errors = [ { instancePath: @@ -59308,20 +61396,20 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items.properties .serviceId, - data: data15, + data: data16, }, ]; return false; } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate96.errors = [ { instancePath: @@ -59340,16 +61428,16 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { validate96.errors = [ @@ -59374,12 +61462,12 @@ function validate96( parentSchema: schema81.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } @@ -59395,13 +61483,13 @@ function validate96( message: 'must be object', schema: schema81.allOf[1].properties.services.items.type, parentSchema: schema81.allOf[1].properties.services.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -59416,13 +61504,13 @@ function validate96( message: 'must be array', schema: schema81.allOf[1].properties.services.type, parentSchema: schema81.allOf[1].properties.services, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -59444,7 +61532,7 @@ function validate96( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate96.errors = vErrors; return errors === 0; @@ -59501,8 +61589,13 @@ const schema82 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -59549,7 +61642,8 @@ function validate97( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate97.errors = [ { @@ -59980,6 +62074,54 @@ function validate97( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate97.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema82.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate97.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema82.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema82.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -60005,13 +62147,13 @@ function validate97( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data12) { validate97.errors = [ { instancePath: instancePath + '/type', @@ -60021,23 +62163,23 @@ function validate97( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema82.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate97.errors = [ { instancePath: instancePath + '/instantiateUrl', @@ -60047,7 +62189,7 @@ function validate97( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema82.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; @@ -60062,37 +62204,37 @@ function validate97( message: 'must be string', schema: schema82.allOf[1].properties.instantiateUrl.type, parentSchema: schema82.allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate97.errors = [ { instancePath: @@ -60106,7 +62248,7 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -60127,22 +62269,22 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate97.errors = [ { instancePath: @@ -60158,20 +62300,20 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate97.errors = [ { instancePath: @@ -60190,16 +62332,16 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate97.errors = [ @@ -60224,12 +62366,12 @@ function validate97( parentSchema: schema82.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -60245,13 +62387,13 @@ function validate97( message: 'must be object', schema: schema82.allOf[1].properties.services.items.type, parentSchema: schema82.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -60266,13 +62408,13 @@ function validate97( message: 'must be array', schema: schema82.allOf[1].properties.services.type, parentSchema: schema82.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -60294,7 +62436,7 @@ function validate97( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate97.errors = vErrors; return errors === 0; @@ -60326,7 +62468,7 @@ function validate98( if (errors === _errs1) { if (errors === _errs1) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate98.errors = [ { instancePath: instancePath + '/start', @@ -60369,7 +62511,7 @@ function validate98( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate98.errors = [ { instancePath: instancePath + '/end', @@ -60452,7 +62594,7 @@ function validate99( if (errors === _errs1) { if (errors === _errs1) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate99.errors = [ { instancePath: instancePath + '/start', @@ -60495,7 +62637,7 @@ function validate99( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate99.errors = [ { instancePath: instancePath + '/end', @@ -60591,7 +62733,7 @@ function validate100( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate100.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -60634,7 +62776,7 @@ function validate100( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate100.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -60751,7 +62893,7 @@ function validate101( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate101.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -60794,7 +62936,7 @@ function validate101( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate101.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -60917,8 +63059,13 @@ const schema87 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -60964,7 +63111,8 @@ function validate102( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate102.errors = [ { @@ -61349,6 +63497,53 @@ function validate102( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate102.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema87.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate102.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema87.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema87.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -61373,13 +63568,13 @@ function validate102( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('device' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('device' !== data11) { validate102.errors = [ { instancePath: instancePath + '/type', @@ -61389,23 +63584,23 @@ function validate102( message: 'must be equal to constant', schema: 'device', parentSchema: schema87.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.experiment !== undefined) { - let data11 = data.experiment; - const _errs25 = errors; - if (errors === _errs25) { - if (errors === _errs25) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { + let data12 = data.experiment; + const _errs27 = errors; + if (errors === _errs27) { + if (errors === _errs27) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { validate102.errors = [ { instancePath: instancePath + '/experiment', @@ -61415,7 +63610,7 @@ function validate102( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema87.allOf[1].properties.experiment, - data: data11, + data: data12, }, ]; return false; @@ -61430,37 +63625,37 @@ function validate102( message: 'must be string', schema: schema87.allOf[1].properties.experiment.type, parentSchema: schema87.allOf[1].properties.experiment, - data: data11, + data: data12, }, ]; return false; } } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data12 = data.services; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs32 = errors; - if (errors === _errs32) { - if (errors === _errs32) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs34 = errors; + if (errors === _errs34) { + if (errors === _errs34) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate102.errors = [ { instancePath: @@ -61474,7 +63669,7 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; @@ -61495,22 +63690,22 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; } } } - var valid8 = _errs32 === errors; + var valid8 = _errs34 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs34 = errors; - if (typeof data15 !== 'string') { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs36 = errors; + if (typeof data16 !== 'string') { validate102.errors = [ { instancePath: @@ -61526,20 +63721,20 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items.properties .serviceId, - data: data15, + data: data16, }, ]; return false; } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate102.errors = [ { instancePath: @@ -61558,16 +63753,16 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { validate102.errors = [ @@ -61592,12 +63787,12 @@ function validate102( parentSchema: schema87.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } @@ -61613,13 +63808,13 @@ function validate102( message: 'must be object', schema: schema87.allOf[1].properties.services.items.type, parentSchema: schema87.allOf[1].properties.services.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -61634,13 +63829,13 @@ function validate102( message: 'must be array', schema: schema87.allOf[1].properties.services.type, parentSchema: schema87.allOf[1].properties.services, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -61662,7 +63857,7 @@ function validate102( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate102.errors = vErrors; return errors === 0; @@ -61719,8 +63914,13 @@ const schema88 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -61788,7 +63988,8 @@ function validate103( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate103.errors = [ { @@ -62219,6 +64420,54 @@ function validate103( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate103.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema88.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate103.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema88.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema88.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -62244,13 +64493,13 @@ function validate103( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('device' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('device' !== data12) { validate103.errors = [ { instancePath: instancePath + '/type', @@ -62260,20 +64509,20 @@ function validate103( message: 'must be equal to constant', schema: 'device', parentSchema: schema88.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.connected !== undefined) { - let data12 = data.connected; - const _errs27 = errors; - if (typeof data12 !== 'boolean') { + let data13 = data.connected; + const _errs29 = errors; + if (typeof data13 !== 'boolean') { validate103.errors = [ { instancePath: instancePath + '/connected', @@ -62283,35 +64532,35 @@ function validate103( message: 'must be boolean', schema: schema88.allOf[1].properties.connected.type, parentSchema: schema88.allOf[1].properties.connected, - data: data12, + data: data13, }, ]; return false; } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.announcedAvailability !== undefined) { - let data13 = data.announcedAvailability; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.announcedAvailability; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.start !== undefined) { - let data15 = data14.start; - const _errs33 = errors; - if (errors === _errs33) { - if (errors === _errs33) { - if (typeof data15 === 'string') { - if (!formats22.validate(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.start !== undefined) { + let data16 = data15.start; + const _errs35 = errors; + if (errors === _errs35) { + if (errors === _errs35) { + if (typeof data16 === 'string') { + if (!formats26.validate(data16)) { validate103.errors = [ { instancePath: @@ -62328,7 +64577,7 @@ function validate103( parentSchema: schema88.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; @@ -62352,25 +64601,25 @@ function validate103( parentSchema: schema88.allOf[1].properties.announcedAvailability .items.properties.start, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.end !== undefined) { - let data16 = data14.end; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data15.end !== undefined) { + let data17 = data15.end; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate103.errors = [ { instancePath: @@ -62388,7 +64637,7 @@ function validate103( parentSchema: schema88.allOf[1].properties .announcedAvailability.items.properties.end, - data: data16, + data: data17, }, ]; return false; @@ -62412,14 +64661,14 @@ function validate103( parentSchema: schema88.allOf[1].properties.announcedAvailability .items.properties.end, - data: data16, + data: data17, }, ]; return false; } } } - var valid8 = _errs35 === errors; + var valid8 = _errs37 === errors; } else { var valid8 = true; } @@ -62438,13 +64687,13 @@ function validate103( .type, parentSchema: schema88.allOf[1].properties.announcedAvailability.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -62459,24 +64708,24 @@ function validate103( message: 'must be array', schema: schema88.allOf[1].properties.announcedAvailability.type, parentSchema: schema88.allOf[1].properties.announcedAvailability, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } if (valid6) { if (data.experiment !== undefined) { - let data17 = data.experiment; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { + let data18 = data.experiment; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { validate103.errors = [ { instancePath: instancePath + '/experiment', @@ -62486,7 +64735,7 @@ function validate103( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema88.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; @@ -62501,41 +64750,41 @@ function validate103( message: 'must be string', schema: schema88.allOf[1].properties.experiment.type, parentSchema: schema88.allOf[1].properties.experiment, - data: data17, + data: data18, }, ]; return false; } } } - var valid6 = _errs37 === errors; + var valid6 = _errs39 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data18 = data.services; - const _errs39 = errors; - if (errors === _errs39) { - if (Array.isArray(data18)) { + let data19 = data.services; + const _errs41 = errors; + if (errors === _errs41) { + if (Array.isArray(data19)) { var valid9 = true; - const len3 = data18.length; + const len3 = data19.length; for (let i3 = 0; i3 < len3; i3++) { - let data19 = data18[i3]; - const _errs41 = errors; - if (errors === _errs41) { + let data20 = data19[i3]; + const _errs43 = errors; + if (errors === _errs43) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs44 = errors; - if (errors === _errs44) { - if (errors === _errs44) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs46 = errors; + if (errors === _errs46) { + if (errors === _errs46) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { validate103.errors = [ { instancePath: @@ -62552,7 +64801,7 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; @@ -62576,22 +64825,22 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceType, - data: data20, + data: data21, }, ]; return false; } } } - var valid10 = _errs44 === errors; + var valid10 = _errs46 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs46 = errors; - if (typeof data21 !== 'string') { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs48 = errors; + if (typeof data22 !== 'string') { validate103.errors = [ { instancePath: @@ -62607,20 +64856,20 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceId, - data: data21, + data: data22, }, ]; return false; } - var valid10 = _errs46 === errors; + var valid10 = _errs48 === errors; } else { var valid10 = true; } if (valid10) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate103.errors = [ { instancePath: @@ -62639,16 +64888,16 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { validate103.errors = [ @@ -62674,12 +64923,12 @@ function validate103( parentSchema: schema88.allOf[1].properties.services.items .properties.serviceDirection, - data: data22, + data: data23, }, ]; return false; } - var valid10 = _errs48 === errors; + var valid10 = _errs50 === errors; } else { var valid10 = true; } @@ -62695,13 +64944,13 @@ function validate103( message: 'must be object', schema: schema88.allOf[1].properties.services.items.type, parentSchema: schema88.allOf[1].properties.services.items, - data: data19, + data: data20, }, ]; return false; } } - var valid9 = _errs41 === errors; + var valid9 = _errs43 === errors; if (!valid9) { break; } @@ -62716,13 +64965,13 @@ function validate103( message: 'must be array', schema: schema88.allOf[1].properties.services.type, parentSchema: schema88.allOf[1].properties.services, - data: data18, + data: data19, }, ]; return false; } } - var valid6 = _errs39 === errors; + var valid6 = _errs41 === errors; } else { var valid6 = true; } @@ -62746,7 +64995,7 @@ function validate103( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate103.errors = vErrors; return errors === 0; @@ -62797,8 +65046,13 @@ const schema89 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -62844,7 +65098,8 @@ function validate104( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate104.errors = [ { @@ -63229,6 +65484,53 @@ function validate104( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate104.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema89.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate104.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema89.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema89.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -63253,13 +65555,13 @@ function validate104( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('edge instantiable' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('edge instantiable' !== data11) { validate104.errors = [ { instancePath: instancePath + '/type', @@ -63269,23 +65571,23 @@ function validate104( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema89.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.codeUrl !== undefined) { - let data11 = data.codeUrl; - const _errs25 = errors; - if (errors === _errs25) { - if (errors === _errs25) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { + let data12 = data.codeUrl; + const _errs27 = errors; + if (errors === _errs27) { + if (errors === _errs27) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { validate104.errors = [ { instancePath: instancePath + '/codeUrl', @@ -63295,7 +65597,7 @@ function validate104( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema89.allOf[1].properties.codeUrl, - data: data11, + data: data12, }, ]; return false; @@ -63310,37 +65612,37 @@ function validate104( message: 'must be string', schema: schema89.allOf[1].properties.codeUrl.type, parentSchema: schema89.allOf[1].properties.codeUrl, - data: data11, + data: data12, }, ]; return false; } } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data12 = data.services; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs32 = errors; - if (errors === _errs32) { - if (errors === _errs32) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs34 = errors; + if (errors === _errs34) { + if (errors === _errs34) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate104.errors = [ { instancePath: @@ -63354,7 +65656,7 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; @@ -63375,22 +65677,22 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }, ]; return false; } } } - var valid8 = _errs32 === errors; + var valid8 = _errs34 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs34 = errors; - if (typeof data15 !== 'string') { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs36 = errors; + if (typeof data16 !== 'string') { validate104.errors = [ { instancePath: @@ -63406,20 +65708,20 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items.properties .serviceId, - data: data15, + data: data16, }, ]; return false; } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate104.errors = [ { instancePath: @@ -63438,16 +65740,16 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { validate104.errors = [ @@ -63472,12 +65774,12 @@ function validate104( parentSchema: schema89.allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } @@ -63493,13 +65795,13 @@ function validate104( message: 'must be object', schema: schema89.allOf[1].properties.services.items.type, parentSchema: schema89.allOf[1].properties.services.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -63514,13 +65816,13 @@ function validate104( message: 'must be array', schema: schema89.allOf[1].properties.services.type, parentSchema: schema89.allOf[1].properties.services, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -63542,7 +65844,7 @@ function validate104( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate104.errors = vErrors; return errors === 0; @@ -63599,8 +65901,13 @@ const schema90 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -63647,7 +65954,8 @@ function validate105( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate105.errors = [ { @@ -64078,6 +66386,54 @@ function validate105( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate105.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema90.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate105.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema90.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema90.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -64103,13 +66459,13 @@ function validate105( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('edge instantiable' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('edge instantiable' !== data12) { validate105.errors = [ { instancePath: instancePath + '/type', @@ -64119,23 +66475,23 @@ function validate105( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema90.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.codeUrl !== undefined) { - let data12 = data.codeUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data.codeUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate105.errors = [ { instancePath: instancePath + '/codeUrl', @@ -64145,7 +66501,7 @@ function validate105( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema90.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; @@ -64160,37 +66516,37 @@ function validate105( message: 'must be string', schema: schema90.allOf[1].properties.codeUrl.type, parentSchema: schema90.allOf[1].properties.codeUrl, - data: data12, + data: data13, }, ]; return false; } } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } if (valid6) { if (data.services !== undefined) { - let data13 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid7 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate105.errors = [ { instancePath: @@ -64204,7 +66560,7 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; @@ -64225,22 +66581,22 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid8 = _errs34 === errors; + var valid8 = _errs36 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate105.errors = [ { instancePath: @@ -64256,20 +66612,20 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid8 = _errs36 === errors; + var valid8 = _errs38 === errors; } else { var valid8 = true; } if (valid8) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate105.errors = [ { instancePath: @@ -64288,16 +66644,16 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate105.errors = [ @@ -64322,12 +66678,12 @@ function validate105( parentSchema: schema90.allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid8 = _errs38 === errors; + var valid8 = _errs40 === errors; } else { var valid8 = true; } @@ -64343,13 +66699,13 @@ function validate105( message: 'must be object', schema: schema90.allOf[1].properties.services.items.type, parentSchema: schema90.allOf[1].properties.services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; if (!valid7) { break; } @@ -64364,13 +66720,13 @@ function validate105( message: 'must be array', schema: schema90.allOf[1].properties.services.type, parentSchema: schema90.allOf[1].properties.services, - data: data13, + data: data14, }, ]; return false; } } - var valid6 = _errs29 === errors; + var valid6 = _errs31 === errors; } else { var valid6 = true; } @@ -64392,7 +66748,7 @@ function validate105( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate105.errors = vErrors; return errors === 0; @@ -64635,8 +66991,13 @@ const schema93 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -64677,7 +67038,8 @@ function validate108( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate108.errors = [ { @@ -65062,6 +67424,53 @@ function validate108( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs22 = errors; + if (errors === _errs22) { + if (errors === _errs22) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + validate108.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema93.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } else { + validate108.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: schema93.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema93.allOf[0].properties.bookingEndpoint, + data: data10, + }, + ]; + return false; + } + } + } + var valid1 = _errs22 === errors; + } else { + var valid1 = true; + } + } } } } @@ -65086,8 +67495,8 @@ function validate108( } var valid0 = _errs0 === errors; if (valid0) { - const _errs22 = errors; - if (errors === _errs22) { + const _errs24 = errors; + if (errors === _errs24) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if (data.devices === undefined && (missing3 = 'devices')) { @@ -65106,9 +67515,9 @@ function validate108( return false; } else { if (data.type !== undefined) { - let data10 = data.type; - const _errs24 = errors; - if ('group' !== data10) { + let data11 = data.type; + const _errs26 = errors; + if ('group' !== data11) { validate108.errors = [ { instancePath: instancePath + '/type', @@ -65118,30 +67527,30 @@ function validate108( message: 'must be equal to constant', schema: 'group', parentSchema: schema93.allOf[1].properties.type, - data: data10, + data: data11, }, ]; return false; } - var valid6 = _errs24 === errors; + var valid6 = _errs26 === errors; } else { var valid6 = true; } if (valid6) { if (data.devices !== undefined) { - let data11 = data.devices; - const _errs25 = errors; - if (errors === _errs25) { - if (Array.isArray(data11)) { + let data12 = data.devices; + const _errs27 = errors; + if (errors === _errs27) { + if (Array.isArray(data12)) { var valid7 = true; - const len2 = data11.length; + const len2 = data12.length; for (let i2 = 0; i2 < len2; i2++) { - let data12 = data11[i2]; - const _errs27 = errors; - if (errors === _errs27) { - if (data12 && typeof data12 == 'object' && !Array.isArray(data12)) { + let data13 = data12[i2]; + const _errs29 = errors; + if (errors === _errs29) { + if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { let missing4; - if (data12.url === undefined && (missing4 = 'url')) { + if (data13.url === undefined && (missing4 = 'url')) { validate108.errors = [ { instancePath: instancePath + '/devices/' + i2, @@ -65151,18 +67560,18 @@ function validate108( message: "must have required property '" + missing4 + "'", schema: schema93.allOf[1].properties.devices.items.required, parentSchema: schema93.allOf[1].properties.devices.items, - data: data12, + data: data13, }, ]; return false; } else { - if (data12.url !== undefined) { - let data13 = data12.url; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data13 === 'string') { - if (!formats0(data13)) { + if (data13.url !== undefined) { + let data14 = data13.url; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data14 === 'string') { + if (!formats0(data14)) { validate108.errors = [ { instancePath: @@ -65176,7 +67585,7 @@ function validate108( parentSchema: schema93.allOf[1].properties.devices.items .properties.url, - data: data13, + data: data14, }, ]; return false; @@ -65197,7 +67606,7 @@ function validate108( parentSchema: schema93.allOf[1].properties.devices.items .properties.url, - data: data13, + data: data14, }, ]; return false; @@ -65216,13 +67625,13 @@ function validate108( message: 'must be object', schema: schema93.allOf[1].properties.devices.items.type, parentSchema: schema93.allOf[1].properties.devices.items, - data: data12, + data: data13, }, ]; return false; } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; if (!valid7) { break; } @@ -65237,13 +67646,13 @@ function validate108( message: 'must be array', schema: schema93.allOf[1].properties.devices.type, parentSchema: schema93.allOf[1].properties.devices, - data: data11, + data: data12, }, ]; return false; } } - var valid6 = _errs25 === errors; + var valid6 = _errs27 === errors; } else { var valid6 = true; } @@ -65265,7 +67674,7 @@ function validate108( return false; } } - var valid0 = _errs22 === errors; + var valid0 = _errs24 === errors; } validate108.errors = vErrors; return errors === 0; @@ -65322,8 +67731,13 @@ const schema94 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -65365,7 +67779,8 @@ function validate109( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate109.errors = [ { @@ -65796,6 +68211,54 @@ function validate109( } else { var valid1 = true; } + if (valid1) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate109.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema94.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate109.errors = [ + { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: '#/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema94.allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema94.allOf[0].properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs24 === errors; + } else { + var valid1 = true; + } + } } } } @@ -65821,8 +68284,8 @@ function validate109( } var valid0 = _errs0 === errors; if (valid0) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if (data.devices === undefined && (missing3 = 'devices')) { @@ -65841,9 +68304,9 @@ function validate109( return false; } else { if (data.type !== undefined) { - let data11 = data.type; - const _errs26 = errors; - if ('group' !== data11) { + let data12 = data.type; + const _errs28 = errors; + if ('group' !== data12) { validate109.errors = [ { instancePath: instancePath + '/type', @@ -65853,30 +68316,30 @@ function validate109( message: 'must be equal to constant', schema: 'group', parentSchema: schema94.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid6 = _errs26 === errors; + var valid6 = _errs28 === errors; } else { var valid6 = true; } if (valid6) { if (data.devices !== undefined) { - let data12 = data.devices; - const _errs27 = errors; - if (errors === _errs27) { - if (Array.isArray(data12)) { + let data13 = data.devices; + const _errs29 = errors; + if (errors === _errs29) { + if (Array.isArray(data13)) { var valid7 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs29 = errors; - if (errors === _errs29) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { + let data14 = data13[i2]; + const _errs31 = errors; + if (errors === _errs31) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { let missing4; - if (data13.url === undefined && (missing4 = 'url')) { + if (data14.url === undefined && (missing4 = 'url')) { validate109.errors = [ { instancePath: instancePath + '/devices/' + i2, @@ -65886,18 +68349,18 @@ function validate109( message: "must have required property '" + missing4 + "'", schema: schema94.allOf[1].properties.devices.items.required, parentSchema: schema94.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } else { - if (data13.url !== undefined) { - let data14 = data13.url; - const _errs31 = errors; - if (errors === _errs31) { - if (errors === _errs31) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { + if (data14.url !== undefined) { + let data15 = data14.url; + const _errs33 = errors; + if (errors === _errs33) { + if (errors === _errs33) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { validate109.errors = [ { instancePath: @@ -65911,7 +68374,7 @@ function validate109( parentSchema: schema94.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -65932,7 +68395,7 @@ function validate109( parentSchema: schema94.allOf[1].properties.devices.items .properties.url, - data: data14, + data: data15, }, ]; return false; @@ -65951,13 +68414,13 @@ function validate109( message: 'must be object', schema: schema94.allOf[1].properties.devices.items.type, parentSchema: schema94.allOf[1].properties.devices.items, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; if (!valid7) { break; } @@ -65972,13 +68435,13 @@ function validate109( message: 'must be array', schema: schema94.allOf[1].properties.devices.type, parentSchema: schema94.allOf[1].properties.devices, - data: data12, + data: data13, }, ]; return false; } } - var valid6 = _errs27 === errors; + var valid6 = _errs29 === errors; } else { var valid6 = true; } @@ -66000,7 +68463,7 @@ function validate109( return false; } } - var valid0 = _errs24 === errors; + var valid0 = _errs26 === errors; } validate109.errors = vErrors; return errors === 0; @@ -66054,8 +68517,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66129,8 +68597,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66204,8 +68677,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66279,8 +68757,13 @@ const schema95 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -66331,7 +68814,8 @@ function validate110( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -66773,6 +69257,62 @@ function validate110( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema95.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -66780,7 +69320,7 @@ function validate110( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -66791,23 +69331,23 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -66815,28 +69355,28 @@ function validate110( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema95.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -66844,17 +69384,17 @@ function validate110( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema95.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -66862,42 +69402,42 @@ function validate110( message: 'must be string', schema: schema95.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema95.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -66909,17 +69449,17 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -66933,27 +69473,27 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -66967,25 +69507,25 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -67002,23 +69542,23 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -67039,23 +69579,23 @@ function validate110( parentSchema: schema95.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -67065,23 +69605,23 @@ function validate110( schema95.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema95.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -67089,24 +69629,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[0].allOf[1].properties.services.type, parentSchema: schema95.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -67117,29 +69657,30 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -67150,17 +69691,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -67168,25 +69709,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[0].properties.name.type, parentSchema: schema95.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -67194,25 +69735,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[0].properties.description.type, parentSchema: schema95.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -67220,24 +69761,24 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[0].properties.type.type, parentSchema: schema95.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -67247,25 +69788,25 @@ function validate110( message: 'must be equal to one of the allowed values', schema: schema95.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema95.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -67273,39 +69814,39 @@ function validate110( message: 'must be boolean', schema: schema95.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema95.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -67318,23 +69859,23 @@ function validate110( .required, parentSchema: schema95.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -67346,17 +69887,17 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -67370,12 +69911,12 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -67384,7 +69925,7 @@ function validate110( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -67395,23 +69936,23 @@ function validate110( schema95.anyOf[1].allOf[0].properties.viewer.items.type, parentSchema: schema95.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -67419,40 +69960,40 @@ function validate110( message: 'must be array', schema: schema95.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema95.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -67465,23 +70006,23 @@ function validate110( .required, parentSchema: schema95.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -67494,17 +70035,17 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -67518,12 +70059,12 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -67532,7 +70073,7 @@ function validate110( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -67544,23 +70085,23 @@ function validate110( .type, parentSchema: schema95.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -67568,20 +70109,76 @@ function validate110( message: 'must be array', schema: schema95.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema95.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema95.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -67589,7 +70186,7 @@ function validate110( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -67600,23 +70197,23 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -67624,28 +70221,28 @@ function validate110( message: 'must be equal to constant', schema: 'device', parentSchema: schema95.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -67653,17 +70250,17 @@ function validate110( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema95.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -67671,46 +70268,46 @@ function validate110( message: 'must be string', schema: schema95.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema95.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -67722,17 +70319,17 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -67746,27 +70343,27 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -67780,25 +70377,25 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -67815,23 +70412,23 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -67852,23 +70449,23 @@ function validate110( parentSchema: schema95.anyOf[1].allOf[1].properties.services.items .properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -67879,23 +70476,23 @@ function validate110( schema95.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema95.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -67903,24 +70500,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[1].allOf[1].properties.services.type, parentSchema: schema95.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -67931,29 +70528,30 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -67964,17 +70562,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -67982,25 +70580,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[0].properties.name.type, parentSchema: schema95.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -68008,25 +70606,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[0].properties.description.type, parentSchema: schema95.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -68034,24 +70632,24 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[0].properties.type.type, parentSchema: schema95.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -68061,25 +70659,25 @@ function validate110( message: 'must be equal to one of the allowed values', schema: schema95.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema95.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -68087,39 +70685,39 @@ function validate110( message: 'must be boolean', schema: schema95.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema95.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -68132,23 +70730,23 @@ function validate110( .required, parentSchema: schema95.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -68161,17 +70759,17 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -68185,12 +70783,12 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties.viewer .items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -68199,7 +70797,7 @@ function validate110( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -68211,23 +70809,23 @@ function validate110( .type, parentSchema: schema95.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -68235,40 +70833,40 @@ function validate110( message: 'must be array', schema: schema95.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema95.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -68281,23 +70879,23 @@ function validate110( .required, parentSchema: schema95.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -68310,17 +70908,17 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -68334,12 +70932,12 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -68348,7 +70946,7 @@ function validate110( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -68360,23 +70958,23 @@ function validate110( .type, parentSchema: schema95.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -68384,20 +70982,77 @@ function validate110( message: 'must be array', schema: schema95.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema95.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema95.anyOf[2].allOf[0].properties.bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -68405,7 +71060,7 @@ function validate110( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -68416,23 +71071,23 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -68440,28 +71095,28 @@ function validate110( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema95.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -68469,17 +71124,17 @@ function validate110( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema95.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -68487,46 +71142,46 @@ function validate110( message: 'must be string', schema: schema95.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema95.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -68541,17 +71196,17 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -68565,27 +71220,27 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -68599,25 +71254,25 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -68634,23 +71289,23 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -68672,23 +71327,23 @@ function validate110( parentSchema: schema95.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -68699,23 +71354,23 @@ function validate110( schema95.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema95.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -68723,24 +71378,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[2].allOf[1].properties.services.type, parentSchema: schema95.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -68751,29 +71406,30 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -68784,17 +71440,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -68802,25 +71458,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[3].allOf[0].properties.name.type, parentSchema: schema95.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -68828,25 +71484,25 @@ function validate110( message: 'must be string', schema: schema95.anyOf[3].allOf[0].properties.description.type, parentSchema: schema95.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -68854,24 +71510,24 @@ function validate110( message: 'must be string', schema: schema95.anyOf[3].allOf[0].properties.type.type, parentSchema: schema95.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -68881,25 +71537,25 @@ function validate110( message: 'must be equal to one of the allowed values', schema: schema95.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema95.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -68907,39 +71563,39 @@ function validate110( message: 'must be boolean', schema: schema95.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema95.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -68953,23 +71609,23 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -68982,17 +71638,17 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -69006,12 +71662,12 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -69020,7 +71676,7 @@ function validate110( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -69032,23 +71688,23 @@ function validate110( .type, parentSchema: schema95.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -69056,40 +71712,40 @@ function validate110( message: 'must be array', schema: schema95.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema95.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -69105,23 +71761,23 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -69137,17 +71793,17 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -69161,12 +71817,12 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -69175,7 +71831,7 @@ function validate110( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -69187,23 +71843,23 @@ function validate110( .type, parentSchema: schema95.anyOf[3].allOf[0].properties.owner.items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -69211,20 +71867,78 @@ function validate110( message: 'must be array', schema: schema95.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema95.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema95.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema95.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema95.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -69232,7 +71946,7 @@ function validate110( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -69243,21 +71957,21 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -69268,17 +71982,17 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -69286,39 +72000,39 @@ function validate110( message: 'must be equal to constant', schema: 'group', parentSchema: schema95.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -69331,23 +72045,23 @@ function validate110( .required, parentSchema: schema95.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -69359,17 +72073,17 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -69383,12 +72097,12 @@ function validate110( parentSchema: schema95.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -69397,7 +72111,7 @@ function validate110( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -69409,23 +72123,23 @@ function validate110( .type, parentSchema: schema95.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -69433,24 +72147,24 @@ function validate110( message: 'must be array', schema: schema95.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema95.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -69461,22 +72175,22 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -69487,9 +72201,9 @@ function validate110( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate110.errors = vErrors; @@ -69562,8 +72276,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69643,8 +72362,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69745,8 +72469,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69826,8 +72555,13 @@ const schema96 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -69879,7 +72613,8 @@ function validate111( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -70373,6 +73108,62 @@ function validate111( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema96.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -70381,7 +73172,7 @@ function validate111( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -70392,23 +73183,23 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -70416,28 +73207,28 @@ function validate111( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema96.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -70445,17 +73236,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -70463,42 +73254,42 @@ function validate111( message: 'must be string', schema: schema96.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema96.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -70510,17 +73301,17 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -70534,27 +73325,27 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -70568,25 +73359,25 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -70603,23 +73394,23 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -70640,23 +73431,23 @@ function validate111( parentSchema: schema96.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -70666,23 +73457,23 @@ function validate111( schema96.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema96.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -70690,24 +73481,24 @@ function validate111( message: 'must be array', schema: schema96.anyOf[0].allOf[1].properties.services.type, parentSchema: schema96.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -70718,30 +73509,31 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -70752,20 +73544,20 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -70773,17 +73565,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -70791,27 +73583,27 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.url.type, parentSchema: schema96.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -70819,25 +73611,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.name.type, parentSchema: schema96.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -70845,25 +73637,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.description.type, parentSchema: schema96.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -70871,24 +73663,24 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[0].properties.type.type, parentSchema: schema96.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -70898,25 +73690,25 @@ function validate111( message: 'must be equal to one of the allowed values', schema: schema96.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema96.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -70924,39 +73716,39 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema96.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -70969,23 +73761,23 @@ function validate111( .required, parentSchema: schema96.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -70998,17 +73790,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -71022,12 +73814,12 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -71036,7 +73828,7 @@ function validate111( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -71048,23 +73840,23 @@ function validate111( .type, parentSchema: schema96.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -71072,40 +73864,40 @@ function validate111( message: 'must be array', schema: schema96.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema96.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -71118,23 +73910,23 @@ function validate111( .required, parentSchema: schema96.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -71147,17 +73939,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -71171,12 +73963,12 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -71185,7 +73977,7 @@ function validate111( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -71197,23 +73989,23 @@ function validate111( .type, parentSchema: schema96.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -71221,20 +74013,77 @@ function validate111( message: 'must be array', schema: schema96.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema96.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema96.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -71243,7 +74092,7 @@ function validate111( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -71254,23 +74103,23 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -71278,25 +74127,25 @@ function validate111( message: 'must be equal to constant', schema: 'device', parentSchema: schema96.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -71304,44 +74153,44 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema96.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71356,17 +74205,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71384,30 +74233,30 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71423,17 +74272,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -71451,24 +74300,24 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -71481,23 +74330,23 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -71508,29 +74357,29 @@ function validate111( schema96.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema96.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -71539,17 +74388,17 @@ function validate111( schema: 'uri', parentSchema: schema96.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -71557,46 +74406,46 @@ function validate111( message: 'must be string', schema: schema96.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema96.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -71611,17 +74460,17 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -71638,27 +74487,27 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -71672,25 +74521,25 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -71707,23 +74556,23 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -71745,23 +74594,23 @@ function validate111( parentSchema: schema96.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -71773,23 +74622,23 @@ function validate111( .type, parentSchema: schema96.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -71797,17 +74646,17 @@ function validate111( message: 'must be array', schema: schema96.anyOf[1].allOf[1].properties.services.type, parentSchema: schema96.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -71816,7 +74665,7 @@ function validate111( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -71827,30 +74676,31 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -71861,20 +74711,20 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -71882,17 +74732,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -71900,27 +74750,27 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.url.type, parentSchema: schema96.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -71928,25 +74778,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.name.type, parentSchema: schema96.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -71954,25 +74804,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.description.type, parentSchema: schema96.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -71980,24 +74830,24 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[0].properties.type.type, parentSchema: schema96.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -72007,25 +74857,25 @@ function validate111( message: 'must be equal to one of the allowed values', schema: schema96.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema96.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -72033,39 +74883,39 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema96.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -72079,23 +74929,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -72108,17 +74958,17 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -72132,12 +74982,12 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -72146,7 +74996,7 @@ function validate111( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -72158,23 +75008,23 @@ function validate111( .type, parentSchema: schema96.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -72182,40 +75032,40 @@ function validate111( message: 'must be array', schema: schema96.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema96.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -72231,23 +75081,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -72263,17 +75113,17 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -72287,12 +75137,12 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -72301,7 +75151,7 @@ function validate111( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -72313,23 +75163,23 @@ function validate111( .type, parentSchema: schema96.anyOf[2].allOf[0].properties.owner.items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -72337,20 +75187,78 @@ function validate111( message: 'must be array', schema: schema96.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema96.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema96.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -72359,7 +75267,7 @@ function validate111( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -72370,23 +75278,23 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -72394,28 +75302,28 @@ function validate111( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema96.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -72423,17 +75331,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -72441,46 +75349,46 @@ function validate111( message: 'must be string', schema: schema96.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema96.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -72495,17 +75403,17 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -72519,27 +75427,27 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -72553,25 +75461,25 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services.items .properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -72588,23 +75496,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -72626,23 +75534,23 @@ function validate111( parentSchema: schema96.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -72653,23 +75561,23 @@ function validate111( schema96.anyOf[2].allOf[1].properties.services.items.type, parentSchema: schema96.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -72677,24 +75585,24 @@ function validate111( message: 'must be array', schema: schema96.anyOf[2].allOf[1].properties.services.type, parentSchema: schema96.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -72705,30 +75613,31 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -72739,20 +75648,20 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -72760,17 +75669,17 @@ function validate111( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema96.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -72778,27 +75687,27 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.url.type, parentSchema: schema96.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -72806,25 +75715,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.name.type, parentSchema: schema96.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -72832,25 +75741,25 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.description.type, parentSchema: schema96.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -72858,24 +75767,24 @@ function validate111( message: 'must be string', schema: schema96.anyOf[3].allOf[0].properties.type.type, parentSchema: schema96.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -72886,25 +75795,25 @@ function validate111( message: 'must be equal to one of the allowed values', schema: schema96.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema96.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -72912,39 +75821,39 @@ function validate111( message: 'must be boolean', schema: schema96.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema96.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -72960,23 +75869,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -72992,17 +75901,17 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -73019,12 +75928,12 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -73033,7 +75942,7 @@ function validate111( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -73046,23 +75955,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -73071,43 +75980,43 @@ function validate111( schema: schema96.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema96.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -73123,23 +76032,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -73156,17 +76065,17 @@ function validate111( schema96.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -73183,12 +76092,12 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -73197,7 +76106,7 @@ function validate111( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -73210,23 +76119,23 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -73236,20 +76145,78 @@ function validate111( schema96.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema96.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema96.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema96.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema96.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -73258,7 +76225,7 @@ function validate111( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -73269,21 +76236,21 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -73294,17 +76261,17 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -73312,39 +76279,39 @@ function validate111( message: 'must be equal to constant', schema: 'group', parentSchema: schema96.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -73357,23 +76324,23 @@ function validate111( .required, parentSchema: schema96.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -73385,17 +76352,17 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -73409,12 +76376,12 @@ function validate111( parentSchema: schema96.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -73423,7 +76390,7 @@ function validate111( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -73435,23 +76402,23 @@ function validate111( .type, parentSchema: schema96.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -73459,24 +76426,24 @@ function validate111( message: 'must be array', schema: schema96.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema96.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -73487,22 +76454,22 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -73513,9 +76480,9 @@ function validate111( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate111.errors = vErrors; @@ -74162,8 +77129,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74251,8 +77223,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74340,8 +77317,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74429,8 +77411,13 @@ const schema101 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -74714,7 +77701,9 @@ function validate116( if ( (data4.type === undefined && (missing3 = 'type')) || (data4.name === undefined && (missing3 = 'name')) || - (data4.isPublic === undefined && (missing3 = 'isPublic')) + (data4.isPublic === undefined && (missing3 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing3 = 'bookingEndpoint')) ) { const err0 = { instancePath: instancePath + '/device', @@ -75249,6 +78238,67 @@ function validate116( } else { var valid7 = true; } + if (valid7) { + if (data4.bookingEndpoint !== undefined) { + let data15 = data4.bookingEndpoint; + const _errs40 = errors; + if (errors === _errs40) { + if (errors === _errs40) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err16 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data15, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device.anyOf[0] + .allOf[0].properties.bookingEndpoint, + data: data15, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid7 = _errs40 === errors; + } else { + var valid7 = true; + } + } } } } @@ -75256,7 +78306,7 @@ function validate116( } } } else { - const err16 = { + const err18 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/0/type', keyword: 'type', @@ -75267,23 +78317,23 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid6 = _errs18 === errors; if (valid6) { - const _errs40 = errors; - if (errors === _errs40) { + const _errs42 = errors; + if (errors === _errs42) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data15 = data4.type; - const _errs42 = errors; - if ('cloud instantiable' !== data15) { - const err17 = { + let data16 = data4.type; + const _errs44 = errors; + if ('cloud instantiable' !== data16) { + const err19 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/type/const', @@ -75294,28 +78344,28 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.type, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid12 = _errs42 === errors; + var valid12 = _errs44 === errors; } else { var valid12 = true; } if (valid12) { if (data4.instantiateUrl !== undefined) { - let data16 = data4.instantiateUrl; - const _errs43 = errors; - if (errors === _errs43) { - if (errors === _errs43) { - if (typeof data16 === 'string') { - if (!formats0(data16)) { - const err18 = { + let data17 = data4.instantiateUrl; + const _errs45 = errors; + if (errors === _errs45) { + if (errors === _errs45) { + if (typeof data17 === 'string') { + if (!formats0(data17)) { + const err20 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/format', @@ -75326,17 +78376,17 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/type', @@ -75349,46 +78399,46 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid12 = _errs43 === errors; + var valid12 = _errs45 === errors; } else { var valid12 = true; } if (valid12) { if (data4.services !== undefined) { - let data17 = data4.services; - const _errs45 = errors; - if (errors === _errs45) { - if (Array.isArray(data17)) { + let data18 = data4.services; + const _errs47 = errors; + if (errors === _errs47) { + if (Array.isArray(data18)) { var valid13 = true; - const len2 = data17.length; + const len2 = data18.length; for (let i2 = 0; i2 < len2; i2++) { - let data18 = data17[i2]; - const _errs47 = errors; - if (errors === _errs47) { + let data19 = data18[i2]; + const _errs49 = errors; + if (errors === _errs49) { if ( - data18 && - typeof data18 == 'object' && - !Array.isArray(data18) + data19 && + typeof data19 == 'object' && + !Array.isArray(data19) ) { - if (data18.serviceType !== undefined) { - let data19 = data18.serviceType; - const _errs50 = errors; - if (errors === _errs50) { - if (errors === _errs50) { - if (typeof data19 === 'string') { - if (!formats0(data19)) { - const err20 = { + if (data19.serviceType !== undefined) { + let data20 = data19.serviceType; + const _errs52 = errors; + if (errors === _errs52) { + if (errors === _errs52) { + if (typeof data20 === 'string') { + if (!formats0(data20)) { + const err22 = { instancePath: instancePath + '/device/services/' + @@ -75405,17 +78455,17 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/device/services/' + @@ -75434,27 +78484,27 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid14 = _errs50 === errors; + var valid14 = _errs52 === errors; } else { var valid14 = true; } if (valid14) { - if (data18.serviceId !== undefined) { - let data20 = data18.serviceId; - const _errs52 = errors; - if (typeof data20 !== 'string') { - const err22 = { + if (data19.serviceId !== undefined) { + let data21 = data19.serviceId; + const _errs54 = errors; + if (typeof data21 !== 'string') { + const err24 = { instancePath: instancePath + '/device/services/' + @@ -75473,25 +78523,25 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceId, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid14 = _errs52 === errors; + var valid14 = _errs54 === errors; } else { var valid14 = true; } if (valid14) { - if (data18.serviceDirection !== undefined) { - let data21 = data18.serviceDirection; - const _errs54 = errors; - if (typeof data21 !== 'string') { - const err23 = { + if (data19.serviceDirection !== undefined) { + let data22 = data19.serviceDirection; + const _errs56 = errors; + if (typeof data22 !== 'string') { + const err25 = { instancePath: instancePath + '/device/services/' + @@ -75510,23 +78560,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data21 === 'consumer' || - data21 === 'producer' || - data21 === 'prosumer' + data22 === 'consumer' || + data22 === 'producer' || + data22 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/device/services/' + @@ -75552,23 +78602,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid14 = _errs54 === errors; + var valid14 = _errs56 === errors; } else { var valid14 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/device/services/' + i2, schemaPath: @@ -75582,23 +78632,23 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid13 = _errs47 === errors; + var valid13 = _errs49 === errors; if (!valid13) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/services/type', @@ -75611,24 +78661,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[0].allOf[1] .properties.services, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid12 = _errs45 === errors; + var valid12 = _errs47 === errors; } else { var valid12 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/type', keyword: 'type', @@ -75640,29 +78690,31 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid6 = _errs40 === errors; + var valid6 = _errs42 === errors; } var _valid0 = _errs17 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs56 = errors; - const _errs57 = errors; - if (errors === _errs57) { + const _errs58 = errors; + const _errs59 = errors; + if (errors === _errs59) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing6; if ( (data4.type === undefined && (missing6 = 'type')) || (data4.name === undefined && (missing6 = 'name')) || - (data4.isPublic === undefined && (missing6 = 'isPublic')) + (data4.isPublic === undefined && (missing6 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing6 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/required', @@ -75676,17 +78728,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data4.name !== undefined) { - let data22 = data4.name; - const _errs59 = errors; - if (typeof data22 !== 'string') { - const err29 = { + let data23 = data4.name; + const _errs61 = errors; + if (typeof data23 !== 'string') { + const err31 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/name/type', @@ -75699,25 +78751,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.name, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid16 = _errs59 === errors; + var valid16 = _errs61 === errors; } else { var valid16 = true; } if (valid16) { if (data4.description !== undefined) { - let data23 = data4.description; - const _errs61 = errors; - if (typeof data23 !== 'string') { - const err30 = { + let data24 = data4.description; + const _errs63 = errors; + if (typeof data24 !== 'string') { + const err32 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/description/type', @@ -75730,25 +78782,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.description, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid16 = _errs61 === errors; + var valid16 = _errs63 === errors; } else { var valid16 = true; } if (valid16) { if (data4.type !== undefined) { - let data24 = data4.type; - const _errs63 = errors; - if (typeof data24 !== 'string') { - const err31 = { + let data25 = data4.type; + const _errs65 = errors; + if (typeof data25 !== 'string') { + const err33 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/type', @@ -75761,24 +78813,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data24 === 'device' || - data24 === 'group' || - data24 === 'edge instantiable' || - data24 === 'cloud instantiable' + data25 === 'device' || + data25 === 'group' || + data25 === 'edge instantiable' || + data25 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/enum', @@ -75795,25 +78847,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid16 = _errs63 === errors; + var valid16 = _errs65 === errors; } else { var valid16 = true; } if (valid16) { if (data4.isPublic !== undefined) { - let data25 = data4.isPublic; - const _errs65 = errors; - if (typeof data25 !== 'boolean') { - const err33 = { + let data26 = data4.isPublic; + const _errs67 = errors; + if (typeof data26 !== 'boolean') { + const err35 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/isPublic/type', @@ -75826,42 +78878,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[0] .properties.isPublic, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs67 === errors; } else { var valid16 = true; } if (valid16) { if (data4.viewer !== undefined) { - let data26 = data4.viewer; - const _errs67 = errors; - if (errors === _errs67) { - if (Array.isArray(data26)) { + let data27 = data4.viewer; + const _errs69 = errors; + if (errors === _errs69) { + if (Array.isArray(data27)) { var valid17 = true; - const len3 = data26.length; + const len3 = data27.length; for (let i3 = 0; i3 < len3; i3++) { - let data27 = data26[i3]; - const _errs69 = errors; - if (errors === _errs69) { + let data28 = data27[i3]; + const _errs71 = errors; + if (errors === _errs71) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing7; if ( - data27.url === undefined && + data28.url === undefined && (missing7 = 'url') ) { - const err34 = { + const err36 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -75880,23 +78932,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs71 = errors; - if (errors === _errs71) { - if (errors === _errs71) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err35 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs73 = errors; + if (errors === _errs73) { + if (errors === _errs73) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err37 = { instancePath: instancePath + '/device/viewer/' + @@ -75916,17 +78968,17 @@ function validate116( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/device/viewer/' + @@ -75947,12 +78999,12 @@ function validate116( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -75961,7 +79013,7 @@ function validate116( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -75977,23 +79029,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid17 = _errs69 === errors; + var valid17 = _errs71 === errors; if (!valid17) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/viewer/type', @@ -76006,43 +79058,43 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[0].properties.viewer, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid16 = _errs67 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data4.owner !== undefined) { - let data29 = data4.owner; - const _errs73 = errors; - if (errors === _errs73) { - if (Array.isArray(data29)) { + let data30 = data4.owner; + const _errs75 = errors; + if (errors === _errs75) { + if (Array.isArray(data30)) { var valid19 = true; - const len4 = data29.length; + const len4 = data30.length; for (let i4 = 0; i4 < len4; i4++) { - let data30 = data29[i4]; - const _errs75 = errors; - if (errors === _errs75) { + let data31 = data30[i4]; + const _errs77 = errors; + if (errors === _errs77) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data31 && + typeof data31 == 'object' && + !Array.isArray(data31) ) { let missing8; if ( - data30.url === undefined && + data31.url === undefined && (missing8 = 'url') ) { - const err39 = { + const err41 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -76061,23 +79113,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data30.url !== undefined) { - let data31 = data30.url; - const _errs77 = errors; - if (errors === _errs77) { - if (errors === _errs77) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err40 = { + if (data31.url !== undefined) { + let data32 = data31.url; + const _errs79 = errors; + if (errors === _errs79) { + if (errors === _errs79) { + if (typeof data32 === 'string') { + if (!formats0(data32)) { + const err42 = { instancePath: instancePath + '/device/owner/' + @@ -76097,17 +79149,17 @@ function validate116( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/device/owner/' + @@ -76128,12 +79180,12 @@ function validate116( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -76142,7 +79194,7 @@ function validate116( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -76158,23 +79210,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid19 = _errs75 === errors; + var valid19 = _errs77 === errors; if (!valid19) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/owner/type', @@ -76187,20 +79239,84 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[0].properties.owner, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid16 = _errs73 === errors; + var valid16 = _errs75 === errors; } else { var valid16 = true; } + if (valid16) { + if (data4.bookingEndpoint !== undefined) { + let data33 = data4.bookingEndpoint; + const _errs81 = errors; + if (errors === _errs81) { + if (errors === _errs81) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err46 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data33, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data33, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid16 = _errs81 === errors; + } else { + var valid16 = true; + } + } } } } @@ -76208,7 +79324,7 @@ function validate116( } } } else { - const err44 = { + const err48 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/type', keyword: 'type', @@ -76220,23 +79336,23 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid15 = _errs57 === errors; + var valid15 = _errs59 === errors; if (valid15) { - const _errs79 = errors; - if (errors === _errs79) { + const _errs83 = errors; + if (errors === _errs83) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data32 = data4.type; - const _errs81 = errors; - if ('device' !== data32) { - const err45 = { + let data34 = data4.type; + const _errs85 = errors; + if ('device' !== data34) { + const err49 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/type/const', @@ -76247,28 +79363,28 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[1] .properties.type, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid21 = _errs81 === errors; + var valid21 = _errs85 === errors; } else { var valid21 = true; } if (valid21) { if (data4.experiment !== undefined) { - let data33 = data4.experiment; - const _errs82 = errors; - if (errors === _errs82) { - if (errors === _errs82) { - if (typeof data33 === 'string') { - if (!formats0(data33)) { - const err46 = { + let data35 = data4.experiment; + const _errs86 = errors; + if (errors === _errs86) { + if (errors === _errs86) { + if (typeof data35 === 'string') { + if (!formats0(data35)) { + const err50 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/format', @@ -76279,17 +79395,17 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/type', @@ -76302,46 +79418,46 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[1] .properties.experiment, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid21 = _errs82 === errors; + var valid21 = _errs86 === errors; } else { var valid21 = true; } if (valid21) { if (data4.services !== undefined) { - let data34 = data4.services; - const _errs84 = errors; - if (errors === _errs84) { - if (Array.isArray(data34)) { + let data36 = data4.services; + const _errs88 = errors; + if (errors === _errs88) { + if (Array.isArray(data36)) { var valid22 = true; - const len5 = data34.length; + const len5 = data36.length; for (let i5 = 0; i5 < len5; i5++) { - let data35 = data34[i5]; - const _errs86 = errors; - if (errors === _errs86) { + let data37 = data36[i5]; + const _errs90 = errors; + if (errors === _errs90) { if ( - data35 && - typeof data35 == 'object' && - !Array.isArray(data35) + data37 && + typeof data37 == 'object' && + !Array.isArray(data37) ) { - if (data35.serviceType !== undefined) { - let data36 = data35.serviceType; - const _errs89 = errors; - if (errors === _errs89) { - if (errors === _errs89) { - if (typeof data36 === 'string') { - if (!formats0(data36)) { - const err48 = { + if (data37.serviceType !== undefined) { + let data38 = data37.serviceType; + const _errs93 = errors; + if (errors === _errs93) { + if (errors === _errs93) { + if (typeof data38 === 'string') { + if (!formats0(data38)) { + const err52 = { instancePath: instancePath + '/device/services/' + @@ -76359,17 +79475,17 @@ function validate116( .anyOf[1].allOf[1].properties .services.items.properties .serviceType, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/device/services/' + @@ -76388,27 +79504,27 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid23 = _errs89 === errors; + var valid23 = _errs93 === errors; } else { var valid23 = true; } if (valid23) { - if (data35.serviceId !== undefined) { - let data37 = data35.serviceId; - const _errs91 = errors; - if (typeof data37 !== 'string') { - const err50 = { + if (data37.serviceId !== undefined) { + let data39 = data37.serviceId; + const _errs95 = errors; + if (typeof data39 !== 'string') { + const err54 = { instancePath: instancePath + '/device/services/' + @@ -76427,25 +79543,25 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid23 = _errs91 === errors; + var valid23 = _errs95 === errors; } else { var valid23 = true; } if (valid23) { - if (data35.serviceDirection !== undefined) { - let data38 = data35.serviceDirection; - const _errs93 = errors; - if (typeof data38 !== 'string') { - const err51 = { + if (data37.serviceDirection !== undefined) { + let data40 = data37.serviceDirection; + const _errs97 = errors; + if (typeof data40 !== 'string') { + const err55 = { instancePath: instancePath + '/device/services/' + @@ -76465,23 +79581,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data38 === 'consumer' || - data38 === 'producer' || - data38 === 'prosumer' + data40 === 'consumer' || + data40 === 'producer' || + data40 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/device/services/' + @@ -76508,23 +79624,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid23 = _errs93 === errors; + var valid23 = _errs97 === errors; } else { var valid23 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/device/services/' + i5, schemaPath: @@ -76538,23 +79654,23 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services.items, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid22 = _errs86 === errors; + var valid22 = _errs90 === errors; if (!valid22) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/services/type', @@ -76567,24 +79683,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[1].allOf[1] .properties.services, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid21 = _errs84 === errors; + var valid21 = _errs88 === errors; } else { var valid21 = true; } } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/type', keyword: 'type', @@ -76597,29 +79713,31 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid15 = _errs79 === errors; + var valid15 = _errs83 === errors; } - var _valid0 = _errs56 === errors; + var _valid0 = _errs58 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs95 = errors; - const _errs96 = errors; - if (errors === _errs96) { + const _errs99 = errors; + const _errs100 = errors; + if (errors === _errs100) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing9; if ( (data4.type === undefined && (missing9 = 'type')) || (data4.name === undefined && (missing9 = 'name')) || - (data4.isPublic === undefined && (missing9 = 'isPublic')) + (data4.isPublic === undefined && (missing9 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing9 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/required', @@ -76634,17 +79752,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data4.name !== undefined) { - let data39 = data4.name; - const _errs98 = errors; - if (typeof data39 !== 'string') { - const err57 = { + let data41 = data4.name; + const _errs102 = errors; + if (typeof data41 !== 'string') { + const err61 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/name/type', @@ -76657,25 +79775,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.name, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid25 = _errs98 === errors; + var valid25 = _errs102 === errors; } else { var valid25 = true; } if (valid25) { if (data4.description !== undefined) { - let data40 = data4.description; - const _errs100 = errors; - if (typeof data40 !== 'string') { - const err58 = { + let data42 = data4.description; + const _errs104 = errors; + if (typeof data42 !== 'string') { + const err62 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/description/type', @@ -76688,25 +79806,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.description, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid25 = _errs100 === errors; + var valid25 = _errs104 === errors; } else { var valid25 = true; } if (valid25) { if (data4.type !== undefined) { - let data41 = data4.type; - const _errs102 = errors; - if (typeof data41 !== 'string') { - const err59 = { + let data43 = data4.type; + const _errs106 = errors; + if (typeof data43 !== 'string') { + const err63 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/type', @@ -76719,24 +79837,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.type, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data41 === 'device' || - data41 === 'group' || - data41 === 'edge instantiable' || - data41 === 'cloud instantiable' + data43 === 'device' || + data43 === 'group' || + data43 === 'edge instantiable' || + data43 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/enum', @@ -76753,25 +79871,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[0] .properties.type, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid25 = _errs102 === errors; + var valid25 = _errs106 === errors; } else { var valid25 = true; } if (valid25) { if (data4.isPublic !== undefined) { - let data42 = data4.isPublic; - const _errs104 = errors; - if (typeof data42 !== 'boolean') { - const err61 = { + let data44 = data4.isPublic; + const _errs108 = errors; + if (typeof data44 !== 'boolean') { + const err65 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/isPublic/type', @@ -76784,42 +79902,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[0].properties.isPublic, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs108 === errors; } else { var valid25 = true; } if (valid25) { if (data4.viewer !== undefined) { - let data43 = data4.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data43)) { + let data45 = data4.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data45)) { var valid26 = true; - const len6 = data43.length; + const len6 = data45.length; for (let i6 = 0; i6 < len6; i6++) { - let data44 = data43[i6]; - const _errs108 = errors; - if (errors === _errs108) { + let data46 = data45[i6]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data44 && - typeof data44 == 'object' && - !Array.isArray(data44) + data46 && + typeof data46 == 'object' && + !Array.isArray(data46) ) { let missing10; if ( - data44.url === undefined && + data46.url === undefined && (missing10 = 'url') ) { - const err62 = { + const err66 = { instancePath: instancePath + '/device/viewer/' + i6, schemaPath: @@ -76838,23 +79956,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data44.url !== undefined) { - let data45 = data44.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err63 = { + if (data46.url !== undefined) { + let data47 = data46.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data47 === 'string') { + if (!formats0(data47)) { + const err67 = { instancePath: instancePath + '/device/viewer/' + @@ -76874,17 +79992,17 @@ function validate116( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/device/viewer/' + @@ -76905,12 +80023,12 @@ function validate116( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -76919,7 +80037,7 @@ function validate116( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/device/viewer/' + i6, schemaPath: @@ -76935,23 +80053,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid26 = _errs108 === errors; + var valid26 = _errs112 === errors; if (!valid26) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/viewer/type', @@ -76964,43 +80082,43 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[0].properties.viewer, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid25 = _errs106 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data4.owner !== undefined) { - let data46 = data4.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data46)) { + let data48 = data4.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data48)) { var valid28 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs114 = errors; - if (errors === _errs114) { + let data49 = data48[i7]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing11; if ( - data47.url === undefined && + data49.url === undefined && (missing11 = 'url') ) { - const err67 = { + const err71 = { instancePath: instancePath + '/device/owner/' + i7, schemaPath: @@ -77019,23 +80137,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err68 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err72 = { instancePath: instancePath + '/device/owner/' + @@ -77056,17 +80174,17 @@ function validate116( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/device/owner/' + @@ -77087,12 +80205,12 @@ function validate116( .device.anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -77101,7 +80219,7 @@ function validate116( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/device/owner/' + i7, schemaPath: @@ -77117,23 +80235,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid28 = _errs114 === errors; + var valid28 = _errs118 === errors; if (!valid28) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/owner/type', @@ -77146,20 +80264,85 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[0].properties.owner, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid25 = _errs112 === errors; + var valid25 = _errs116 === errors; } else { var valid25 = true; } + if (valid25) { + if (data4.bookingEndpoint !== undefined) { + let data51 = data4.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err76 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data51, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data51, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid25 = _errs122 === errors; + } else { + var valid25 = true; + } + } } } } @@ -77167,7 +80350,7 @@ function validate116( } } } else { - const err72 = { + const err78 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/type', keyword: 'type', @@ -77180,23 +80363,23 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid24 = _errs96 === errors; + var valid24 = _errs100 === errors; if (valid24) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data49 = data4.type; - const _errs120 = errors; - if ('edge instantiable' !== data49) { - const err73 = { + let data52 = data4.type; + const _errs126 = errors; + if ('edge instantiable' !== data52) { + const err79 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/type/const', @@ -77207,28 +80390,28 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2].allOf[1] .properties.type, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid30 = _errs120 === errors; + var valid30 = _errs126 === errors; } else { var valid30 = true; } if (valid30) { if (data4.codeUrl !== undefined) { - let data50 = data4.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data50 === 'string') { - if (!formats0(data50)) { - const err74 = { + let data53 = data4.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err80 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/format', @@ -77239,17 +80422,17 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/type', @@ -77262,46 +80445,46 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid30 = _errs121 === errors; + var valid30 = _errs127 === errors; } else { var valid30 = true; } if (valid30) { if (data4.services !== undefined) { - let data51 = data4.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data51)) { + let data54 = data4.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data54)) { var valid31 = true; - const len8 = data51.length; + const len8 = data54.length; for (let i8 = 0; i8 < len8; i8++) { - let data52 = data51[i8]; - const _errs125 = errors; - if (errors === _errs125) { + let data55 = data54[i8]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data52 && - typeof data52 == 'object' && - !Array.isArray(data52) + data55 && + typeof data55 == 'object' && + !Array.isArray(data55) ) { - if (data52.serviceType !== undefined) { - let data53 = data52.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err76 = { + if (data55.serviceType !== undefined) { + let data56 = data55.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err82 = { instancePath: instancePath + '/device/services/' + @@ -77319,17 +80502,17 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/device/services/' + @@ -77350,27 +80533,27 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid32 = _errs128 === errors; + var valid32 = _errs134 === errors; } else { var valid32 = true; } if (valid32) { - if (data52.serviceId !== undefined) { - let data54 = data52.serviceId; - const _errs130 = errors; - if (typeof data54 !== 'string') { - const err78 = { + if (data55.serviceId !== undefined) { + let data57 = data55.serviceId; + const _errs136 = errors; + if (typeof data57 !== 'string') { + const err84 = { instancePath: instancePath + '/device/services/' + @@ -77389,25 +80572,25 @@ function validate116( schema101.allOf[1].properties.device .anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid32 = _errs130 === errors; + var valid32 = _errs136 === errors; } else { var valid32 = true; } if (valid32) { - if (data52.serviceDirection !== undefined) { - let data55 = data52.serviceDirection; - const _errs132 = errors; - if (typeof data55 !== 'string') { - const err79 = { + if (data55.serviceDirection !== undefined) { + let data58 = data55.serviceDirection; + const _errs138 = errors; + if (typeof data58 !== 'string') { + const err85 = { instancePath: instancePath + '/device/services/' + @@ -77428,23 +80611,23 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data55 === 'consumer' || - data55 === 'producer' || - data55 === 'prosumer' + data58 === 'consumer' || + data58 === 'producer' || + data58 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/device/services/' + @@ -77472,23 +80655,23 @@ function validate116( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid32 = _errs132 === errors; + var valid32 = _errs138 === errors; } else { var valid32 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/device/services/' + i8, schemaPath: @@ -77502,23 +80685,23 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services.items, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid31 = _errs125 === errors; + var valid31 = _errs131 === errors; if (!valid31) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/services/type', @@ -77531,24 +80714,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid30 = _errs123 === errors; + var valid30 = _errs129 === errors; } else { var valid30 = true; } } } } else { - const err83 = { + const err89 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/type', keyword: 'type', @@ -77561,29 +80744,31 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid24 = _errs118 === errors; + var valid24 = _errs124 === errors; } - var _valid0 = _errs95 === errors; + var _valid0 = _errs99 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing12; if ( (data4.type === undefined && (missing12 = 'type')) || (data4.name === undefined && (missing12 = 'name')) || - (data4.isPublic === undefined && (missing12 = 'isPublic')) + (data4.isPublic === undefined && (missing12 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing12 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/required', @@ -77598,17 +80783,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data4.name !== undefined) { - let data56 = data4.name; - const _errs137 = errors; - if (typeof data56 !== 'string') { - const err85 = { + let data59 = data4.name; + const _errs143 = errors; + if (typeof data59 !== 'string') { + const err91 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/name/type', @@ -77621,25 +80806,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3].allOf[0] .properties.name, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid34 = _errs137 === errors; + var valid34 = _errs143 === errors; } else { var valid34 = true; } if (valid34) { if (data4.description !== undefined) { - let data57 = data4.description; - const _errs139 = errors; - if (typeof data57 !== 'string') { - const err86 = { + let data60 = data4.description; + const _errs145 = errors; + if (typeof data60 !== 'string') { + const err92 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/description/type', @@ -77652,25 +80837,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3].allOf[0] .properties.description, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid34 = _errs139 === errors; + var valid34 = _errs145 === errors; } else { var valid34 = true; } if (valid34) { if (data4.type !== undefined) { - let data58 = data4.type; - const _errs141 = errors; - if (typeof data58 !== 'string') { - const err87 = { + let data61 = data4.type; + const _errs147 = errors; + if (typeof data61 !== 'string') { + const err93 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/type', @@ -77683,24 +80868,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data58 === 'device' || - data58 === 'group' || - data58 === 'edge instantiable' || - data58 === 'cloud instantiable' + data61 === 'device' || + data61 === 'group' || + data61 === 'edge instantiable' || + data61 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/enum', @@ -77717,25 +80902,25 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid34 = _errs141 === errors; + var valid34 = _errs147 === errors; } else { var valid34 = true; } if (valid34) { if (data4.isPublic !== undefined) { - let data59 = data4.isPublic; - const _errs143 = errors; - if (typeof data59 !== 'boolean') { - const err89 = { + let data62 = data4.isPublic; + const _errs149 = errors; + if (typeof data62 !== 'boolean') { + const err95 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/isPublic/type', @@ -77748,42 +80933,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.isPublic, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs149 === errors; } else { var valid34 = true; } if (valid34) { if (data4.viewer !== undefined) { - let data60 = data4.viewer; - const _errs145 = errors; - if (errors === _errs145) { - if (Array.isArray(data60)) { + let data63 = data4.viewer; + const _errs151 = errors; + if (errors === _errs151) { + if (Array.isArray(data63)) { var valid35 = true; - const len9 = data60.length; + const len9 = data63.length; for (let i9 = 0; i9 < len9; i9++) { - let data61 = data60[i9]; - const _errs147 = errors; - if (errors === _errs147) { + let data64 = data63[i9]; + const _errs153 = errors; + if (errors === _errs153) { if ( - data61 && - typeof data61 == 'object' && - !Array.isArray(data61) + data64 && + typeof data64 == 'object' && + !Array.isArray(data64) ) { let missing13; if ( - data61.url === undefined && + data64.url === undefined && (missing13 = 'url') ) { - const err90 = { + const err96 = { instancePath: instancePath + '/device/viewer/' + i9, schemaPath: @@ -77802,23 +80987,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data61.url !== undefined) { - let data62 = data61.url; - const _errs149 = errors; - if (errors === _errs149) { - if (errors === _errs149) { - if (typeof data62 === 'string') { - if (!formats0(data62)) { - const err91 = { + if (data64.url !== undefined) { + let data65 = data64.url; + const _errs155 = errors; + if (errors === _errs155) { + if (errors === _errs155) { + if (typeof data65 === 'string') { + if (!formats0(data65)) { + const err97 = { instancePath: instancePath + '/device/viewer/' + @@ -77839,17 +81024,17 @@ function validate116( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/device/viewer/' + @@ -77870,12 +81055,12 @@ function validate116( .device.anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -77884,7 +81069,7 @@ function validate116( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/device/viewer/' + i9, schemaPath: @@ -77900,23 +81085,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid35 = _errs147 === errors; + var valid35 = _errs153 === errors; if (!valid35) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/viewer/type', @@ -77929,43 +81114,43 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[0].properties.viewer, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid34 = _errs145 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data4.owner !== undefined) { - let data63 = data4.owner; - const _errs151 = errors; - if (errors === _errs151) { - if (Array.isArray(data63)) { + let data66 = data4.owner; + const _errs157 = errors; + if (errors === _errs157) { + if (Array.isArray(data66)) { var valid37 = true; - const len10 = data63.length; + const len10 = data66.length; for (let i10 = 0; i10 < len10; i10++) { - let data64 = data63[i10]; - const _errs153 = errors; - if (errors === _errs153) { + let data67 = data66[i10]; + const _errs159 = errors; + if (errors === _errs159) { if ( - data64 && - typeof data64 == 'object' && - !Array.isArray(data64) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing14; if ( - data64.url === undefined && + data67.url === undefined && (missing14 = 'url') ) { - const err95 = { + const err101 = { instancePath: instancePath + '/device/owner/' + @@ -77988,23 +81173,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties .owner.items, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data64.url !== undefined) { - let data65 = data64.url; - const _errs155 = errors; - if (errors === _errs155) { - if (errors === _errs155) { - if (typeof data65 === 'string') { - if (!formats0(data65)) { - const err96 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs161 = errors; + if (errors === _errs161) { + if (errors === _errs161) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err102 = { instancePath: instancePath + '/device/owner/' + @@ -78025,17 +81210,17 @@ function validate116( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/device/owner/' + @@ -78058,12 +81243,12 @@ function validate116( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -78072,7 +81257,7 @@ function validate116( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/device/owner/' + i10, schemaPath: @@ -78088,23 +81273,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner .items, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid37 = _errs153 === errors; + var valid37 = _errs159 === errors; if (!valid37) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/owner/type', @@ -78117,20 +81302,86 @@ function validate116( parentSchema: schema101.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid34 = _errs151 === errors; + var valid34 = _errs157 === errors; } else { var valid34 = true; } + if (valid34) { + if (data4.bookingEndpoint !== undefined) { + let data69 = data4.bookingEndpoint; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err106 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema101.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data69, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema101.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema101.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data69, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid34 = _errs163 === errors; + } else { + var valid34 = true; + } + } } } } @@ -78138,7 +81389,7 @@ function validate116( } } } else { - const err100 = { + const err108 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/type', keyword: 'type', @@ -78151,21 +81402,21 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid33 = _errs135 === errors; + var valid33 = _errs141 === errors; if (valid33) { - const _errs157 = errors; - if (errors === _errs157) { + const _errs165 = errors; + if (errors === _errs165) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing15; if (data4.devices === undefined && (missing15 = 'devices')) { - const err101 = { + const err109 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/required', @@ -78180,17 +81431,17 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data4.type !== undefined) { - let data66 = data4.type; - const _errs159 = errors; - if ('group' !== data66) { - const err102 = { + let data70 = data4.type; + const _errs167 = errors; + if ('group' !== data70) { + const err110 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/type/const', @@ -78201,42 +81452,42 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3].allOf[1] .properties.type, - data: data66, + data: data70, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid39 = _errs159 === errors; + var valid39 = _errs167 === errors; } else { var valid39 = true; } if (valid39) { if (data4.devices !== undefined) { - let data67 = data4.devices; - const _errs160 = errors; - if (errors === _errs160) { - if (Array.isArray(data67)) { + let data71 = data4.devices; + const _errs168 = errors; + if (errors === _errs168) { + if (Array.isArray(data71)) { var valid40 = true; - const len11 = data67.length; + const len11 = data71.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs162 = errors; - if (errors === _errs162) { + let data72 = data71[i11]; + const _errs170 = errors; + if (errors === _errs170) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data72 && + typeof data72 == 'object' && + !Array.isArray(data72) ) { let missing16; if ( - data68.url === undefined && + data72.url === undefined && (missing16 = 'url') ) { - const err103 = { + const err111 = { instancePath: instancePath + '/device/devices/' + i11, schemaPath: @@ -78255,23 +81506,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data68, + data: data72, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs164 = errors; - if (errors === _errs164) { - if (errors === _errs164) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err104 = { + if (data72.url !== undefined) { + let data73 = data72.url; + const _errs172 = errors; + if (errors === _errs172) { + if (errors === _errs172) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err112 = { instancePath: instancePath + '/device/devices/' + @@ -78291,17 +81542,17 @@ function validate116( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data69, + data: data73, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/device/devices/' + @@ -78322,12 +81573,12 @@ function validate116( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data69, + data: data73, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -78336,7 +81587,7 @@ function validate116( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/device/devices/' + i11, schemaPath: @@ -78352,23 +81603,23 @@ function validate116( schema101.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data68, + data: data72, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid40 = _errs162 === errors; + var valid40 = _errs170 === errors; if (!valid40) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/device/devices', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/devices/type', @@ -78381,24 +81632,24 @@ function validate116( parentSchema: schema101.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices, - data: data67, + data: data71, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid39 = _errs160 === errors; + var valid39 = _errs168 === errors; } else { var valid39 = true; } } } } else { - const err108 = { + const err116 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/type', @@ -78412,22 +81663,22 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid33 = _errs157 === errors; + var valid33 = _errs165 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid5 = valid5 || _valid0; } } } if (!valid5) { - const err109 = { + const err117 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf', keyword: 'anyOf', @@ -78438,9 +81689,9 @@ function validate116( data: data4, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate116.errors = vErrors; @@ -78579,8 +81830,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -78674,8 +81930,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -78790,8 +82051,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -78885,8 +82151,13 @@ const schema102 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -79171,7 +82442,9 @@ function validate117( (data4.url === undefined && (missing3 = 'url')) || (data4.type === undefined && (missing3 = 'type')) || (data4.name === undefined && (missing3 = 'name')) || - (data4.isPublic === undefined && (missing3 = 'isPublic')) + (data4.isPublic === undefined && (missing3 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing3 = 'bookingEndpoint')) ) { const err0 = { instancePath: instancePath + '/device', @@ -79768,6 +83041,70 @@ function validate117( } else { var valid7 = true; } + if (valid7) { + if (data4.bookingEndpoint !== undefined) { + let data16 = data4.bookingEndpoint; + const _errs42 = errors; + if (errors === _errs42) { + if (errors === _errs42) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err18 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data16, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid7 = _errs42 === errors; + } else { + var valid7 = true; + } + } } } } @@ -79776,7 +83113,7 @@ function validate117( } } } else { - const err18 = { + const err20 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/0/type', keyword: 'type', @@ -79787,23 +83124,23 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid6 = _errs18 === errors; if (valid6) { - const _errs42 = errors; - if (errors === _errs42) { + const _errs44 = errors; + if (errors === _errs44) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data16 = data4.type; - const _errs44 = errors; - if ('cloud instantiable' !== data16) { - const err19 = { + let data17 = data4.type; + const _errs46 = errors; + if ('cloud instantiable' !== data17) { + const err21 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/type/const', @@ -79814,28 +83151,28 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.type, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid12 = _errs44 === errors; + var valid12 = _errs46 === errors; } else { var valid12 = true; } if (valid12) { if (data4.instantiateUrl !== undefined) { - let data17 = data4.instantiateUrl; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data17 === 'string') { - if (!formats0(data17)) { - const err20 = { + let data18 = data4.instantiateUrl; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data18 === 'string') { + if (!formats0(data18)) { + const err22 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/format', @@ -79846,17 +83183,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/device/instantiateUrl', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/instantiateUrl/type', @@ -79869,46 +83206,46 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.instantiateUrl, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid12 = _errs45 === errors; + var valid12 = _errs47 === errors; } else { var valid12 = true; } if (valid12) { if (data4.services !== undefined) { - let data18 = data4.services; - const _errs47 = errors; - if (errors === _errs47) { - if (Array.isArray(data18)) { + let data19 = data4.services; + const _errs49 = errors; + if (errors === _errs49) { + if (Array.isArray(data19)) { var valid13 = true; - const len2 = data18.length; + const len2 = data19.length; for (let i2 = 0; i2 < len2; i2++) { - let data19 = data18[i2]; - const _errs49 = errors; - if (errors === _errs49) { + let data20 = data19[i2]; + const _errs51 = errors; + if (errors === _errs51) { if ( - data19 && - typeof data19 == 'object' && - !Array.isArray(data19) + data20 && + typeof data20 == 'object' && + !Array.isArray(data20) ) { - if (data19.serviceType !== undefined) { - let data20 = data19.serviceType; - const _errs52 = errors; - if (errors === _errs52) { - if (errors === _errs52) { - if (typeof data20 === 'string') { - if (!formats0(data20)) { - const err22 = { + if (data20.serviceType !== undefined) { + let data21 = data20.serviceType; + const _errs54 = errors; + if (errors === _errs54) { + if (errors === _errs54) { + if (typeof data21 === 'string') { + if (!formats0(data21)) { + const err24 = { instancePath: instancePath + '/device/services/' + @@ -79925,17 +83262,17 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/device/services/' + @@ -79954,27 +83291,27 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid14 = _errs52 === errors; + var valid14 = _errs54 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceId !== undefined) { - let data21 = data19.serviceId; - const _errs54 = errors; - if (typeof data21 !== 'string') { - const err24 = { + if (data20.serviceId !== undefined) { + let data22 = data20.serviceId; + const _errs56 = errors; + if (typeof data22 !== 'string') { + const err26 = { instancePath: instancePath + '/device/services/' + @@ -79993,25 +83330,25 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceId, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid14 = _errs54 === errors; + var valid14 = _errs56 === errors; } else { var valid14 = true; } if (valid14) { - if (data19.serviceDirection !== undefined) { - let data22 = data19.serviceDirection; - const _errs56 = errors; - if (typeof data22 !== 'string') { - const err25 = { + if (data20.serviceDirection !== undefined) { + let data23 = data20.serviceDirection; + const _errs58 = errors; + if (typeof data23 !== 'string') { + const err27 = { instancePath: instancePath + '/device/services/' + @@ -80030,23 +83367,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data22 === 'consumer' || - data22 === 'producer' || - data22 === 'prosumer' + data23 === 'consumer' || + data23 === 'producer' || + data23 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/device/services/' + @@ -80072,23 +83409,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[0].allOf[1].properties.services .items.properties.serviceDirection, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid14 = _errs56 === errors; + var valid14 = _errs58 === errors; } else { var valid14 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/device/services/' + i2, schemaPath: @@ -80102,23 +83439,23 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0] .allOf[1].properties.services.items, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid13 = _errs49 === errors; + var valid13 = _errs51 === errors; if (!valid13) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/properties/services/type', @@ -80131,24 +83468,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[0].allOf[1] .properties.services, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid12 = _errs47 === errors; + var valid12 = _errs49 === errors; } else { var valid12 = true; } } } } else { - const err29 = { + const err31 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/0/allOf/1/type', keyword: 'type', @@ -80160,30 +83497,32 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid6 = _errs42 === errors; + var valid6 = _errs44 === errors; } var _valid0 = _errs17 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs58 = errors; - const _errs59 = errors; - if (errors === _errs59) { + const _errs60 = errors; + const _errs61 = errors; + if (errors === _errs61) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing6; if ( (data4.url === undefined && (missing6 = 'url')) || (data4.type === undefined && (missing6 = 'type')) || (data4.name === undefined && (missing6 = 'name')) || - (data4.isPublic === undefined && (missing6 = 'isPublic')) + (data4.isPublic === undefined && (missing6 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing6 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/required', @@ -80197,20 +83536,20 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data4.url !== undefined) { - let data23 = data4.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err31 = { + let data24 = data4.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err33 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/format', @@ -80221,17 +83560,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/url/type', @@ -80244,27 +83583,27 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid16 = _errs61 === errors; + var valid16 = _errs63 === errors; } else { var valid16 = true; } if (valid16) { if (data4.name !== undefined) { - let data24 = data4.name; - const _errs63 = errors; - if (typeof data24 !== 'string') { - const err33 = { + let data25 = data4.name; + const _errs65 = errors; + if (typeof data25 !== 'string') { + const err35 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/name/type', @@ -80277,25 +83616,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.name, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid16 = _errs63 === errors; + var valid16 = _errs65 === errors; } else { var valid16 = true; } if (valid16) { if (data4.description !== undefined) { - let data25 = data4.description; - const _errs65 = errors; - if (typeof data25 !== 'string') { - const err34 = { + let data26 = data4.description; + const _errs67 = errors; + if (typeof data26 !== 'string') { + const err36 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/description/type', @@ -80308,25 +83647,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.description, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs67 === errors; } else { var valid16 = true; } if (valid16) { if (data4.type !== undefined) { - let data26 = data4.type; - const _errs67 = errors; - if (typeof data26 !== 'string') { - const err35 = { + let data27 = data4.type; + const _errs69 = errors; + if (typeof data27 !== 'string') { + const err37 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/type', @@ -80339,24 +83678,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data26 === 'device' || - data26 === 'group' || - data26 === 'edge instantiable' || - data26 === 'cloud instantiable' + data27 === 'device' || + data27 === 'group' || + data27 === 'edge instantiable' || + data27 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/type/enum', @@ -80373,25 +83712,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[0] .properties.type, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid16 = _errs67 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data4.isPublic !== undefined) { - let data27 = data4.isPublic; - const _errs69 = errors; - if (typeof data27 !== 'boolean') { - const err37 = { + let data28 = data4.isPublic; + const _errs71 = errors; + if (typeof data28 !== 'boolean') { + const err39 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/isPublic/type', @@ -80404,42 +83743,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[0].properties.isPublic, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs71 === errors; } else { var valid16 = true; } if (valid16) { if (data4.viewer !== undefined) { - let data28 = data4.viewer; - const _errs71 = errors; - if (errors === _errs71) { - if (Array.isArray(data28)) { + let data29 = data4.viewer; + const _errs73 = errors; + if (errors === _errs73) { + if (Array.isArray(data29)) { var valid17 = true; - const len3 = data28.length; + const len3 = data29.length; for (let i3 = 0; i3 < len3; i3++) { - let data29 = data28[i3]; - const _errs73 = errors; - if (errors === _errs73) { + let data30 = data29[i3]; + const _errs75 = errors; + if (errors === _errs75) { if ( - data29 && - typeof data29 == 'object' && - !Array.isArray(data29) + data30 && + typeof data30 == 'object' && + !Array.isArray(data30) ) { let missing7; if ( - data29.url === undefined && + data30.url === undefined && (missing7 = 'url') ) { - const err38 = { + const err40 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -80458,23 +83797,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data29.url !== undefined) { - let data30 = data29.url; - const _errs75 = errors; - if (errors === _errs75) { - if (errors === _errs75) { - if (typeof data30 === 'string') { - if (!formats0(data30)) { - const err39 = { + if (data30.url !== undefined) { + let data31 = data30.url; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data31 === 'string') { + if (!formats0(data31)) { + const err41 = { instancePath: instancePath + '/device/viewer/' + @@ -80494,17 +83833,17 @@ function validate117( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/device/viewer/' + @@ -80525,12 +83864,12 @@ function validate117( .device.anyOf[1].allOf[0] .properties.viewer.items .properties.url, - data: data30, + data: data31, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -80539,7 +83878,7 @@ function validate117( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/device/viewer/' + i3, schemaPath: @@ -80555,23 +83894,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.viewer .items, - data: data29, + data: data30, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid17 = _errs73 === errors; + var valid17 = _errs75 === errors; if (!valid17) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/viewer/type', @@ -80584,43 +83923,43 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[0].properties.viewer, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid16 = _errs71 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data4.owner !== undefined) { - let data31 = data4.owner; - const _errs77 = errors; - if (errors === _errs77) { - if (Array.isArray(data31)) { + let data32 = data4.owner; + const _errs79 = errors; + if (errors === _errs79) { + if (Array.isArray(data32)) { var valid19 = true; - const len4 = data31.length; + const len4 = data32.length; for (let i4 = 0; i4 < len4; i4++) { - let data32 = data31[i4]; - const _errs79 = errors; - if (errors === _errs79) { + let data33 = data32[i4]; + const _errs81 = errors; + if (errors === _errs81) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data33 && + typeof data33 == 'object' && + !Array.isArray(data33) ) { let missing8; if ( - data32.url === undefined && + data33.url === undefined && (missing8 = 'url') ) { - const err43 = { + const err45 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -80639,23 +83978,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data32.url !== undefined) { - let data33 = data32.url; - const _errs81 = errors; - if (errors === _errs81) { - if (errors === _errs81) { - if (typeof data33 === 'string') { - if (!formats0(data33)) { - const err44 = { + if (data33.url !== undefined) { + let data34 = data33.url; + const _errs83 = errors; + if (errors === _errs83) { + if (errors === _errs83) { + if (typeof data34 === 'string') { + if (!formats0(data34)) { + const err46 = { instancePath: instancePath + '/device/owner/' + @@ -80676,17 +84015,17 @@ function validate117( .anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/device/owner/' + @@ -80707,12 +84046,12 @@ function validate117( .device.anyOf[1].allOf[0] .properties.owner.items .properties.url, - data: data33, + data: data34, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -80721,7 +84060,7 @@ function validate117( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/device/owner/' + i4, schemaPath: @@ -80737,23 +84076,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[0].properties.owner .items, - data: data32, + data: data33, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid19 = _errs79 === errors; + var valid19 = _errs81 === errors; if (!valid19) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/owner/type', @@ -80766,20 +84105,85 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[0].properties.owner, - data: data31, + data: data32, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid16 = _errs77 === errors; + var valid16 = _errs79 === errors; } else { var valid16 = true; } + if (valid16) { + if (data4.bookingEndpoint !== undefined) { + let data35 = data4.bookingEndpoint; + const _errs85 = errors; + if (errors === _errs85) { + if (errors === _errs85) { + if (typeof data35 === 'string') { + if (!formats0(data35)) { + const err50 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: + instancePath + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data35, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid16 = _errs85 === errors; + } else { + var valid16 = true; + } + } } } } @@ -80788,7 +84192,7 @@ function validate117( } } } else { - const err48 = { + const err52 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/0/type', keyword: 'type', @@ -80800,23 +84204,23 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid15 = _errs59 === errors; + var valid15 = _errs61 === errors; if (valid15) { - const _errs83 = errors; - if (errors === _errs83) { + const _errs87 = errors; + if (errors === _errs87) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data34 = data4.type; - const _errs85 = errors; - if ('device' !== data34) { - const err49 = { + let data36 = data4.type; + const _errs89 = errors; + if ('device' !== data36) { + const err53 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/type/const', @@ -80827,25 +84231,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[1] .properties.type, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid21 = _errs85 === errors; + var valid21 = _errs89 === errors; } else { var valid21 = true; } if (valid21) { if (data4.connected !== undefined) { - let data35 = data4.connected; - const _errs86 = errors; - if (typeof data35 !== 'boolean') { - const err50 = { + let data37 = data4.connected; + const _errs90 = errors; + if (typeof data37 !== 'boolean') { + const err54 = { instancePath: instancePath + '/device/connected', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/connected/type', @@ -80858,44 +84262,44 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[1] .properties.connected, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid21 = _errs86 === errors; + var valid21 = _errs90 === errors; } else { var valid21 = true; } if (valid21) { if (data4.announcedAvailability !== undefined) { - let data36 = data4.announcedAvailability; - const _errs88 = errors; - if (errors === _errs88) { - if (Array.isArray(data36)) { + let data38 = data4.announcedAvailability; + const _errs92 = errors; + if (errors === _errs92) { + if (Array.isArray(data38)) { var valid22 = true; - const len5 = data36.length; + const len5 = data38.length; for (let i5 = 0; i5 < len5; i5++) { - let data37 = data36[i5]; - const _errs90 = errors; - if (errors === _errs90) { + let data39 = data38[i5]; + const _errs94 = errors; + if (errors === _errs94) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.start !== undefined) { - let data38 = data37.start; - const _errs92 = errors; - if (errors === _errs92) { - if (errors === _errs92) { - if (typeof data38 === 'string') { - if (!formats22.validate(data38)) { - const err51 = { + if (data39.start !== undefined) { + let data40 = data39.start; + const _errs96 = errors; + if (errors === _errs96) { + if (errors === _errs96) { + if (typeof data40 === 'string') { + if (!formats26.validate(data40)) { + const err55 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -80915,17 +84319,17 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -80946,30 +84350,30 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.start, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid23 = _errs92 === errors; + var valid23 = _errs96 === errors; } else { var valid23 = true; } if (valid23) { - if (data37.end !== undefined) { - let data39 = data37.end; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data39 === 'string') { - if (!formats22.validate(data39)) { - const err53 = { + if (data39.end !== undefined) { + let data41 = data39.end; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data41 === 'string') { + if (!formats26.validate(data41)) { + const err57 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -80989,17 +84393,17 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -81020,24 +84424,24 @@ function validate117( .anyOf[1].allOf[1].properties .announcedAvailability.items .properties.end, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid23 = _errs94 === errors; + var valid23 = _errs98 === errors; } else { var valid23 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/device/announcedAvailability/' + @@ -81055,23 +84459,23 @@ function validate117( schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.announcedAvailability .items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid22 = _errs90 === errors; + var valid22 = _errs94 === errors; if (!valid22) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/device/announcedAvailability', schemaPath: @@ -81085,29 +84489,29 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1].allOf[1] .properties.announcedAvailability, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid21 = _errs88 === errors; + var valid21 = _errs92 === errors; } else { var valid21 = true; } if (valid21) { if (data4.experiment !== undefined) { - let data40 = data4.experiment; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err57 = { + let data42 = data4.experiment; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err61 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/format', @@ -81118,17 +84522,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/device/experiment', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/experiment/type', @@ -81141,46 +84545,46 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.experiment, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid21 = _errs96 === errors; + var valid21 = _errs100 === errors; } else { var valid21 = true; } if (valid21) { if (data4.services !== undefined) { - let data41 = data4.services; - const _errs98 = errors; - if (errors === _errs98) { - if (Array.isArray(data41)) { + let data43 = data4.services; + const _errs102 = errors; + if (errors === _errs102) { + if (Array.isArray(data43)) { var valid24 = true; - const len6 = data41.length; + const len6 = data43.length; for (let i6 = 0; i6 < len6; i6++) { - let data42 = data41[i6]; - const _errs100 = errors; - if (errors === _errs100) { + let data44 = data43[i6]; + const _errs104 = errors; + if (errors === _errs104) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { - if (data42.serviceType !== undefined) { - let data43 = data42.serviceType; - const _errs103 = errors; - if (errors === _errs103) { - if (errors === _errs103) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err59 = { + if (data44.serviceType !== undefined) { + let data45 = data44.serviceType; + const _errs107 = errors; + if (errors === _errs107) { + if (errors === _errs107) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err63 = { instancePath: instancePath + '/device/services/' + @@ -81200,17 +84604,17 @@ function validate117( .device.anyOf[1].allOf[1] .properties.services.items .properties.serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/device/services/' + @@ -81231,27 +84635,27 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceType, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid25 = _errs103 === errors; + var valid25 = _errs107 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceId !== undefined) { - let data44 = data42.serviceId; - const _errs105 = errors; - if (typeof data44 !== 'string') { - const err61 = { + if (data44.serviceId !== undefined) { + let data46 = data44.serviceId; + const _errs109 = errors; + if (typeof data46 !== 'string') { + const err65 = { instancePath: instancePath + '/device/services/' + @@ -81272,25 +84676,25 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceId, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid25 = _errs105 === errors; + var valid25 = _errs109 === errors; } else { var valid25 = true; } if (valid25) { - if (data42.serviceDirection !== undefined) { - let data45 = data42.serviceDirection; - const _errs107 = errors; - if (typeof data45 !== 'string') { - const err62 = { + if (data44.serviceDirection !== undefined) { + let data47 = data44.serviceDirection; + const _errs111 = errors; + if (typeof data47 !== 'string') { + const err66 = { instancePath: instancePath + '/device/services/' + @@ -81311,23 +84715,23 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data45 === 'consumer' || - data45 === 'producer' || - data45 === 'prosumer' + data47 === 'consumer' || + data47 === 'producer' || + data47 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/device/services/' + @@ -81356,23 +84760,23 @@ function validate117( .anyOf[1].allOf[1].properties .services.items.properties .serviceDirection, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid25 = _errs107 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/device/services/' + i6, schemaPath: @@ -81388,23 +84792,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[1].allOf[1].properties.services .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid24 = _errs100 === errors; + var valid24 = _errs104 === errors; if (!valid24) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/properties/services/type', @@ -81417,17 +84821,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[1] .allOf[1].properties.services, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs98 === errors; + var valid21 = _errs102 === errors; } else { var valid21 = true; } @@ -81436,7 +84840,7 @@ function validate117( } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/1/allOf/1/type', keyword: 'type', @@ -81449,30 +84853,32 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid15 = _errs83 === errors; + var valid15 = _errs87 === errors; } - var _valid0 = _errs58 === errors; + var _valid0 = _errs60 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs109 = errors; - const _errs110 = errors; - if (errors === _errs110) { + const _errs113 = errors; + const _errs114 = errors; + if (errors === _errs114) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing9; if ( (data4.url === undefined && (missing9 = 'url')) || (data4.type === undefined && (missing9 = 'type')) || (data4.name === undefined && (missing9 = 'name')) || - (data4.isPublic === undefined && (missing9 = 'isPublic')) + (data4.isPublic === undefined && (missing9 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing9 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/required', @@ -81487,20 +84893,20 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data4.url !== undefined) { - let data46 = data4.url; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data46 === 'string') { - if (!formats0(data46)) { - const err68 = { + let data48 = data4.url; + const _errs116 = errors; + if (errors === _errs116) { + if (errors === _errs116) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err72 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/format', @@ -81511,17 +84917,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/url/type', @@ -81534,27 +84940,27 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[0] .properties.url, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs116 === errors; } else { var valid27 = true; } if (valid27) { if (data4.name !== undefined) { - let data47 = data4.name; - const _errs114 = errors; - if (typeof data47 !== 'string') { - const err70 = { + let data49 = data4.name; + const _errs118 = errors; + if (typeof data49 !== 'string') { + const err74 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/name/type', @@ -81567,25 +84973,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[0] .properties.name, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { if (data4.description !== undefined) { - let data48 = data4.description; - const _errs116 = errors; - if (typeof data48 !== 'string') { - const err71 = { + let data50 = data4.description; + const _errs120 = errors; + if (typeof data50 !== 'string') { + const err75 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/description/type', @@ -81598,25 +85004,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[0] .properties.description, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { if (data4.type !== undefined) { - let data49 = data4.type; - const _errs118 = errors; - if (typeof data49 !== 'string') { - const err72 = { + let data51 = data4.type; + const _errs122 = errors; + if (typeof data51 !== 'string') { + const err76 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/type', @@ -81629,24 +85035,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data49 === 'device' || - data49 === 'group' || - data49 === 'edge instantiable' || - data49 === 'cloud instantiable' + data51 === 'device' || + data51 === 'group' || + data51 === 'edge instantiable' || + data51 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/type/enum', @@ -81663,25 +85069,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.type, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid27 = _errs118 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } if (valid27) { if (data4.isPublic !== undefined) { - let data50 = data4.isPublic; - const _errs120 = errors; - if (typeof data50 !== 'boolean') { - const err74 = { + let data52 = data4.isPublic; + const _errs124 = errors; + if (typeof data52 !== 'boolean') { + const err78 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/isPublic/type', @@ -81694,42 +85100,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.isPublic, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs124 === errors; } else { var valid27 = true; } if (valid27) { if (data4.viewer !== undefined) { - let data51 = data4.viewer; - const _errs122 = errors; - if (errors === _errs122) { - if (Array.isArray(data51)) { + let data53 = data4.viewer; + const _errs126 = errors; + if (errors === _errs126) { + if (Array.isArray(data53)) { var valid28 = true; - const len7 = data51.length; + const len7 = data53.length; for (let i7 = 0; i7 < len7; i7++) { - let data52 = data51[i7]; - const _errs124 = errors; - if (errors === _errs124) { + let data54 = data53[i7]; + const _errs128 = errors; + if (errors === _errs128) { if ( - data52 && - typeof data52 == 'object' && - !Array.isArray(data52) + data54 && + typeof data54 == 'object' && + !Array.isArray(data54) ) { let missing10; if ( - data52.url === undefined && + data54.url === undefined && (missing10 = 'url') ) { - const err75 = { + const err79 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -81748,23 +85154,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data52.url !== undefined) { - let data53 = data52.url; - const _errs126 = errors; - if (errors === _errs126) { - if (errors === _errs126) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err76 = { + if (data54.url !== undefined) { + let data55 = data54.url; + const _errs130 = errors; + if (errors === _errs130) { + if (errors === _errs130) { + if (typeof data55 === 'string') { + if (!formats0(data55)) { + const err80 = { instancePath: instancePath + '/device/viewer/' + @@ -81785,17 +85191,17 @@ function validate117( .anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/device/viewer/' + @@ -81816,12 +85222,12 @@ function validate117( .device.anyOf[2].allOf[0] .properties.viewer.items .properties.url, - data: data53, + data: data55, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -81830,7 +85236,7 @@ function validate117( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/device/viewer/' + i7, schemaPath: @@ -81846,23 +85252,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.viewer .items, - data: data52, + data: data54, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid28 = _errs124 === errors; + var valid28 = _errs128 === errors; if (!valid28) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/viewer/type', @@ -81875,43 +85281,43 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[0].properties.viewer, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid27 = _errs122 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data4.owner !== undefined) { - let data54 = data4.owner; - const _errs128 = errors; - if (errors === _errs128) { - if (Array.isArray(data54)) { + let data56 = data4.owner; + const _errs132 = errors; + if (errors === _errs132) { + if (Array.isArray(data56)) { var valid30 = true; - const len8 = data54.length; + const len8 = data56.length; for (let i8 = 0; i8 < len8; i8++) { - let data55 = data54[i8]; - const _errs130 = errors; - if (errors === _errs130) { + let data57 = data56[i8]; + const _errs134 = errors; + if (errors === _errs134) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data57 && + typeof data57 == 'object' && + !Array.isArray(data57) ) { let missing11; if ( - data55.url === undefined && + data57.url === undefined && (missing11 = 'url') ) { - const err80 = { + const err84 = { instancePath: instancePath + '/device/owner/' + @@ -81934,23 +85340,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties .owner.items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data55.url !== undefined) { - let data56 = data55.url; - const _errs132 = errors; - if (errors === _errs132) { - if (errors === _errs132) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err81 = { + if (data57.url !== undefined) { + let data58 = data57.url; + const _errs136 = errors; + if (errors === _errs136) { + if (errors === _errs136) { + if (typeof data58 === 'string') { + if (!formats0(data58)) { + const err85 = { instancePath: instancePath + '/device/owner/' + @@ -81971,17 +85377,17 @@ function validate117( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/device/owner/' + @@ -82004,12 +85410,12 @@ function validate117( .anyOf[2].allOf[0] .properties.owner.items .properties.url, - data: data56, + data: data58, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -82018,7 +85424,7 @@ function validate117( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/device/owner/' + i8, schemaPath: @@ -82034,23 +85440,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner .items, - data: data55, + data: data57, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid30 = _errs130 === errors; + var valid30 = _errs134 === errors; if (!valid30) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/device/owner', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/owner/type', @@ -82063,20 +85469,86 @@ function validate117( parentSchema: schema102.allOf[1].properties.device .anyOf[2].allOf[0].properties.owner, - data: data54, + data: data56, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid27 = _errs128 === errors; + var valid27 = _errs132 === errors; } else { var valid27 = true; } + if (valid27) { + if (data4.bookingEndpoint !== undefined) { + let data59 = data4.bookingEndpoint; + const _errs138 = errors; + if (errors === _errs138) { + if (errors === _errs138) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err89 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data59, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid27 = _errs138 === errors; + } else { + var valid27 = true; + } + } } } } @@ -82085,7 +85557,7 @@ function validate117( } } } else { - const err85 = { + const err91 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/0/type', keyword: 'type', @@ -82098,23 +85570,23 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid26 = _errs110 === errors; + var valid26 = _errs114 === errors; if (valid26) { - const _errs134 = errors; - if (errors === _errs134) { + const _errs140 = errors; + if (errors === _errs140) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { if (data4.type !== undefined) { - let data57 = data4.type; - const _errs136 = errors; - if ('edge instantiable' !== data57) { - const err86 = { + let data60 = data4.type; + const _errs142 = errors; + if ('edge instantiable' !== data60) { + const err92 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/type/const', @@ -82125,28 +85597,28 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2].allOf[1] .properties.type, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid32 = _errs136 === errors; + var valid32 = _errs142 === errors; } else { var valid32 = true; } if (valid32) { if (data4.codeUrl !== undefined) { - let data58 = data4.codeUrl; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data58 === 'string') { - if (!formats0(data58)) { - const err87 = { + let data61 = data4.codeUrl; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data61 === 'string') { + if (!formats0(data61)) { + const err93 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/format', @@ -82157,17 +85629,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/device/codeUrl', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/codeUrl/type', @@ -82180,46 +85652,46 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.codeUrl, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; } else { var valid32 = true; } if (valid32) { if (data4.services !== undefined) { - let data59 = data4.services; - const _errs139 = errors; - if (errors === _errs139) { - if (Array.isArray(data59)) { + let data62 = data4.services; + const _errs145 = errors; + if (errors === _errs145) { + if (Array.isArray(data62)) { var valid33 = true; - const len9 = data59.length; + const len9 = data62.length; for (let i9 = 0; i9 < len9; i9++) { - let data60 = data59[i9]; - const _errs141 = errors; - if (errors === _errs141) { + let data63 = data62[i9]; + const _errs147 = errors; + if (errors === _errs147) { if ( - data60 && - typeof data60 == 'object' && - !Array.isArray(data60) + data63 && + typeof data63 == 'object' && + !Array.isArray(data63) ) { - if (data60.serviceType !== undefined) { - let data61 = data60.serviceType; - const _errs144 = errors; - if (errors === _errs144) { - if (errors === _errs144) { - if (typeof data61 === 'string') { - if (!formats0(data61)) { - const err89 = { + if (data63.serviceType !== undefined) { + let data64 = data63.serviceType; + const _errs150 = errors; + if (errors === _errs150) { + if (errors === _errs150) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err95 = { instancePath: instancePath + '/device/services/' + @@ -82237,17 +85709,17 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/device/services/' + @@ -82268,27 +85740,27 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceType, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid34 = _errs144 === errors; + var valid34 = _errs150 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceId !== undefined) { - let data62 = data60.serviceId; - const _errs146 = errors; - if (typeof data62 !== 'string') { - const err91 = { + if (data63.serviceId !== undefined) { + let data65 = data63.serviceId; + const _errs152 = errors; + if (typeof data65 !== 'string') { + const err97 = { instancePath: instancePath + '/device/services/' + @@ -82307,25 +85779,25 @@ function validate117( schema102.allOf[1].properties.device .anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid34 = _errs146 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } if (valid34) { - if (data60.serviceDirection !== undefined) { - let data63 = data60.serviceDirection; - const _errs148 = errors; - if (typeof data63 !== 'string') { - const err92 = { + if (data63.serviceDirection !== undefined) { + let data66 = data63.serviceDirection; + const _errs154 = errors; + if (typeof data66 !== 'string') { + const err98 = { instancePath: instancePath + '/device/services/' + @@ -82346,23 +85818,23 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data63 === 'consumer' || - data63 === 'producer' || - data63 === 'prosumer' + data66 === 'consumer' || + data66 === 'producer' || + data66 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/device/services/' + @@ -82390,23 +85862,23 @@ function validate117( .anyOf[2].allOf[1].properties .services.items.properties .serviceDirection, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid34 = _errs148 === errors; + var valid34 = _errs154 === errors; } else { var valid34 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/device/services/' + i9, schemaPath: @@ -82420,23 +85892,23 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services.items, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid33 = _errs141 === errors; + var valid33 = _errs147 === errors; if (!valid33) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/device/services', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/properties/services/type', @@ -82449,24 +85921,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[2] .allOf[1].properties.services, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid32 = _errs139 === errors; + var valid32 = _errs145 === errors; } else { var valid32 = true; } } } } else { - const err96 = { + const err102 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/2/allOf/1/type', keyword: 'type', @@ -82479,30 +85951,32 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid26 = _errs134 === errors; + var valid26 = _errs140 === errors; } - var _valid0 = _errs109 === errors; + var _valid0 = _errs113 === errors; valid5 = valid5 || _valid0; if (!valid5) { - const _errs150 = errors; - const _errs151 = errors; - if (errors === _errs151) { + const _errs156 = errors; + const _errs157 = errors; + if (errors === _errs157) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing12; if ( (data4.url === undefined && (missing12 = 'url')) || (data4.type === undefined && (missing12 = 'type')) || (data4.name === undefined && (missing12 = 'name')) || - (data4.isPublic === undefined && (missing12 = 'isPublic')) + (data4.isPublic === undefined && (missing12 = 'isPublic')) || + (data4.bookingEndpoint === undefined && + (missing12 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/required', @@ -82517,20 +85991,20 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data4.url !== undefined) { - let data64 = data4.url; - const _errs153 = errors; - if (errors === _errs153) { - if (errors === _errs153) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err98 = { + let data67 = data4.url; + const _errs159 = errors; + if (errors === _errs159) { + if (errors === _errs159) { + if (typeof data67 === 'string') { + if (!formats0(data67)) { + const err104 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/format', @@ -82541,17 +86015,17 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/device/url', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/url/type', @@ -82564,27 +86038,27 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.url, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid36 = _errs153 === errors; + var valid36 = _errs159 === errors; } else { var valid36 = true; } if (valid36) { if (data4.name !== undefined) { - let data65 = data4.name; - const _errs155 = errors; - if (typeof data65 !== 'string') { - const err100 = { + let data68 = data4.name; + const _errs161 = errors; + if (typeof data68 !== 'string') { + const err106 = { instancePath: instancePath + '/device/name', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/name/type', @@ -82597,25 +86071,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3].allOf[0] .properties.name, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid36 = _errs155 === errors; + var valid36 = _errs161 === errors; } else { var valid36 = true; } if (valid36) { if (data4.description !== undefined) { - let data66 = data4.description; - const _errs157 = errors; - if (typeof data66 !== 'string') { - const err101 = { + let data69 = data4.description; + const _errs163 = errors; + if (typeof data69 !== 'string') { + const err107 = { instancePath: instancePath + '/device/description', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/description/type', @@ -82628,25 +86102,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.description, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid36 = _errs157 === errors; + var valid36 = _errs163 === errors; } else { var valid36 = true; } if (valid36) { if (data4.type !== undefined) { - let data67 = data4.type; - const _errs159 = errors; - if (typeof data67 !== 'string') { - const err102 = { + let data70 = data4.type; + const _errs165 = errors; + if (typeof data70 !== 'string') { + const err108 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/type', @@ -82659,24 +86133,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data67 === 'device' || - data67 === 'group' || - data67 === 'edge instantiable' || - data67 === 'cloud instantiable' + data70 === 'device' || + data70 === 'group' || + data70 === 'edge instantiable' || + data70 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/type/enum', @@ -82694,25 +86168,25 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.type, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid36 = _errs159 === errors; + var valid36 = _errs165 === errors; } else { var valid36 = true; } if (valid36) { if (data4.isPublic !== undefined) { - let data68 = data4.isPublic; - const _errs161 = errors; - if (typeof data68 !== 'boolean') { - const err104 = { + let data71 = data4.isPublic; + const _errs167 = errors; + if (typeof data71 !== 'boolean') { + const err110 = { instancePath: instancePath + '/device/isPublic', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/isPublic/type', @@ -82725,42 +86199,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[0].properties.isPublic, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs167 === errors; } else { var valid36 = true; } if (valid36) { if (data4.viewer !== undefined) { - let data69 = data4.viewer; - const _errs163 = errors; - if (errors === _errs163) { - if (Array.isArray(data69)) { + let data72 = data4.viewer; + const _errs169 = errors; + if (errors === _errs169) { + if (Array.isArray(data72)) { var valid37 = true; - const len10 = data69.length; + const len10 = data72.length; for (let i10 = 0; i10 < len10; i10++) { - let data70 = data69[i10]; - const _errs165 = errors; - if (errors === _errs165) { + let data73 = data72[i10]; + const _errs171 = errors; + if (errors === _errs171) { if ( - data70 && - typeof data70 == 'object' && - !Array.isArray(data70) + data73 && + typeof data73 == 'object' && + !Array.isArray(data73) ) { let missing13; if ( - data70.url === undefined && + data73.url === undefined && (missing13 = 'url') ) { - const err105 = { + const err111 = { instancePath: instancePath + '/device/viewer/' + @@ -82783,23 +86257,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties .viewer.items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data70.url !== undefined) { - let data71 = data70.url; - const _errs167 = errors; - if (errors === _errs167) { - if (errors === _errs167) { - if (typeof data71 === 'string') { - if (!formats0(data71)) { - const err106 = { + if (data73.url !== undefined) { + let data74 = data73.url; + const _errs173 = errors; + if (errors === _errs173) { + if (errors === _errs173) { + if (typeof data74 === 'string') { + if (!formats0(data74)) { + const err112 = { instancePath: instancePath + '/device/viewer/' + @@ -82820,17 +86294,17 @@ function validate117( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/device/viewer/' + @@ -82853,12 +86327,12 @@ function validate117( .anyOf[3].allOf[0] .properties.viewer.items .properties.url, - data: data71, + data: data74, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -82867,7 +86341,7 @@ function validate117( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/device/viewer/' + @@ -82885,23 +86359,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer .items, - data: data70, + data: data73, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid37 = _errs165 === errors; + var valid37 = _errs171 === errors; if (!valid37) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/device/viewer', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/viewer/type', @@ -82914,43 +86388,43 @@ function validate117( parentSchema: schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties.viewer, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid36 = _errs163 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data4.owner !== undefined) { - let data72 = data4.owner; - const _errs169 = errors; - if (errors === _errs169) { - if (Array.isArray(data72)) { + let data75 = data4.owner; + const _errs175 = errors; + if (errors === _errs175) { + if (Array.isArray(data75)) { var valid39 = true; - const len11 = data72.length; + const len11 = data75.length; for (let i11 = 0; i11 < len11; i11++) { - let data73 = data72[i11]; - const _errs171 = errors; - if (errors === _errs171) { + let data76 = data75[i11]; + const _errs177 = errors; + if (errors === _errs177) { if ( - data73 && - typeof data73 == 'object' && - !Array.isArray(data73) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing14; if ( - data73.url === undefined && + data76.url === undefined && (missing14 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/device/owner/' + @@ -82974,25 +86448,25 @@ function validate117( schema102.allOf[1].properties .device.anyOf[3].allOf[0] .properties.owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data73.url !== undefined) { - let data74 = data73.url; - const _errs173 = errors; - if (errors === _errs173) { - if (errors === _errs173) { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs179 = errors; + if (errors === _errs179) { + if (errors === _errs179) { if ( - typeof data74 === 'string' + typeof data77 === 'string' ) { - if (!formats0(data74)) { - const err111 = { + if (!formats0(data77)) { + const err117 = { instancePath: instancePath + '/device/owner/' + @@ -83013,17 +86487,17 @@ function validate117( .anyOf[3].allOf[0] .properties.owner .items.properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/device/owner/' + @@ -83046,12 +86520,12 @@ function validate117( .anyOf[3].allOf[0] .properties.owner.items .properties.url, - data: data74, + data: data77, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -83060,7 +86534,7 @@ function validate117( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/device/owner/' + @@ -83078,23 +86552,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties .owner.items, - data: data73, + data: data76, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid39 = _errs171 === errors; + var valid39 = _errs177 === errors; if (!valid39) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/device/owner', schemaPath: @@ -83109,20 +86583,86 @@ function validate117( parentSchema: schema102.allOf[1].properties.device .anyOf[3].allOf[0].properties.owner, - data: data72, + data: data75, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid36 = _errs169 === errors; + var valid36 = _errs175 === errors; } else { var valid36 = true; } + if (valid36) { + if (data4.bookingEndpoint !== undefined) { + let data78 = data4.bookingEndpoint; + const _errs181 = errors; + if (errors === _errs181) { + if (errors === _errs181) { + if (typeof data78 === 'string') { + if (!formats0(data78)) { + const err121 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: + 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema102.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: + instancePath + + '/device/bookingEndpoint', + schemaPath: + '#/allOf/1/properties/device/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema102.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema102.allOf[1].properties.device + .anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data78, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid36 = _errs181 === errors; + } else { + var valid36 = true; + } + } } } } @@ -83131,7 +86671,7 @@ function validate117( } } } else { - const err115 = { + const err123 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/0/type', keyword: 'type', @@ -83144,21 +86684,21 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid35 = _errs151 === errors; + var valid35 = _errs157 === errors; if (valid35) { - const _errs175 = errors; - if (errors === _errs175) { + const _errs183 = errors; + if (errors === _errs183) { if (data4 && typeof data4 == 'object' && !Array.isArray(data4)) { let missing15; if (data4.devices === undefined && (missing15 = 'devices')) { - const err116 = { + const err124 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/required', @@ -83173,17 +86713,17 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data4.type !== undefined) { - let data75 = data4.type; - const _errs177 = errors; - if ('group' !== data75) { - const err117 = { + let data79 = data4.type; + const _errs185 = errors; + if ('group' !== data79) { + const err125 = { instancePath: instancePath + '/device/type', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/type/const', @@ -83194,42 +86734,42 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3].allOf[1] .properties.type, - data: data75, + data: data79, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid41 = _errs177 === errors; + var valid41 = _errs185 === errors; } else { var valid41 = true; } if (valid41) { if (data4.devices !== undefined) { - let data76 = data4.devices; - const _errs178 = errors; - if (errors === _errs178) { - if (Array.isArray(data76)) { + let data80 = data4.devices; + const _errs186 = errors; + if (errors === _errs186) { + if (Array.isArray(data80)) { var valid42 = true; - const len12 = data76.length; + const len12 = data80.length; for (let i12 = 0; i12 < len12; i12++) { - let data77 = data76[i12]; - const _errs180 = errors; - if (errors === _errs180) { + let data81 = data80[i12]; + const _errs188 = errors; + if (errors === _errs188) { if ( - data77 && - typeof data77 == 'object' && - !Array.isArray(data77) + data81 && + typeof data81 == 'object' && + !Array.isArray(data81) ) { let missing16; if ( - data77.url === undefined && + data81.url === undefined && (missing16 = 'url') ) { - const err118 = { + const err126 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -83248,23 +86788,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data77.url !== undefined) { - let data78 = data77.url; - const _errs182 = errors; - if (errors === _errs182) { - if (errors === _errs182) { - if (typeof data78 === 'string') { - if (!formats0(data78)) { - const err119 = { + if (data81.url !== undefined) { + let data82 = data81.url; + const _errs190 = errors; + if (errors === _errs190) { + if (errors === _errs190) { + if (typeof data82 === 'string') { + if (!formats0(data82)) { + const err127 = { instancePath: instancePath + '/device/devices/' + @@ -83284,17 +86824,17 @@ function validate117( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/device/devices/' + @@ -83315,12 +86855,12 @@ function validate117( .device.anyOf[3].allOf[1] .properties.devices.items .properties.url, - data: data78, + data: data82, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -83329,7 +86869,7 @@ function validate117( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/device/devices/' + i12, schemaPath: @@ -83345,23 +86885,23 @@ function validate117( schema102.allOf[1].properties.device .anyOf[3].allOf[1].properties.devices .items, - data: data77, + data: data81, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid42 = _errs180 === errors; + var valid42 = _errs188 === errors; if (!valid42) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/device/devices', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/properties/devices/type', @@ -83374,24 +86914,24 @@ function validate117( parentSchema: schema102.allOf[1].properties.device.anyOf[3] .allOf[1].properties.devices, - data: data76, + data: data80, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid41 = _errs178 === errors; + var valid41 = _errs186 === errors; } else { var valid41 = true; } } } } else { - const err123 = { + const err131 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf/3/allOf/1/type', @@ -83405,22 +86945,22 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid35 = _errs175 === errors; + var valid35 = _errs183 === errors; } - var _valid0 = _errs150 === errors; + var _valid0 = _errs156 === errors; valid5 = valid5 || _valid0; } } } if (!valid5) { - const err124 = { + const err132 = { instancePath: instancePath + '/device', schemaPath: '#/allOf/1/properties/device/anyOf', keyword: 'anyOf', @@ -83431,9 +86971,9 @@ function validate117( data: data4, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate117.errors = vErrors; @@ -97456,7 +100996,7 @@ function validate130( if (errors === _errs3) { if (errors === _errs3) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate130.errors = [ { instancePath: instancePath + '/start', @@ -97499,7 +101039,7 @@ function validate130( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate130.errors = [ { instancePath: instancePath + '/end', @@ -97659,7 +101199,7 @@ function validate130( if (errors === _errs15) { if (errors === _errs15) { if (typeof data5 === 'string') { - if (!formats22.validate(data5)) { + if (!formats26.validate(data5)) { validate130.errors = [ { instancePath: instancePath + '/repeat/until', @@ -97853,7 +101393,7 @@ function validate131( if (errors === _errs3) { if (errors === _errs3) { if (typeof data0 === 'string') { - if (!formats22.validate(data0)) { + if (!formats26.validate(data0)) { validate131.errors = [ { instancePath: instancePath + '/start', @@ -97896,7 +101436,7 @@ function validate131( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate131.errors = [ { instancePath: instancePath + '/end', @@ -98056,7 +101596,7 @@ function validate131( if (errors === _errs15) { if (errors === _errs15) { if (typeof data5 === 'string') { - if (!formats22.validate(data5)) { + if (!formats26.validate(data5)) { validate131.errors = [ { instancePath: instancePath + '/repeat/until', @@ -110459,7 +113999,7 @@ function validate164( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate164.errors = [ { instancePath, @@ -110512,7 +114052,7 @@ function validate165( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate165.errors = [ { instancePath, @@ -110631,7 +114171,7 @@ function validate168( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate168.errors = [ { instancePath, @@ -110684,7 +114224,7 @@ function validate169( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate169.errors = [ { instancePath, @@ -110737,7 +114277,7 @@ function validate170( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate170.errors = [ { instancePath, @@ -110790,7 +114330,7 @@ function validate171( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats22.validate(data)) { + if (!formats26.validate(data)) { validate171.errors = [ { instancePath, @@ -111055,7 +114595,7 @@ function validate176( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate176.errors = [ { instancePath, @@ -111108,7 +114648,7 @@ function validate177( if (errors === 0) { if (errors === 0) { if (typeof data === 'string') { - if (!formats258.test(data)) { + if (!formats284.test(data)) { validate177.errors = [ { instancePath, @@ -111294,8 +114834,13 @@ const schema165 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, 'x-standalone': false, @@ -111323,7 +114868,8 @@ function validate180( if ( (data0.type === undefined && (missing0 = 'type')) || (data0.name === undefined && (missing0 = 'name')) || - (data0.isPublic === undefined && (missing0 = 'isPublic')) + (data0.isPublic === undefined && (missing0 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate180.errors = [ { @@ -111744,6 +115290,57 @@ function validate180( } else { var valid1 = true; } + if (valid1) { + if (data0.bookingEndpoint !== undefined) { + let data11 = data0.bookingEndpoint; + const _errs23 = errors; + if (errors === _errs23) { + if (errors === _errs23) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate180.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema165.items.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate180.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema165.items.properties.bookingEndpoint.type, + parentSchema: + schema165.items.properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid1 = _errs23 === errors; + } else { + var valid1 = true; + } + } } } } @@ -111841,8 +115438,13 @@ const schema166 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, 'x-standalone': false, @@ -111871,7 +115473,8 @@ function validate181( (data0.url === undefined && (missing0 = 'url')) || (data0.type === undefined && (missing0 = 'type')) || (data0.name === undefined && (missing0 = 'name')) || - (data0.isPublic === undefined && (missing0 = 'isPublic')) + (data0.isPublic === undefined && (missing0 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { validate181.errors = [ { @@ -112344,6 +115947,57 @@ function validate181( } else { var valid1 = true; } + if (valid1) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs25 = errors; + if (errors === _errs25) { + if (errors === _errs25) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate181.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema166.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate181.errors = [ + { + instancePath: + instancePath + '/' + i0 + '/bookingEndpoint', + schemaPath: + '#/items/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema166.items.properties.bookingEndpoint.type, + parentSchema: + schema166.items.properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid1 = _errs25 === errors; + } else { + var valid1 = true; + } + } } } } @@ -112440,8 +116094,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112515,8 +116174,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112590,8 +116254,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112665,8 +116334,13 @@ const schema167 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -112718,7 +116392,8 @@ function validate182( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -113160,6 +116835,62 @@ function validate182( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema167.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -113167,7 +116898,7 @@ function validate182( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -113178,23 +116909,23 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -113202,28 +116933,28 @@ function validate182( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema167.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -113231,17 +116962,17 @@ function validate182( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema167.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -113249,42 +116980,42 @@ function validate182( message: 'must be string', schema: schema167.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema167.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -113296,17 +117027,17 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -113320,27 +117051,27 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -113354,25 +117085,25 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -113389,23 +117120,23 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -113426,23 +117157,23 @@ function validate182( parentSchema: schema167.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -113452,23 +117183,23 @@ function validate182( schema167.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema167.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -113476,24 +117207,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[0].allOf[1].properties.services.type, parentSchema: schema167.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -113504,29 +117235,30 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -113537,17 +117269,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -113555,25 +117287,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[0].properties.name.type, parentSchema: schema167.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -113581,25 +117313,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[0].properties.description.type, parentSchema: schema167.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -113607,24 +117339,24 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[0].properties.type.type, parentSchema: schema167.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -113634,25 +117366,25 @@ function validate182( message: 'must be equal to one of the allowed values', schema: schema167.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema167.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -113660,39 +117392,39 @@ function validate182( message: 'must be boolean', schema: schema167.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema167.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -113705,23 +117437,23 @@ function validate182( .required, parentSchema: schema167.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -113733,17 +117465,17 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -113757,12 +117489,12 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -113771,7 +117503,7 @@ function validate182( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -113783,23 +117515,23 @@ function validate182( .type, parentSchema: schema167.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -113807,40 +117539,40 @@ function validate182( message: 'must be array', schema: schema167.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema167.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -113853,23 +117585,23 @@ function validate182( .required, parentSchema: schema167.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -113882,17 +117614,17 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -113906,12 +117638,12 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -113920,7 +117652,7 @@ function validate182( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -113932,23 +117664,23 @@ function validate182( .type, parentSchema: schema167.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -113956,20 +117688,77 @@ function validate182( message: 'must be array', schema: schema167.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema167.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema167.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -113977,7 +117766,7 @@ function validate182( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -113988,23 +117777,23 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -114012,28 +117801,28 @@ function validate182( message: 'must be equal to constant', schema: 'device', parentSchema: schema167.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -114041,17 +117830,17 @@ function validate182( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema167.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -114059,46 +117848,46 @@ function validate182( message: 'must be string', schema: schema167.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema167.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -114110,17 +117899,17 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -114134,27 +117923,27 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -114168,25 +117957,25 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -114203,23 +117992,23 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -114240,23 +118029,23 @@ function validate182( parentSchema: schema167.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -114267,23 +118056,23 @@ function validate182( schema167.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema167.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -114291,24 +118080,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[1].allOf[1].properties.services.type, parentSchema: schema167.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -114319,29 +118108,30 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -114352,17 +118142,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -114370,25 +118160,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[0].properties.name.type, parentSchema: schema167.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -114396,25 +118186,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[0].properties.description.type, parentSchema: schema167.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -114422,24 +118212,24 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[0].properties.type.type, parentSchema: schema167.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -114449,25 +118239,25 @@ function validate182( message: 'must be equal to one of the allowed values', schema: schema167.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema167.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -114475,39 +118265,39 @@ function validate182( message: 'must be boolean', schema: schema167.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema167.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -114520,23 +118310,23 @@ function validate182( .required, parentSchema: schema167.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -114549,17 +118339,17 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -114573,12 +118363,12 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -114587,7 +118377,7 @@ function validate182( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -114599,23 +118389,23 @@ function validate182( .type, parentSchema: schema167.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -114623,40 +118413,40 @@ function validate182( message: 'must be array', schema: schema167.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema167.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -114670,23 +118460,23 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -114699,17 +118489,17 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -114723,12 +118513,12 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -114737,7 +118527,7 @@ function validate182( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -114749,23 +118539,23 @@ function validate182( .type, parentSchema: schema167.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -114773,20 +118563,78 @@ function validate182( message: 'must be array', schema: schema167.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema167.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema167.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -114794,7 +118642,7 @@ function validate182( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -114805,23 +118653,23 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -114829,28 +118677,28 @@ function validate182( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema167.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -114858,17 +118706,17 @@ function validate182( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema167.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -114876,46 +118724,46 @@ function validate182( message: 'must be string', schema: schema167.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema167.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -114930,17 +118778,17 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -114954,27 +118802,27 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -114988,25 +118836,25 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -115023,23 +118871,23 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -115061,23 +118909,23 @@ function validate182( parentSchema: schema167.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -115089,23 +118937,23 @@ function validate182( .type, parentSchema: schema167.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -115113,24 +118961,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[2].allOf[1].properties.services.type, parentSchema: schema167.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -115141,29 +118989,30 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -115174,17 +119023,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -115192,25 +119041,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[3].allOf[0].properties.name.type, parentSchema: schema167.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -115218,25 +119067,25 @@ function validate182( message: 'must be string', schema: schema167.anyOf[3].allOf[0].properties.description.type, parentSchema: schema167.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -115244,24 +119093,24 @@ function validate182( message: 'must be string', schema: schema167.anyOf[3].allOf[0].properties.type.type, parentSchema: schema167.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -115271,25 +119120,25 @@ function validate182( message: 'must be equal to one of the allowed values', schema: schema167.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema167.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -115297,39 +119146,39 @@ function validate182( message: 'must be boolean', schema: schema167.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema167.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -115343,23 +119192,23 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -115372,17 +119221,17 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -115396,12 +119245,12 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -115410,7 +119259,7 @@ function validate182( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -115422,23 +119271,23 @@ function validate182( .type, parentSchema: schema167.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -115446,40 +119295,40 @@ function validate182( message: 'must be array', schema: schema167.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema167.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -115495,23 +119344,23 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -115527,17 +119376,17 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -115551,12 +119400,12 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -115565,7 +119414,7 @@ function validate182( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -115578,23 +119427,23 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -115603,20 +119452,78 @@ function validate182( schema: schema167.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema167.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema167.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema167.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema167.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -115624,7 +119531,7 @@ function validate182( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -115635,21 +119542,21 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -115660,17 +119567,17 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -115678,39 +119585,39 @@ function validate182( message: 'must be equal to constant', schema: 'group', parentSchema: schema167.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -115723,23 +119630,23 @@ function validate182( .required, parentSchema: schema167.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -115751,17 +119658,17 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -115775,12 +119682,12 @@ function validate182( parentSchema: schema167.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -115789,7 +119696,7 @@ function validate182( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -115801,23 +119708,23 @@ function validate182( .type, parentSchema: schema167.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -115825,24 +119732,24 @@ function validate182( message: 'must be array', schema: schema167.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema167.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -115853,22 +119760,22 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -115879,9 +119786,9 @@ function validate182( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate182.errors = vErrors; @@ -115954,117 +119861,127 @@ const schema168 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -116137,8 +120054,13 @@ const schema168 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -116218,8 +120140,13 @@ const schema168 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -116272,7 +120199,8 @@ function validate183( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -116767,6 +120695,63 @@ function validate183( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema168.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -116775,7 +120760,7 @@ function validate183( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -116786,23 +120771,23 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -116810,28 +120795,28 @@ function validate183( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema168.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -116839,17 +120824,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -116857,42 +120842,42 @@ function validate183( message: 'must be string', schema: schema168.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema168.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -116904,17 +120889,17 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -116928,27 +120913,27 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -116962,25 +120947,25 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -116997,23 +120982,23 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -117034,23 +121019,23 @@ function validate183( parentSchema: schema168.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -117060,23 +121045,23 @@ function validate183( schema168.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema168.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -117084,24 +121069,24 @@ function validate183( message: 'must be array', schema: schema168.anyOf[0].allOf[1].properties.services.type, parentSchema: schema168.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -117112,30 +121097,31 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -117146,20 +121132,20 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -117167,17 +121153,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -117185,27 +121171,27 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.url.type, parentSchema: schema168.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -117213,25 +121199,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.name.type, parentSchema: schema168.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -117239,25 +121225,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.description.type, parentSchema: schema168.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -117265,24 +121251,24 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[0].properties.type.type, parentSchema: schema168.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -117292,25 +121278,25 @@ function validate183( message: 'must be equal to one of the allowed values', schema: schema168.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema168.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -117318,39 +121304,39 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema168.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -117363,23 +121349,23 @@ function validate183( .required, parentSchema: schema168.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -117392,17 +121378,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -117416,12 +121402,12 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -117430,7 +121416,7 @@ function validate183( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -117442,23 +121428,23 @@ function validate183( .type, parentSchema: schema168.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -117466,40 +121452,40 @@ function validate183( message: 'must be array', schema: schema168.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema168.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -117513,23 +121499,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -117542,17 +121528,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -117566,12 +121552,12 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -117580,7 +121566,7 @@ function validate183( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -117592,23 +121578,23 @@ function validate183( .type, parentSchema: schema168.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -117616,20 +121602,78 @@ function validate183( message: 'must be array', schema: schema168.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema168.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema168.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -117638,7 +121682,7 @@ function validate183( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -117649,23 +121693,23 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -117673,25 +121717,25 @@ function validate183( message: 'must be equal to constant', schema: 'device', parentSchema: schema168.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -117699,44 +121743,44 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema168.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117751,17 +121795,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117779,30 +121823,30 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117818,17 +121862,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -117846,24 +121890,24 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -117876,23 +121920,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -117903,29 +121947,29 @@ function validate183( schema168.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema168.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -117934,17 +121978,17 @@ function validate183( schema: 'uri', parentSchema: schema168.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -117952,46 +121996,46 @@ function validate183( message: 'must be string', schema: schema168.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema168.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -118006,17 +122050,17 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -118033,27 +122077,27 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -118067,25 +122111,25 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -118102,23 +122146,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -118141,23 +122185,23 @@ function validate183( parentSchema: schema168.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -118169,23 +122213,23 @@ function validate183( .type, parentSchema: schema168.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -118193,17 +122237,17 @@ function validate183( message: 'must be array', schema: schema168.anyOf[1].allOf[1].properties.services.type, parentSchema: schema168.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -118212,7 +122256,7 @@ function validate183( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -118223,30 +122267,31 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -118257,20 +122302,20 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -118278,17 +122323,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -118296,27 +122341,27 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.url.type, parentSchema: schema168.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -118324,25 +122369,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.name.type, parentSchema: schema168.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -118350,25 +122395,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.description.type, parentSchema: schema168.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -118376,24 +122421,24 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[0].properties.type.type, parentSchema: schema168.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -118403,25 +122448,25 @@ function validate183( message: 'must be equal to one of the allowed values', schema: schema168.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema168.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -118429,39 +122474,39 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema168.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -118475,23 +122520,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -118504,17 +122549,17 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -118528,12 +122573,12 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -118542,7 +122587,7 @@ function validate183( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -118554,23 +122599,23 @@ function validate183( .type, parentSchema: schema168.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -118578,40 +122623,40 @@ function validate183( message: 'must be array', schema: schema168.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema168.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -118627,23 +122672,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -118659,17 +122704,17 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -118683,12 +122728,12 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -118697,7 +122742,7 @@ function validate183( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -118710,23 +122755,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -118735,20 +122780,78 @@ function validate183( schema: schema168.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema168.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema168.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -118757,7 +122860,7 @@ function validate183( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -118768,23 +122871,23 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -118792,28 +122895,28 @@ function validate183( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema168.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -118821,17 +122924,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -118839,46 +122942,46 @@ function validate183( message: 'must be string', schema: schema168.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema168.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -118893,17 +122996,17 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -118917,27 +123020,27 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -118951,25 +123054,25 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -118986,23 +123089,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -119024,23 +123127,23 @@ function validate183( parentSchema: schema168.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -119052,23 +123155,23 @@ function validate183( .type, parentSchema: schema168.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -119076,24 +123179,24 @@ function validate183( message: 'must be array', schema: schema168.anyOf[2].allOf[1].properties.services.type, parentSchema: schema168.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -119104,30 +123207,31 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -119138,20 +123242,20 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -119159,17 +123263,17 @@ function validate183( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema168.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -119177,27 +123281,27 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.url.type, parentSchema: schema168.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -119205,25 +123309,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.name.type, parentSchema: schema168.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -119231,25 +123335,25 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.description.type, parentSchema: schema168.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -119257,24 +123361,24 @@ function validate183( message: 'must be string', schema: schema168.anyOf[3].allOf[0].properties.type.type, parentSchema: schema168.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -119285,25 +123389,25 @@ function validate183( message: 'must be equal to one of the allowed values', schema: schema168.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema168.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -119311,39 +123415,39 @@ function validate183( message: 'must be boolean', schema: schema168.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema168.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -119359,23 +123463,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -119391,17 +123495,17 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -119418,12 +123522,12 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -119432,7 +123536,7 @@ function validate183( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -119445,23 +123549,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -119471,43 +123575,43 @@ function validate183( schema168.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema168.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -119523,23 +123627,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -119556,17 +123660,17 @@ function validate183( schema168.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -119583,12 +123687,12 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -119597,7 +123701,7 @@ function validate183( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -119610,23 +123714,23 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -119636,20 +123740,78 @@ function validate183( schema168.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema168.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema168.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema168.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema168.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -119658,7 +123820,7 @@ function validate183( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -119669,21 +123831,21 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -119694,17 +123856,17 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -119712,39 +123874,39 @@ function validate183( message: 'must be equal to constant', schema: 'group', parentSchema: schema168.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -119757,23 +123919,23 @@ function validate183( .required, parentSchema: schema168.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -119785,17 +123947,17 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -119809,12 +123971,12 @@ function validate183( parentSchema: schema168.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -119823,7 +123985,7 @@ function validate183( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -119835,23 +123997,23 @@ function validate183( .type, parentSchema: schema168.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -119859,24 +124021,24 @@ function validate183( message: 'must be array', schema: schema168.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema168.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -119887,22 +124049,22 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -119913,9 +124075,9 @@ function validate183( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate183.errors = vErrors; @@ -119982,8 +124144,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120057,8 +124224,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120132,8 +124304,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120207,8 +124384,13 @@ const schema169 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -120260,7 +124442,8 @@ function validate184( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -120702,6 +124885,62 @@ function validate184( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema169.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -120709,7 +124948,7 @@ function validate184( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -120720,23 +124959,23 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -120744,28 +124983,28 @@ function validate184( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema169.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -120773,17 +125012,17 @@ function validate184( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema169.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -120791,42 +125030,42 @@ function validate184( message: 'must be string', schema: schema169.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema169.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -120838,17 +125077,17 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -120862,27 +125101,27 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -120896,25 +125135,25 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -120931,23 +125170,23 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -120968,23 +125207,23 @@ function validate184( parentSchema: schema169.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -120994,23 +125233,23 @@ function validate184( schema169.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema169.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -121018,24 +125257,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[0].allOf[1].properties.services.type, parentSchema: schema169.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -121046,29 +125285,30 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -121079,17 +125319,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -121097,25 +125337,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[0].properties.name.type, parentSchema: schema169.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -121123,25 +125363,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[0].properties.description.type, parentSchema: schema169.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -121149,24 +125389,24 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[0].properties.type.type, parentSchema: schema169.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -121176,25 +125416,25 @@ function validate184( message: 'must be equal to one of the allowed values', schema: schema169.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema169.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -121202,39 +125442,39 @@ function validate184( message: 'must be boolean', schema: schema169.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema169.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -121247,23 +125487,23 @@ function validate184( .required, parentSchema: schema169.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -121275,17 +125515,17 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -121299,12 +125539,12 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -121313,7 +125553,7 @@ function validate184( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -121325,23 +125565,23 @@ function validate184( .type, parentSchema: schema169.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -121349,40 +125589,40 @@ function validate184( message: 'must be array', schema: schema169.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema169.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -121395,23 +125635,23 @@ function validate184( .required, parentSchema: schema169.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -121424,17 +125664,17 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -121448,12 +125688,12 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -121462,7 +125702,7 @@ function validate184( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -121474,23 +125714,23 @@ function validate184( .type, parentSchema: schema169.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -121498,20 +125738,77 @@ function validate184( message: 'must be array', schema: schema169.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema169.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema169.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -121519,7 +125816,7 @@ function validate184( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -121530,23 +125827,23 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -121554,28 +125851,28 @@ function validate184( message: 'must be equal to constant', schema: 'device', parentSchema: schema169.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -121583,17 +125880,17 @@ function validate184( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema169.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -121601,46 +125898,46 @@ function validate184( message: 'must be string', schema: schema169.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema169.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -121652,17 +125949,17 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -121676,27 +125973,27 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -121710,25 +126007,25 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -121745,23 +126042,23 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -121782,23 +126079,23 @@ function validate184( parentSchema: schema169.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -121809,23 +126106,23 @@ function validate184( schema169.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema169.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -121833,24 +126130,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[1].allOf[1].properties.services.type, parentSchema: schema169.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -121861,29 +126158,30 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -121894,17 +126192,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -121912,25 +126210,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[0].properties.name.type, parentSchema: schema169.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -121938,25 +126236,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[0].properties.description.type, parentSchema: schema169.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -121964,24 +126262,24 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[0].properties.type.type, parentSchema: schema169.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -121991,25 +126289,25 @@ function validate184( message: 'must be equal to one of the allowed values', schema: schema169.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema169.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -122017,39 +126315,39 @@ function validate184( message: 'must be boolean', schema: schema169.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema169.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -122062,23 +126360,23 @@ function validate184( .required, parentSchema: schema169.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -122091,17 +126389,17 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -122115,12 +126413,12 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -122129,7 +126427,7 @@ function validate184( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -122141,23 +126439,23 @@ function validate184( .type, parentSchema: schema169.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -122165,40 +126463,40 @@ function validate184( message: 'must be array', schema: schema169.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema169.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -122212,23 +126510,23 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -122241,17 +126539,17 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -122265,12 +126563,12 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -122279,7 +126577,7 @@ function validate184( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -122291,23 +126589,23 @@ function validate184( .type, parentSchema: schema169.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -122315,20 +126613,78 @@ function validate184( message: 'must be array', schema: schema169.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema169.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema169.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -122336,7 +126692,7 @@ function validate184( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -122347,23 +126703,23 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -122371,28 +126727,28 @@ function validate184( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema169.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -122400,17 +126756,17 @@ function validate184( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema169.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -122418,46 +126774,46 @@ function validate184( message: 'must be string', schema: schema169.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema169.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -122472,17 +126828,17 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -122496,27 +126852,27 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -122530,25 +126886,25 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -122565,23 +126921,23 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -122603,23 +126959,23 @@ function validate184( parentSchema: schema169.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -122631,23 +126987,23 @@ function validate184( .type, parentSchema: schema169.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -122655,24 +127011,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[2].allOf[1].properties.services.type, parentSchema: schema169.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -122683,29 +127039,30 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -122716,17 +127073,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -122734,25 +127091,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[3].allOf[0].properties.name.type, parentSchema: schema169.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -122760,25 +127117,25 @@ function validate184( message: 'must be string', schema: schema169.anyOf[3].allOf[0].properties.description.type, parentSchema: schema169.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -122786,24 +127143,24 @@ function validate184( message: 'must be string', schema: schema169.anyOf[3].allOf[0].properties.type.type, parentSchema: schema169.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -122813,25 +127170,25 @@ function validate184( message: 'must be equal to one of the allowed values', schema: schema169.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema169.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -122839,39 +127196,39 @@ function validate184( message: 'must be boolean', schema: schema169.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema169.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -122885,23 +127242,23 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -122914,17 +127271,17 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -122938,12 +127295,12 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -122952,7 +127309,7 @@ function validate184( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -122964,23 +127321,23 @@ function validate184( .type, parentSchema: schema169.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -122988,40 +127345,40 @@ function validate184( message: 'must be array', schema: schema169.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema169.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -123037,23 +127394,23 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -123069,17 +127426,17 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -123093,12 +127450,12 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -123107,7 +127464,7 @@ function validate184( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -123120,23 +127477,23 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -123145,20 +127502,78 @@ function validate184( schema: schema169.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema169.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema169.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema169.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema169.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -123166,7 +127581,7 @@ function validate184( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -123177,21 +127592,21 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -123202,17 +127617,17 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -123220,39 +127635,39 @@ function validate184( message: 'must be equal to constant', schema: 'group', parentSchema: schema169.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -123265,23 +127680,23 @@ function validate184( .required, parentSchema: schema169.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -123293,17 +127708,17 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -123317,12 +127732,12 @@ function validate184( parentSchema: schema169.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -123331,7 +127746,7 @@ function validate184( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -123343,23 +127758,23 @@ function validate184( .type, parentSchema: schema169.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -123367,24 +127782,24 @@ function validate184( message: 'must be array', schema: schema169.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema169.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -123395,22 +127810,22 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -123421,9 +127836,9 @@ function validate184( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate184.errors = vErrors; @@ -123496,117 +127911,127 @@ const schema170 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -123679,8 +128104,13 @@ const schema170 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -123760,8 +128190,13 @@ const schema170 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -123814,7 +128249,8 @@ function validate185( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -124309,6 +128745,63 @@ function validate185( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema170.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -124317,7 +128810,7 @@ function validate185( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -124328,23 +128821,23 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -124352,28 +128845,28 @@ function validate185( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema170.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -124381,17 +128874,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -124399,42 +128892,42 @@ function validate185( message: 'must be string', schema: schema170.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema170.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -124446,17 +128939,17 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -124470,27 +128963,27 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -124504,25 +128997,25 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -124539,23 +129032,23 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -124576,23 +129069,23 @@ function validate185( parentSchema: schema170.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -124602,23 +129095,23 @@ function validate185( schema170.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema170.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -124626,24 +129119,24 @@ function validate185( message: 'must be array', schema: schema170.anyOf[0].allOf[1].properties.services.type, parentSchema: schema170.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -124654,30 +129147,31 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -124688,20 +129182,20 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -124709,17 +129203,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -124727,27 +129221,27 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.url.type, parentSchema: schema170.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -124755,25 +129249,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.name.type, parentSchema: schema170.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -124781,25 +129275,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.description.type, parentSchema: schema170.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -124807,24 +129301,24 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[0].properties.type.type, parentSchema: schema170.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -124834,25 +129328,25 @@ function validate185( message: 'must be equal to one of the allowed values', schema: schema170.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema170.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -124860,39 +129354,39 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema170.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -124905,23 +129399,23 @@ function validate185( .required, parentSchema: schema170.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -124934,17 +129428,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -124958,12 +129452,12 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -124972,7 +129466,7 @@ function validate185( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -124984,23 +129478,23 @@ function validate185( .type, parentSchema: schema170.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -125008,40 +129502,40 @@ function validate185( message: 'must be array', schema: schema170.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema170.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -125055,23 +129549,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -125084,17 +129578,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -125108,12 +129602,12 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -125122,7 +129616,7 @@ function validate185( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -125134,23 +129628,23 @@ function validate185( .type, parentSchema: schema170.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -125158,20 +129652,78 @@ function validate185( message: 'must be array', schema: schema170.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema170.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema170.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -125180,7 +129732,7 @@ function validate185( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -125191,23 +129743,23 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -125215,25 +129767,25 @@ function validate185( message: 'must be equal to constant', schema: 'device', parentSchema: schema170.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -125241,44 +129793,44 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema170.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125293,17 +129845,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125321,30 +129873,30 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125360,17 +129912,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -125388,24 +129940,24 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -125418,23 +129970,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -125445,29 +129997,29 @@ function validate185( schema170.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema170.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -125476,17 +130028,17 @@ function validate185( schema: 'uri', parentSchema: schema170.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -125494,46 +130046,46 @@ function validate185( message: 'must be string', schema: schema170.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema170.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -125548,17 +130100,17 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -125575,27 +130127,27 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -125609,25 +130161,25 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -125644,23 +130196,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -125683,23 +130235,23 @@ function validate185( parentSchema: schema170.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -125711,23 +130263,23 @@ function validate185( .type, parentSchema: schema170.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -125735,17 +130287,17 @@ function validate185( message: 'must be array', schema: schema170.anyOf[1].allOf[1].properties.services.type, parentSchema: schema170.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -125754,7 +130306,7 @@ function validate185( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -125765,30 +130317,31 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -125799,20 +130352,20 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -125820,17 +130373,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -125838,27 +130391,27 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.url.type, parentSchema: schema170.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -125866,25 +130419,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.name.type, parentSchema: schema170.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -125892,25 +130445,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.description.type, parentSchema: schema170.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -125918,24 +130471,24 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[0].properties.type.type, parentSchema: schema170.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -125945,25 +130498,25 @@ function validate185( message: 'must be equal to one of the allowed values', schema: schema170.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema170.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -125971,39 +130524,39 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema170.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -126017,23 +130570,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -126046,17 +130599,17 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -126070,12 +130623,12 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -126084,7 +130637,7 @@ function validate185( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -126096,23 +130649,23 @@ function validate185( .type, parentSchema: schema170.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -126120,40 +130673,40 @@ function validate185( message: 'must be array', schema: schema170.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema170.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -126169,23 +130722,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -126201,17 +130754,17 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -126225,12 +130778,12 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -126239,7 +130792,7 @@ function validate185( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -126252,23 +130805,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -126277,20 +130830,78 @@ function validate185( schema: schema170.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema170.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema170.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -126299,7 +130910,7 @@ function validate185( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -126310,23 +130921,23 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -126334,28 +130945,28 @@ function validate185( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema170.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -126363,17 +130974,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -126381,46 +130992,46 @@ function validate185( message: 'must be string', schema: schema170.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema170.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -126435,17 +131046,17 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -126459,27 +131070,27 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -126493,25 +131104,25 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -126528,23 +131139,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -126566,23 +131177,23 @@ function validate185( parentSchema: schema170.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -126594,23 +131205,23 @@ function validate185( .type, parentSchema: schema170.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -126618,24 +131229,24 @@ function validate185( message: 'must be array', schema: schema170.anyOf[2].allOf[1].properties.services.type, parentSchema: schema170.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -126646,30 +131257,31 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -126680,20 +131292,20 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -126701,17 +131313,17 @@ function validate185( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema170.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -126719,27 +131331,27 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.url.type, parentSchema: schema170.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -126747,25 +131359,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.name.type, parentSchema: schema170.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -126773,25 +131385,25 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.description.type, parentSchema: schema170.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -126799,24 +131411,24 @@ function validate185( message: 'must be string', schema: schema170.anyOf[3].allOf[0].properties.type.type, parentSchema: schema170.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -126827,25 +131439,25 @@ function validate185( message: 'must be equal to one of the allowed values', schema: schema170.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema170.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -126853,39 +131465,39 @@ function validate185( message: 'must be boolean', schema: schema170.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema170.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -126901,23 +131513,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -126933,17 +131545,17 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -126960,12 +131572,12 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -126974,7 +131586,7 @@ function validate185( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -126987,23 +131599,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -127013,43 +131625,43 @@ function validate185( schema170.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema170.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -127065,23 +131677,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -127098,17 +131710,17 @@ function validate185( schema170.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -127125,12 +131737,12 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -127139,7 +131751,7 @@ function validate185( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -127152,23 +131764,23 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -127178,20 +131790,78 @@ function validate185( schema170.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema170.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema170.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema170.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema170.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -127200,7 +131870,7 @@ function validate185( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -127211,21 +131881,21 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -127236,17 +131906,17 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -127254,39 +131924,39 @@ function validate185( message: 'must be equal to constant', schema: 'group', parentSchema: schema170.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -127299,23 +131969,23 @@ function validate185( .required, parentSchema: schema170.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -127327,17 +131997,17 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -127351,12 +132021,12 @@ function validate185( parentSchema: schema170.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -127365,7 +132035,7 @@ function validate185( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -127377,23 +132047,23 @@ function validate185( .type, parentSchema: schema170.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -127401,24 +132071,24 @@ function validate185( message: 'must be array', schema: schema170.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema170.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -127429,22 +132099,22 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -127455,9 +132125,9 @@ function validate185( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate185.errors = vErrors; @@ -127524,8 +132194,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127599,8 +132274,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127674,8 +132354,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127749,8 +132434,13 @@ const schema171 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -127802,7 +132492,8 @@ function validate186( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -128244,6 +132935,62 @@ function validate186( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema171.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -128251,7 +132998,7 @@ function validate186( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -128262,23 +133009,23 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -128286,28 +133033,28 @@ function validate186( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema171.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -128315,17 +133062,17 @@ function validate186( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema171.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -128333,42 +133080,42 @@ function validate186( message: 'must be string', schema: schema171.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema171.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -128380,17 +133127,17 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -128404,27 +133151,27 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -128438,25 +133185,25 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -128473,23 +133220,23 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -128510,23 +133257,23 @@ function validate186( parentSchema: schema171.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -128536,23 +133283,23 @@ function validate186( schema171.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema171.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -128560,24 +133307,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[0].allOf[1].properties.services.type, parentSchema: schema171.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -128588,29 +133335,30 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -128621,17 +133369,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -128639,25 +133387,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[0].properties.name.type, parentSchema: schema171.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -128665,25 +133413,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[0].properties.description.type, parentSchema: schema171.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -128691,24 +133439,24 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[0].properties.type.type, parentSchema: schema171.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -128718,25 +133466,25 @@ function validate186( message: 'must be equal to one of the allowed values', schema: schema171.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema171.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -128744,39 +133492,39 @@ function validate186( message: 'must be boolean', schema: schema171.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema171.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -128789,23 +133537,23 @@ function validate186( .required, parentSchema: schema171.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -128817,17 +133565,17 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -128841,12 +133589,12 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -128855,7 +133603,7 @@ function validate186( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -128867,23 +133615,23 @@ function validate186( .type, parentSchema: schema171.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -128891,40 +133639,40 @@ function validate186( message: 'must be array', schema: schema171.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema171.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -128937,23 +133685,23 @@ function validate186( .required, parentSchema: schema171.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -128966,17 +133714,17 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -128990,12 +133738,12 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -129004,7 +133752,7 @@ function validate186( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -129016,23 +133764,23 @@ function validate186( .type, parentSchema: schema171.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -129040,20 +133788,77 @@ function validate186( message: 'must be array', schema: schema171.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema171.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema171.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -129061,7 +133866,7 @@ function validate186( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -129072,23 +133877,23 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -129096,28 +133901,28 @@ function validate186( message: 'must be equal to constant', schema: 'device', parentSchema: schema171.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -129125,17 +133930,17 @@ function validate186( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema171.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -129143,46 +133948,46 @@ function validate186( message: 'must be string', schema: schema171.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema171.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -129194,17 +133999,17 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -129218,27 +134023,27 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -129252,25 +134057,25 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -129287,23 +134092,23 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -129324,23 +134129,23 @@ function validate186( parentSchema: schema171.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -129351,23 +134156,23 @@ function validate186( schema171.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema171.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -129375,24 +134180,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[1].allOf[1].properties.services.type, parentSchema: schema171.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -129403,29 +134208,30 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -129436,17 +134242,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -129454,25 +134260,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[0].properties.name.type, parentSchema: schema171.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -129480,25 +134286,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[0].properties.description.type, parentSchema: schema171.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -129506,24 +134312,24 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[0].properties.type.type, parentSchema: schema171.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -129533,25 +134339,25 @@ function validate186( message: 'must be equal to one of the allowed values', schema: schema171.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema171.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -129559,39 +134365,39 @@ function validate186( message: 'must be boolean', schema: schema171.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema171.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -129604,23 +134410,23 @@ function validate186( .required, parentSchema: schema171.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -129633,17 +134439,17 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -129657,12 +134463,12 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -129671,7 +134477,7 @@ function validate186( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -129683,23 +134489,23 @@ function validate186( .type, parentSchema: schema171.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -129707,40 +134513,40 @@ function validate186( message: 'must be array', schema: schema171.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema171.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -129754,23 +134560,23 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -129783,17 +134589,17 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -129807,12 +134613,12 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -129821,7 +134627,7 @@ function validate186( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -129833,23 +134639,23 @@ function validate186( .type, parentSchema: schema171.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -129857,20 +134663,78 @@ function validate186( message: 'must be array', schema: schema171.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema171.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema171.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -129878,7 +134742,7 @@ function validate186( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -129889,23 +134753,23 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -129913,28 +134777,28 @@ function validate186( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema171.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -129942,17 +134806,17 @@ function validate186( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema171.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -129960,46 +134824,46 @@ function validate186( message: 'must be string', schema: schema171.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema171.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -130014,17 +134878,17 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -130038,27 +134902,27 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -130072,25 +134936,25 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -130107,23 +134971,23 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -130145,23 +135009,23 @@ function validate186( parentSchema: schema171.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -130173,23 +135037,23 @@ function validate186( .type, parentSchema: schema171.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -130197,24 +135061,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[2].allOf[1].properties.services.type, parentSchema: schema171.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -130225,29 +135089,30 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -130258,17 +135123,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -130276,25 +135141,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[3].allOf[0].properties.name.type, parentSchema: schema171.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -130302,25 +135167,25 @@ function validate186( message: 'must be string', schema: schema171.anyOf[3].allOf[0].properties.description.type, parentSchema: schema171.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -130328,24 +135193,24 @@ function validate186( message: 'must be string', schema: schema171.anyOf[3].allOf[0].properties.type.type, parentSchema: schema171.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -130355,25 +135220,25 @@ function validate186( message: 'must be equal to one of the allowed values', schema: schema171.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema171.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -130381,39 +135246,39 @@ function validate186( message: 'must be boolean', schema: schema171.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema171.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -130427,23 +135292,23 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -130456,17 +135321,17 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -130480,12 +135345,12 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -130494,7 +135359,7 @@ function validate186( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -130506,23 +135371,23 @@ function validate186( .type, parentSchema: schema171.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -130530,40 +135395,40 @@ function validate186( message: 'must be array', schema: schema171.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema171.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -130579,23 +135444,23 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -130611,17 +135476,17 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -130635,12 +135500,12 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -130649,7 +135514,7 @@ function validate186( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -130662,23 +135527,23 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -130687,20 +135552,78 @@ function validate186( schema: schema171.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema171.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema171.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema171.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema171.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -130708,7 +135631,7 @@ function validate186( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -130719,21 +135642,21 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -130744,17 +135667,17 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -130762,39 +135685,39 @@ function validate186( message: 'must be equal to constant', schema: 'group', parentSchema: schema171.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -130807,23 +135730,23 @@ function validate186( .required, parentSchema: schema171.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -130835,17 +135758,17 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -130859,12 +135782,12 @@ function validate186( parentSchema: schema171.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -130873,7 +135796,7 @@ function validate186( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -130885,23 +135808,23 @@ function validate186( .type, parentSchema: schema171.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -130909,24 +135832,24 @@ function validate186( message: 'must be array', schema: schema171.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema171.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -130937,22 +135860,22 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -130963,9 +135886,9 @@ function validate186( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate186.errors = vErrors; @@ -131038,117 +135961,127 @@ const schema172 = { required: ['url'], }, }, - }, - required: ['url', 'type', 'name', 'isPublic'], - 'x-typeguard': true, - }, - { - type: 'object', - properties: { - type: { const: 'cloud instantiable' }, - instantiateUrl: { type: 'string', format: 'uri' }, - services: { - type: 'array', - items: { - title: 'Service Description', - type: 'object', - properties: { - serviceType: { type: 'string', format: 'uri' }, - serviceId: { type: 'string' }, - serviceDirection: { - type: 'string', - enum: ['consumer', 'producer', 'prosumer'], - }, - }, - additionalProperties: true, - }, - }, - }, - }, - ], - 'x-typeguard': true, - }, - { - title: 'Concrete Device', - allOf: [ - { - title: 'Device Overview', - type: 'object', - properties: { - url: { + bookingEndpoint: { type: 'string', - description: 'URL of the device', + description: 'Endpoint where the device may be booked.', format: 'uri', - readOnly: true, - }, - name: { type: 'string', description: 'Name of the device' }, - description: { - type: 'string', - description: 'Extended description of the device, features, etc.', - }, - type: { - type: 'string', - description: 'Type of the device', - enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], - }, - isPublic: { - type: 'boolean', - description: 'If true, the device may be seen and used by every user.', - }, - viewer: { - type: 'array', - description: 'List of users who can view the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, - }, - owner: { - type: 'array', - description: 'List of users who own the device', - items: { - title: 'User Reference', - type: 'object', - properties: { - url: { type: 'string', description: 'URL of the user', format: 'uri' }, - }, - required: ['url'], - }, }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { type: 'object', properties: { - type: { const: 'device' }, - connected: { - description: - 'If true, the device is connected to the service and can be used.\n', - type: 'boolean', - readOnly: true, - }, - announcedAvailability: { - readOnly: true, - title: 'Availability', - description: - 'A list of time slots that the maintainer of the device announced it is available\n', - type: 'array', - items: { - title: 'Time Slot', - type: 'object', - properties: { - start: { type: 'string', format: 'date-time' }, - end: { type: 'string', format: 'date-time' }, - }, - }, - }, - experiment: { type: 'string', format: 'uri' }, + type: { const: 'cloud instantiable' }, + instantiateUrl: { type: 'string', format: 'uri' }, + services: { + type: 'array', + items: { + title: 'Service Description', + type: 'object', + properties: { + serviceType: { type: 'string', format: 'uri' }, + serviceId: { type: 'string' }, + serviceDirection: { + type: 'string', + enum: ['consumer', 'producer', 'prosumer'], + }, + }, + additionalProperties: true, + }, + }, + }, + }, + ], + 'x-typeguard': true, + }, + { + title: 'Concrete Device', + allOf: [ + { + title: 'Device Overview', + type: 'object', + properties: { + url: { + type: 'string', + description: 'URL of the device', + format: 'uri', + readOnly: true, + }, + name: { type: 'string', description: 'Name of the device' }, + description: { + type: 'string', + description: 'Extended description of the device, features, etc.', + }, + type: { + type: 'string', + description: 'Type of the device', + enum: ['device', 'group', 'edge instantiable', 'cloud instantiable'], + }, + isPublic: { + type: 'boolean', + description: 'If true, the device may be seen and used by every user.', + }, + viewer: { + type: 'array', + description: 'List of users who can view the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + owner: { + type: 'array', + description: 'List of users who own the device', + items: { + title: 'User Reference', + type: 'object', + properties: { + url: { type: 'string', description: 'URL of the user', format: 'uri' }, + }, + required: ['url'], + }, + }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, + }, + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], + 'x-typeguard': true, + }, + { + type: 'object', + properties: { + type: { const: 'device' }, + connected: { + description: + 'If true, the device is connected to the service and can be used.\n', + type: 'boolean', + readOnly: true, + }, + announcedAvailability: { + readOnly: true, + title: 'Availability', + description: + 'A list of time slots that the maintainer of the device announced it is available\n', + type: 'array', + items: { + title: 'Time Slot', + type: 'object', + properties: { + start: { type: 'string', format: 'date-time' }, + end: { type: 'string', format: 'date-time' }, + }, + }, + }, + experiment: { type: 'string', format: 'uri' }, services: { type: 'array', items: { @@ -131221,8 +136154,13 @@ const schema172 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -131302,8 +136240,13 @@ const schema172 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -131356,7 +136299,8 @@ function validate187( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -131851,6 +136795,63 @@ function validate187( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema172.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -131859,7 +136860,7 @@ function validate187( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -131870,23 +136871,23 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -131894,28 +136895,28 @@ function validate187( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema172.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -131923,17 +136924,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -131941,42 +136942,42 @@ function validate187( message: 'must be string', schema: schema172.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema172.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -131988,17 +136989,17 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -132012,27 +137013,27 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -132046,25 +137047,25 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -132081,23 +137082,23 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -132118,23 +137119,23 @@ function validate187( parentSchema: schema172.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -132144,23 +137145,23 @@ function validate187( schema172.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema172.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -132168,24 +137169,24 @@ function validate187( message: 'must be array', schema: schema172.anyOf[0].allOf[1].properties.services.type, parentSchema: schema172.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -132196,30 +137197,31 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -132230,20 +137232,20 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -132251,17 +137253,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -132269,27 +137271,27 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.url.type, parentSchema: schema172.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -132297,25 +137299,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.name.type, parentSchema: schema172.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -132323,25 +137325,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.description.type, parentSchema: schema172.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -132349,24 +137351,24 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[0].properties.type.type, parentSchema: schema172.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -132376,25 +137378,25 @@ function validate187( message: 'must be equal to one of the allowed values', schema: schema172.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema172.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -132402,39 +137404,39 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema172.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -132447,23 +137449,23 @@ function validate187( .required, parentSchema: schema172.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -132476,17 +137478,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -132500,12 +137502,12 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -132514,7 +137516,7 @@ function validate187( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -132526,23 +137528,23 @@ function validate187( .type, parentSchema: schema172.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -132550,40 +137552,40 @@ function validate187( message: 'must be array', schema: schema172.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema172.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -132597,23 +137599,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -132626,17 +137628,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -132650,12 +137652,12 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -132664,7 +137666,7 @@ function validate187( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -132676,23 +137678,23 @@ function validate187( .type, parentSchema: schema172.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -132700,20 +137702,78 @@ function validate187( message: 'must be array', schema: schema172.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema172.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema172.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -132722,7 +137782,7 @@ function validate187( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -132733,23 +137793,23 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -132757,25 +137817,25 @@ function validate187( message: 'must be equal to constant', schema: 'device', parentSchema: schema172.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -132783,44 +137843,44 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema172.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132835,17 +137895,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132863,30 +137923,30 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132902,17 +137962,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -132930,24 +137990,24 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -132960,23 +138020,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -132987,29 +138047,29 @@ function validate187( schema172.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema172.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -133018,17 +138078,17 @@ function validate187( schema: 'uri', parentSchema: schema172.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -133036,46 +138096,46 @@ function validate187( message: 'must be string', schema: schema172.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema172.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -133090,17 +138150,17 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -133117,27 +138177,27 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -133151,25 +138211,25 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -133186,23 +138246,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -133225,23 +138285,23 @@ function validate187( parentSchema: schema172.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -133253,23 +138313,23 @@ function validate187( .type, parentSchema: schema172.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -133277,17 +138337,17 @@ function validate187( message: 'must be array', schema: schema172.anyOf[1].allOf[1].properties.services.type, parentSchema: schema172.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -133296,7 +138356,7 @@ function validate187( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -133307,30 +138367,31 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -133341,20 +138402,20 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -133362,17 +138423,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -133380,27 +138441,27 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.url.type, parentSchema: schema172.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -133408,25 +138469,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.name.type, parentSchema: schema172.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -133434,25 +138495,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.description.type, parentSchema: schema172.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -133460,24 +138521,24 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[0].properties.type.type, parentSchema: schema172.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -133487,25 +138548,25 @@ function validate187( message: 'must be equal to one of the allowed values', schema: schema172.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema172.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -133513,39 +138574,39 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema172.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -133559,23 +138620,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -133588,17 +138649,17 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -133612,12 +138673,12 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -133626,7 +138687,7 @@ function validate187( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -133638,23 +138699,23 @@ function validate187( .type, parentSchema: schema172.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -133662,40 +138723,40 @@ function validate187( message: 'must be array', schema: schema172.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema172.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -133711,23 +138772,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -133743,17 +138804,17 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -133767,12 +138828,12 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -133781,7 +138842,7 @@ function validate187( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -133794,23 +138855,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -133819,20 +138880,78 @@ function validate187( schema: schema172.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema172.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema172.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -133841,7 +138960,7 @@ function validate187( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -133852,23 +138971,23 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -133876,28 +138995,28 @@ function validate187( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema172.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -133905,17 +139024,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -133923,46 +139042,46 @@ function validate187( message: 'must be string', schema: schema172.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema172.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -133977,17 +139096,17 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -134001,27 +139120,27 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -134035,25 +139154,25 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -134070,23 +139189,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -134108,23 +139227,23 @@ function validate187( parentSchema: schema172.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -134136,23 +139255,23 @@ function validate187( .type, parentSchema: schema172.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -134160,24 +139279,24 @@ function validate187( message: 'must be array', schema: schema172.anyOf[2].allOf[1].properties.services.type, parentSchema: schema172.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -134188,30 +139307,31 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -134222,20 +139342,20 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -134243,17 +139363,17 @@ function validate187( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema172.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -134261,27 +139381,27 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.url.type, parentSchema: schema172.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -134289,25 +139409,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.name.type, parentSchema: schema172.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -134315,25 +139435,25 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.description.type, parentSchema: schema172.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -134341,24 +139461,24 @@ function validate187( message: 'must be string', schema: schema172.anyOf[3].allOf[0].properties.type.type, parentSchema: schema172.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -134369,25 +139489,25 @@ function validate187( message: 'must be equal to one of the allowed values', schema: schema172.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema172.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -134395,39 +139515,39 @@ function validate187( message: 'must be boolean', schema: schema172.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema172.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -134443,23 +139563,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -134475,17 +139595,17 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -134502,12 +139622,12 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -134516,7 +139636,7 @@ function validate187( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -134529,23 +139649,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -134555,43 +139675,43 @@ function validate187( schema172.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema172.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -134607,23 +139727,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -134640,17 +139760,17 @@ function validate187( schema172.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -134667,12 +139787,12 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -134681,7 +139801,7 @@ function validate187( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -134694,23 +139814,23 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -134720,20 +139840,78 @@ function validate187( schema172.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema172.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema172.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema172.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema172.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -134742,7 +139920,7 @@ function validate187( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -134753,21 +139931,21 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -134778,17 +139956,17 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -134796,39 +139974,39 @@ function validate187( message: 'must be equal to constant', schema: 'group', parentSchema: schema172.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -134841,23 +140019,23 @@ function validate187( .required, parentSchema: schema172.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -134869,17 +140047,17 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -134893,12 +140071,12 @@ function validate187( parentSchema: schema172.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -134907,7 +140085,7 @@ function validate187( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -134919,23 +140097,23 @@ function validate187( .type, parentSchema: schema172.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -134943,24 +140121,24 @@ function validate187( message: 'must be array', schema: schema172.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema172.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -134971,22 +140149,22 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -134997,9 +140175,9 @@ function validate187( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate187.errors = vErrors; @@ -141988,8 +147166,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142063,8 +147246,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142138,8 +147326,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142213,8 +147406,13 @@ const schema175 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -142266,7 +147464,8 @@ function validate190( if ( (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -142708,6 +147907,62 @@ function validate190( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data10 = data.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data10 === 'string') { + if (!formats0(data10)) { + const err16 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err16]; + } else { + vErrors.push(err16); + } + errors++; + } + } else { + const err17 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema175.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data10, + }; + if (vErrors === null) { + vErrors = [err17]; + } else { + vErrors.push(err17); + } + errors++; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -142715,7 +147970,7 @@ function validate190( } } } else { - const err16 = { + const err18 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -142726,23 +147981,23 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err16]; + vErrors = [err18]; } else { - vErrors.push(err16); + vErrors.push(err18); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data10 = data.type; - const _errs26 = errors; - if ('cloud instantiable' !== data10) { - const err17 = { + let data11 = data.type; + const _errs28 = errors; + if ('cloud instantiable' !== data11) { + const err19 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -142750,28 +148005,28 @@ function validate190( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema175.anyOf[0].allOf[1].properties.type, - data: data10, + data: data11, }; if (vErrors === null) { - vErrors = [err17]; + vErrors = [err19]; } else { - vErrors.push(err17); + vErrors.push(err19); } errors++; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data11 = data.instantiateUrl; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data11 === 'string') { - if (!formats0(data11)) { - const err18 = { + let data12 = data.instantiateUrl; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + const err20 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -142779,17 +148034,17 @@ function validate190( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema175.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } else { - const err19 = { + const err21 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -142797,42 +148052,42 @@ function validate190( message: 'must be string', schema: schema175.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema175.anyOf[0].allOf[1].properties.instantiateUrl, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data12 = data.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data12)) { + let data13 = data.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data13)) { var valid8 = true; - const len2 = data12.length; + const len2 = data13.length; for (let i2 = 0; i2 < len2; i2++) { - let data13 = data12[i2]; - const _errs31 = errors; - if (errors === _errs31) { - if (data13 && typeof data13 == 'object' && !Array.isArray(data13)) { - if (data13.serviceType !== undefined) { - let data14 = data13.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data14 === 'string') { - if (!formats0(data14)) { - const err20 = { + let data14 = data13[i2]; + const _errs33 = errors; + if (errors === _errs33) { + if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { + if (data14.serviceType !== undefined) { + let data15 = data14.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data15 === 'string') { + if (!formats0(data15)) { + const err22 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -142844,17 +148099,17 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -142868,27 +148123,27 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceId !== undefined) { - let data15 = data13.serviceId; - const _errs36 = errors; - if (typeof data15 !== 'string') { - const err22 = { + if (data14.serviceId !== undefined) { + let data16 = data14.serviceId; + const _errs38 = errors; + if (typeof data16 !== 'string') { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -142902,25 +148157,25 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data13.serviceDirection !== undefined) { - let data16 = data13.serviceDirection; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err23 = { + if (data14.serviceDirection !== undefined) { + let data17 = data14.serviceDirection; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err25 = { instancePath: instancePath + '/services/' + @@ -142937,23 +148192,23 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } if ( !( - data16 === 'consumer' || - data16 === 'producer' || - data16 === 'prosumer' + data17 === 'consumer' || + data17 === 'producer' || + data17 === 'prosumer' ) ) { - const err24 = { + const err26 = { instancePath: instancePath + '/services/' + @@ -142974,23 +148229,23 @@ function validate190( parentSchema: schema175.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } } } } else { - const err25 = { + const err27 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -143000,23 +148255,23 @@ function validate190( schema175.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema175.anyOf[0].allOf[1].properties.services.items, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } } } else { - const err26 = { + const err28 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -143024,24 +148279,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[0].allOf[1].properties.services.type, parentSchema: schema175.anyOf[0].allOf[1].properties.services, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } } } } else { - const err27 = { + const err29 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -143052,29 +148307,30 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs40 = errors; - const _errs41 = errors; - if (errors === _errs41) { + const _errs42 = errors; + const _errs43 = errors; + if (errors === _errs43) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err28 = { + const err30 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -143085,17 +148341,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } else { if (data.name !== undefined) { - let data17 = data.name; - const _errs43 = errors; - if (typeof data17 !== 'string') { - const err29 = { + let data18 = data.name; + const _errs45 = errors; + if (typeof data18 !== 'string') { + const err31 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -143103,25 +148359,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[0].properties.name.type, parentSchema: schema175.anyOf[1].allOf[0].properties.name, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } - var valid11 = _errs43 === errors; + var valid11 = _errs45 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data18 = data.description; - const _errs45 = errors; - if (typeof data18 !== 'string') { - const err30 = { + let data19 = data.description; + const _errs47 = errors; + if (typeof data19 !== 'string') { + const err32 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -143129,25 +148385,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[0].properties.description.type, parentSchema: schema175.anyOf[1].allOf[0].properties.description, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data19 = data.type; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err31 = { + let data20 = data.type; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err33 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -143155,24 +148411,24 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[0].properties.type.type, parentSchema: schema175.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } if ( !( - data19 === 'device' || - data19 === 'group' || - data19 === 'edge instantiable' || - data19 === 'cloud instantiable' + data20 === 'device' || + data20 === 'group' || + data20 === 'edge instantiable' || + data20 === 'cloud instantiable' ) ) { - const err32 = { + const err34 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -143182,25 +148438,25 @@ function validate190( message: 'must be equal to one of the allowed values', schema: schema175.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema175.anyOf[1].allOf[0].properties.type, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data20 = data.isPublic; - const _errs49 = errors; - if (typeof data20 !== 'boolean') { - const err33 = { + let data21 = data.isPublic; + const _errs51 = errors; + if (typeof data21 !== 'boolean') { + const err35 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -143208,39 +148464,39 @@ function validate190( message: 'must be boolean', schema: schema175.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema175.anyOf[1].allOf[0].properties.isPublic, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data21 = data.viewer; - const _errs51 = errors; - if (errors === _errs51) { - if (Array.isArray(data21)) { + let data22 = data.viewer; + const _errs53 = errors; + if (errors === _errs53) { + if (Array.isArray(data22)) { var valid12 = true; - const len3 = data21.length; + const len3 = data22.length; for (let i3 = 0; i3 < len3; i3++) { - let data22 = data21[i3]; - const _errs53 = errors; - if (errors === _errs53) { + let data23 = data22[i3]; + const _errs55 = errors; + if (errors === _errs55) { if ( - data22 && - typeof data22 == 'object' && - !Array.isArray(data22) + data23 && + typeof data23 == 'object' && + !Array.isArray(data23) ) { let missing4; - if (data22.url === undefined && (missing4 = 'url')) { - const err34 = { + if (data23.url === undefined && (missing4 = 'url')) { + const err36 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -143253,23 +148509,23 @@ function validate190( .required, parentSchema: schema175.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } else { - if (data22.url !== undefined) { - let data23 = data22.url; - const _errs55 = errors; - if (errors === _errs55) { - if (errors === _errs55) { - if (typeof data23 === 'string') { - if (!formats0(data23)) { - const err35 = { + if (data23.url !== undefined) { + let data24 = data23.url; + const _errs57 = errors; + if (errors === _errs57) { + if (errors === _errs57) { + if (typeof data24 === 'string') { + if (!formats0(data24)) { + const err37 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -143281,17 +148537,17 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } } else { - const err36 = { + const err38 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -143305,12 +148561,12 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties.viewer .items.properties.url, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } @@ -143319,7 +148575,7 @@ function validate190( } } } else { - const err37 = { + const err39 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -143331,23 +148587,23 @@ function validate190( .type, parentSchema: schema175.anyOf[1].allOf[0].properties.viewer.items, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } } - var valid12 = _errs53 === errors; + var valid12 = _errs55 === errors; if (!valid12) { break; } } } else { - const err38 = { + const err40 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -143355,40 +148611,40 @@ function validate190( message: 'must be array', schema: schema175.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema175.anyOf[1].allOf[0].properties.viewer, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data24 = data.owner; - const _errs57 = errors; - if (errors === _errs57) { - if (Array.isArray(data24)) { + let data25 = data.owner; + const _errs59 = errors; + if (errors === _errs59) { + if (Array.isArray(data25)) { var valid14 = true; - const len4 = data24.length; + const len4 = data25.length; for (let i4 = 0; i4 < len4; i4++) { - let data25 = data24[i4]; - const _errs59 = errors; - if (errors === _errs59) { + let data26 = data25[i4]; + const _errs61 = errors; + if (errors === _errs61) { if ( - data25 && - typeof data25 == 'object' && - !Array.isArray(data25) + data26 && + typeof data26 == 'object' && + !Array.isArray(data26) ) { let missing5; - if (data25.url === undefined && (missing5 = 'url')) { - const err39 = { + if (data26.url === undefined && (missing5 = 'url')) { + const err41 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -143401,23 +148657,23 @@ function validate190( .required, parentSchema: schema175.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } else { - if (data25.url !== undefined) { - let data26 = data25.url; - const _errs61 = errors; - if (errors === _errs61) { - if (errors === _errs61) { - if (typeof data26 === 'string') { - if (!formats0(data26)) { - const err40 = { + if (data26.url !== undefined) { + let data27 = data26.url; + const _errs63 = errors; + if (errors === _errs63) { + if (errors === _errs63) { + if (typeof data27 === 'string') { + if (!formats0(data27)) { + const err42 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -143430,17 +148686,17 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -143454,12 +148710,12 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[0].properties.owner .items.properties.url, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } @@ -143468,7 +148724,7 @@ function validate190( } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -143480,23 +148736,23 @@ function validate190( .type, parentSchema: schema175.anyOf[1].allOf[0].properties.owner.items, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid14 = _errs59 === errors; + var valid14 = _errs61 === errors; if (!valid14) { break; } } } else { - const err43 = { + const err45 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -143504,20 +148760,77 @@ function validate190( message: 'must be array', schema: schema175.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema175.anyOf[1].allOf[0].properties.owner, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } } - var valid11 = _errs57 === errors; + var valid11 = _errs59 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data28 = data.bookingEndpoint; + const _errs65 = errors; + if (errors === _errs65) { + if (errors === _errs65) { + if (typeof data28 === 'string') { + if (!formats0(data28)) { + const err46 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err46]; + } else { + vErrors.push(err46); + } + errors++; + } + } else { + const err47 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema175.anyOf[1].allOf[0].properties.bookingEndpoint, + data: data28, + }; + if (vErrors === null) { + vErrors = [err47]; + } else { + vErrors.push(err47); + } + errors++; + } + } + } + var valid11 = _errs65 === errors; + } else { + var valid11 = true; + } + } } } } @@ -143525,7 +148838,7 @@ function validate190( } } } else { - const err44 = { + const err48 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -143536,23 +148849,23 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err48]; } else { - vErrors.push(err44); + vErrors.push(err48); } errors++; } } - var valid10 = _errs41 === errors; + var valid10 = _errs43 === errors; if (valid10) { - const _errs63 = errors; - if (errors === _errs63) { + const _errs67 = errors; + if (errors === _errs67) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data27 = data.type; - const _errs65 = errors; - if ('device' !== data27) { - const err45 = { + let data29 = data.type; + const _errs69 = errors; + if ('device' !== data29) { + const err49 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -143560,28 +148873,28 @@ function validate190( message: 'must be equal to constant', schema: 'device', parentSchema: schema175.anyOf[1].allOf[1].properties.type, - data: data27, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err49]; } else { - vErrors.push(err45); + vErrors.push(err49); } errors++; } - var valid16 = _errs65 === errors; + var valid16 = _errs69 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data28 = data.experiment; - const _errs66 = errors; - if (errors === _errs66) { - if (errors === _errs66) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err46 = { + let data30 = data.experiment; + const _errs70 = errors; + if (errors === _errs70) { + if (errors === _errs70) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -143589,17 +148902,17 @@ function validate190( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema175.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err50]; } else { - vErrors.push(err46); + vErrors.push(err50); } errors++; } } else { - const err47 = { + const err51 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -143607,46 +148920,46 @@ function validate190( message: 'must be string', schema: schema175.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema175.anyOf[1].allOf[1].properties.experiment, - data: data28, + data: data30, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err51]; } else { - vErrors.push(err47); + vErrors.push(err51); } errors++; } } } - var valid16 = _errs66 === errors; + var valid16 = _errs70 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data29 = data.services; - const _errs68 = errors; - if (errors === _errs68) { - if (Array.isArray(data29)) { + let data31 = data.services; + const _errs72 = errors; + if (errors === _errs72) { + if (Array.isArray(data31)) { var valid17 = true; - const len5 = data29.length; + const len5 = data31.length; for (let i5 = 0; i5 < len5; i5++) { - let data30 = data29[i5]; - const _errs70 = errors; - if (errors === _errs70) { + let data32 = data31[i5]; + const _errs74 = errors; + if (errors === _errs74) { if ( - data30 && - typeof data30 == 'object' && - !Array.isArray(data30) + data32 && + typeof data32 == 'object' && + !Array.isArray(data32) ) { - if (data30.serviceType !== undefined) { - let data31 = data30.serviceType; - const _errs73 = errors; - if (errors === _errs73) { - if (errors === _errs73) { - if (typeof data31 === 'string') { - if (!formats0(data31)) { - const err48 = { + if (data32.serviceType !== undefined) { + let data33 = data32.serviceType; + const _errs77 = errors; + if (errors === _errs77) { + if (errors === _errs77) { + if (typeof data33 === 'string') { + if (!formats0(data33)) { + const err52 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -143658,17 +148971,17 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } else { - const err49 = { + const err53 = { instancePath: instancePath + '/services/' + i5 + '/serviceType', schemaPath: @@ -143682,27 +148995,27 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } } } - var valid18 = _errs73 === errors; + var valid18 = _errs77 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceId !== undefined) { - let data32 = data30.serviceId; - const _errs75 = errors; - if (typeof data32 !== 'string') { - const err50 = { + if (data32.serviceId !== undefined) { + let data34 = data32.serviceId; + const _errs79 = errors; + if (typeof data34 !== 'string') { + const err54 = { instancePath: instancePath + '/services/' + i5 + '/serviceId', schemaPath: @@ -143716,25 +149029,25 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services.items .properties.serviceId, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid18 = _errs75 === errors; + var valid18 = _errs79 === errors; } else { var valid18 = true; } if (valid18) { - if (data30.serviceDirection !== undefined) { - let data33 = data30.serviceDirection; - const _errs77 = errors; - if (typeof data33 !== 'string') { - const err51 = { + if (data32.serviceDirection !== undefined) { + let data35 = data32.serviceDirection; + const _errs81 = errors; + if (typeof data35 !== 'string') { + const err55 = { instancePath: instancePath + '/services/' + @@ -143751,23 +149064,23 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } if ( !( - data33 === 'consumer' || - data33 === 'producer' || - data33 === 'prosumer' + data35 === 'consumer' || + data35 === 'producer' || + data35 === 'prosumer' ) ) { - const err52 = { + const err56 = { instancePath: instancePath + '/services/' + @@ -143788,23 +149101,23 @@ function validate190( parentSchema: schema175.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } - var valid18 = _errs77 === errors; + var valid18 = _errs81 === errors; } else { var valid18 = true; } } } } else { - const err53 = { + const err57 = { instancePath: instancePath + '/services/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -143815,23 +149128,23 @@ function validate190( schema175.anyOf[1].allOf[1].properties.services.items.type, parentSchema: schema175.anyOf[1].allOf[1].properties.services.items, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } - var valid17 = _errs70 === errors; + var valid17 = _errs74 === errors; if (!valid17) { break; } } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -143839,24 +149152,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[1].allOf[1].properties.services.type, parentSchema: schema175.anyOf[1].allOf[1].properties.services, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } - var valid16 = _errs68 === errors; + var valid16 = _errs72 === errors; } else { var valid16 = true; } } } } else { - const err55 = { + const err59 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -143867,29 +149180,30 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid10 = _errs63 === errors; + var valid10 = _errs67 === errors; } - var _valid0 = _errs40 === errors; + var _valid0 = _errs42 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs79 = errors; - const _errs80 = errors; - if (errors === _errs80) { + const _errs83 = errors; + const _errs84 = errors; + if (errors === _errs84) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err56 = { + const err60 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -143900,17 +149214,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } else { if (data.name !== undefined) { - let data34 = data.name; - const _errs82 = errors; - if (typeof data34 !== 'string') { - const err57 = { + let data36 = data.name; + const _errs86 = errors; + if (typeof data36 !== 'string') { + const err61 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -143918,25 +149232,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[0].properties.name.type, parentSchema: schema175.anyOf[2].allOf[0].properties.name, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } - var valid20 = _errs82 === errors; + var valid20 = _errs86 === errors; } else { var valid20 = true; } if (valid20) { if (data.description !== undefined) { - let data35 = data.description; - const _errs84 = errors; - if (typeof data35 !== 'string') { - const err58 = { + let data37 = data.description; + const _errs88 = errors; + if (typeof data37 !== 'string') { + const err62 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -143944,25 +149258,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[0].properties.description.type, parentSchema: schema175.anyOf[2].allOf[0].properties.description, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } - var valid20 = _errs84 === errors; + var valid20 = _errs88 === errors; } else { var valid20 = true; } if (valid20) { if (data.type !== undefined) { - let data36 = data.type; - const _errs86 = errors; - if (typeof data36 !== 'string') { - const err59 = { + let data38 = data.type; + const _errs90 = errors; + if (typeof data38 !== 'string') { + const err63 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -143970,24 +149284,24 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[0].properties.type.type, parentSchema: schema175.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } if ( !( - data36 === 'device' || - data36 === 'group' || - data36 === 'edge instantiable' || - data36 === 'cloud instantiable' + data38 === 'device' || + data38 === 'group' || + data38 === 'edge instantiable' || + data38 === 'cloud instantiable' ) ) { - const err60 = { + const err64 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -143997,25 +149311,25 @@ function validate190( message: 'must be equal to one of the allowed values', schema: schema175.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema175.anyOf[2].allOf[0].properties.type, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } - var valid20 = _errs86 === errors; + var valid20 = _errs90 === errors; } else { var valid20 = true; } if (valid20) { if (data.isPublic !== undefined) { - let data37 = data.isPublic; - const _errs88 = errors; - if (typeof data37 !== 'boolean') { - const err61 = { + let data39 = data.isPublic; + const _errs92 = errors; + if (typeof data39 !== 'boolean') { + const err65 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -144023,39 +149337,39 @@ function validate190( message: 'must be boolean', schema: schema175.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema175.anyOf[2].allOf[0].properties.isPublic, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs88 === errors; + var valid20 = _errs92 === errors; } else { var valid20 = true; } if (valid20) { if (data.viewer !== undefined) { - let data38 = data.viewer; - const _errs90 = errors; - if (errors === _errs90) { - if (Array.isArray(data38)) { + let data40 = data.viewer; + const _errs94 = errors; + if (errors === _errs94) { + if (Array.isArray(data40)) { var valid21 = true; - const len6 = data38.length; + const len6 = data40.length; for (let i6 = 0; i6 < len6; i6++) { - let data39 = data38[i6]; - const _errs92 = errors; - if (errors === _errs92) { + let data41 = data40[i6]; + const _errs96 = errors; + if (errors === _errs96) { if ( - data39 && - typeof data39 == 'object' && - !Array.isArray(data39) + data41 && + typeof data41 == 'object' && + !Array.isArray(data41) ) { let missing7; - if (data39.url === undefined && (missing7 = 'url')) { - const err62 = { + if (data41.url === undefined && (missing7 = 'url')) { + const err66 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -144068,23 +149382,23 @@ function validate190( .required, parentSchema: schema175.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } else { - if (data39.url !== undefined) { - let data40 = data39.url; - const _errs94 = errors; - if (errors === _errs94) { - if (errors === _errs94) { - if (typeof data40 === 'string') { - if (!formats0(data40)) { - const err63 = { + if (data41.url !== undefined) { + let data42 = data41.url; + const _errs98 = errors; + if (errors === _errs98) { + if (errors === _errs98) { + if (typeof data42 === 'string') { + if (!formats0(data42)) { + const err67 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -144097,17 +149411,17 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/viewer/' + i6 + '/url', schemaPath: @@ -144121,12 +149435,12 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } @@ -144135,7 +149449,7 @@ function validate190( } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/viewer/' + i6, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -144147,23 +149461,23 @@ function validate190( .type, parentSchema: schema175.anyOf[2].allOf[0].properties.viewer.items, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid21 = _errs92 === errors; + var valid21 = _errs96 === errors; if (!valid21) { break; } } } else { - const err66 = { + const err70 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -144171,40 +149485,40 @@ function validate190( message: 'must be array', schema: schema175.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema175.anyOf[2].allOf[0].properties.viewer, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid20 = _errs90 === errors; + var valid20 = _errs94 === errors; } else { var valid20 = true; } if (valid20) { if (data.owner !== undefined) { - let data41 = data.owner; - const _errs96 = errors; - if (errors === _errs96) { - if (Array.isArray(data41)) { + let data43 = data.owner; + const _errs100 = errors; + if (errors === _errs100) { + if (Array.isArray(data43)) { var valid23 = true; - const len7 = data41.length; + const len7 = data43.length; for (let i7 = 0; i7 < len7; i7++) { - let data42 = data41[i7]; - const _errs98 = errors; - if (errors === _errs98) { + let data44 = data43[i7]; + const _errs102 = errors; + if (errors === _errs102) { if ( - data42 && - typeof data42 == 'object' && - !Array.isArray(data42) + data44 && + typeof data44 == 'object' && + !Array.isArray(data44) ) { let missing8; - if (data42.url === undefined && (missing8 = 'url')) { - const err67 = { + if (data44.url === undefined && (missing8 = 'url')) { + const err71 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -144218,23 +149532,23 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties.owner .items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { - if (data42.url !== undefined) { - let data43 = data42.url; - const _errs100 = errors; - if (errors === _errs100) { - if (errors === _errs100) { - if (typeof data43 === 'string') { - if (!formats0(data43)) { - const err68 = { + if (data44.url !== undefined) { + let data45 = data44.url; + const _errs104 = errors; + if (errors === _errs104) { + if (errors === _errs104) { + if (typeof data45 === 'string') { + if (!formats0(data45)) { + const err72 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -144247,17 +149561,17 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/owner/' + i7 + '/url', schemaPath: @@ -144271,12 +149585,12 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } @@ -144285,7 +149599,7 @@ function validate190( } } } else { - const err70 = { + const err74 = { instancePath: instancePath + '/owner/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -144297,23 +149611,23 @@ function validate190( .type, parentSchema: schema175.anyOf[2].allOf[0].properties.owner.items, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } } - var valid23 = _errs98 === errors; + var valid23 = _errs102 === errors; if (!valid23) { break; } } } else { - const err71 = { + const err75 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -144321,20 +149635,78 @@ function validate190( message: 'must be array', schema: schema175.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema175.anyOf[2].allOf[0].properties.owner, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } } - var valid20 = _errs96 === errors; + var valid20 = _errs100 === errors; } else { var valid20 = true; } + if (valid20) { + if (data.bookingEndpoint !== undefined) { + let data46 = data.bookingEndpoint; + const _errs106 = errors; + if (errors === _errs106) { + if (errors === _errs106) { + if (typeof data46 === 'string') { + if (!formats0(data46)) { + const err76 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err76]; + } else { + vErrors.push(err76); + } + errors++; + } + } else { + const err77 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[2].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema175.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data46, + }; + if (vErrors === null) { + vErrors = [err77]; + } else { + vErrors.push(err77); + } + errors++; + } + } + } + var valid20 = _errs106 === errors; + } else { + var valid20 = true; + } + } } } } @@ -144342,7 +149714,7 @@ function validate190( } } } else { - const err72 = { + const err78 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -144353,23 +149725,23 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err78]; } else { - vErrors.push(err72); + vErrors.push(err78); } errors++; } } - var valid19 = _errs80 === errors; + var valid19 = _errs84 === errors; if (valid19) { - const _errs102 = errors; - if (errors === _errs102) { + const _errs108 = errors; + if (errors === _errs108) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data44 = data.type; - const _errs104 = errors; - if ('edge instantiable' !== data44) { - const err73 = { + let data47 = data.type; + const _errs110 = errors; + if ('edge instantiable' !== data47) { + const err79 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -144377,28 +149749,28 @@ function validate190( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema175.anyOf[2].allOf[1].properties.type, - data: data44, + data: data47, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err79]; } else { - vErrors.push(err73); + vErrors.push(err79); } errors++; } - var valid25 = _errs104 === errors; + var valid25 = _errs110 === errors; } else { var valid25 = true; } if (valid25) { if (data.codeUrl !== undefined) { - let data45 = data.codeUrl; - const _errs105 = errors; - if (errors === _errs105) { - if (errors === _errs105) { - if (typeof data45 === 'string') { - if (!formats0(data45)) { - const err74 = { + let data48 = data.codeUrl; + const _errs111 = errors; + if (errors === _errs111) { + if (errors === _errs111) { + if (typeof data48 === 'string') { + if (!formats0(data48)) { + const err80 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -144406,17 +149778,17 @@ function validate190( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema175.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err80]; } else { - vErrors.push(err74); + vErrors.push(err80); } errors++; } } else { - const err75 = { + const err81 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -144424,46 +149796,46 @@ function validate190( message: 'must be string', schema: schema175.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema175.anyOf[2].allOf[1].properties.codeUrl, - data: data45, + data: data48, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err81]; } else { - vErrors.push(err75); + vErrors.push(err81); } errors++; } } } - var valid25 = _errs105 === errors; + var valid25 = _errs111 === errors; } else { var valid25 = true; } if (valid25) { if (data.services !== undefined) { - let data46 = data.services; - const _errs107 = errors; - if (errors === _errs107) { - if (Array.isArray(data46)) { + let data49 = data.services; + const _errs113 = errors; + if (errors === _errs113) { + if (Array.isArray(data49)) { var valid26 = true; - const len8 = data46.length; + const len8 = data49.length; for (let i8 = 0; i8 < len8; i8++) { - let data47 = data46[i8]; - const _errs109 = errors; - if (errors === _errs109) { + let data50 = data49[i8]; + const _errs115 = errors; + if (errors === _errs115) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data50 && + typeof data50 == 'object' && + !Array.isArray(data50) ) { - if (data47.serviceType !== undefined) { - let data48 = data47.serviceType; - const _errs112 = errors; - if (errors === _errs112) { - if (errors === _errs112) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data50.serviceType !== undefined) { + let data51 = data50.serviceType; + const _errs118 = errors; + if (errors === _errs118) { + if (errors === _errs118) { + if (typeof data51 === 'string') { + if (!formats0(data51)) { + const err82 = { instancePath: instancePath + '/services/' + @@ -144478,17 +149850,17 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err82]; } else { - vErrors.push(err76); + vErrors.push(err82); } errors++; } } else { - const err77 = { + const err83 = { instancePath: instancePath + '/services/' + i8 + '/serviceType', schemaPath: @@ -144502,27 +149874,27 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data48, + data: data51, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err83]; } else { - vErrors.push(err77); + vErrors.push(err83); } errors++; } } } - var valid27 = _errs112 === errors; + var valid27 = _errs118 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceId !== undefined) { - let data49 = data47.serviceId; - const _errs114 = errors; - if (typeof data49 !== 'string') { - const err78 = { + if (data50.serviceId !== undefined) { + let data52 = data50.serviceId; + const _errs120 = errors; + if (typeof data52 !== 'string') { + const err84 = { instancePath: instancePath + '/services/' + i8 + '/serviceId', schemaPath: @@ -144536,25 +149908,25 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data49, + data: data52, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err84]; } else { - vErrors.push(err78); + vErrors.push(err84); } errors++; } - var valid27 = _errs114 === errors; + var valid27 = _errs120 === errors; } else { var valid27 = true; } if (valid27) { - if (data47.serviceDirection !== undefined) { - let data50 = data47.serviceDirection; - const _errs116 = errors; - if (typeof data50 !== 'string') { - const err79 = { + if (data50.serviceDirection !== undefined) { + let data53 = data50.serviceDirection; + const _errs122 = errors; + if (typeof data53 !== 'string') { + const err85 = { instancePath: instancePath + '/services/' + @@ -144571,23 +149943,23 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err85]; } else { - vErrors.push(err79); + vErrors.push(err85); } errors++; } if ( !( - data50 === 'consumer' || - data50 === 'producer' || - data50 === 'prosumer' + data53 === 'consumer' || + data53 === 'producer' || + data53 === 'prosumer' ) ) { - const err80 = { + const err86 = { instancePath: instancePath + '/services/' + @@ -144609,23 +149981,23 @@ function validate190( parentSchema: schema175.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data50, + data: data53, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err86]; } else { - vErrors.push(err80); + vErrors.push(err86); } errors++; } - var valid27 = _errs116 === errors; + var valid27 = _errs122 === errors; } else { var valid27 = true; } } } } else { - const err81 = { + const err87 = { instancePath: instancePath + '/services/' + i8, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -144637,23 +150009,23 @@ function validate190( .type, parentSchema: schema175.anyOf[2].allOf[1].properties.services.items, - data: data47, + data: data50, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err87]; } else { - vErrors.push(err81); + vErrors.push(err87); } errors++; } } - var valid26 = _errs109 === errors; + var valid26 = _errs115 === errors; if (!valid26) { break; } } } else { - const err82 = { + const err88 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -144661,24 +150033,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[2].allOf[1].properties.services.type, parentSchema: schema175.anyOf[2].allOf[1].properties.services, - data: data46, + data: data49, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err88]; } else { - vErrors.push(err82); + vErrors.push(err88); } errors++; } } - var valid25 = _errs107 === errors; + var valid25 = _errs113 === errors; } else { var valid25 = true; } } } } else { - const err83 = { + const err89 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -144689,29 +150061,30 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err89]; } else { - vErrors.push(err83); + vErrors.push(err89); } errors++; } } - var valid19 = _errs102 === errors; + var valid19 = _errs108 === errors; } - var _valid0 = _errs79 === errors; + var _valid0 = _errs83 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs118 = errors; - const _errs119 = errors; - if (errors === _errs119) { + const _errs124 = errors; + const _errs125 = errors; + if (errors === _errs125) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err84 = { + const err90 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -144722,17 +150095,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err90]; } else { - vErrors.push(err84); + vErrors.push(err90); } errors++; } else { if (data.name !== undefined) { - let data51 = data.name; - const _errs121 = errors; - if (typeof data51 !== 'string') { - const err85 = { + let data54 = data.name; + const _errs127 = errors; + if (typeof data54 !== 'string') { + const err91 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -144740,25 +150113,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[3].allOf[0].properties.name.type, parentSchema: schema175.anyOf[3].allOf[0].properties.name, - data: data51, + data: data54, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } - var valid29 = _errs121 === errors; + var valid29 = _errs127 === errors; } else { var valid29 = true; } if (valid29) { if (data.description !== undefined) { - let data52 = data.description; - const _errs123 = errors; - if (typeof data52 !== 'string') { - const err86 = { + let data55 = data.description; + const _errs129 = errors; + if (typeof data55 !== 'string') { + const err92 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -144766,25 +150139,25 @@ function validate190( message: 'must be string', schema: schema175.anyOf[3].allOf[0].properties.description.type, parentSchema: schema175.anyOf[3].allOf[0].properties.description, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid29 = _errs123 === errors; + var valid29 = _errs129 === errors; } else { var valid29 = true; } if (valid29) { if (data.type !== undefined) { - let data53 = data.type; - const _errs125 = errors; - if (typeof data53 !== 'string') { - const err87 = { + let data56 = data.type; + const _errs131 = errors; + if (typeof data56 !== 'string') { + const err93 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -144792,24 +150165,24 @@ function validate190( message: 'must be string', schema: schema175.anyOf[3].allOf[0].properties.type.type, parentSchema: schema175.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } if ( !( - data53 === 'device' || - data53 === 'group' || - data53 === 'edge instantiable' || - data53 === 'cloud instantiable' + data56 === 'device' || + data56 === 'group' || + data56 === 'edge instantiable' || + data56 === 'cloud instantiable' ) ) { - const err88 = { + const err94 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -144819,25 +150192,25 @@ function validate190( message: 'must be equal to one of the allowed values', schema: schema175.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema175.anyOf[3].allOf[0].properties.type, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } - var valid29 = _errs125 === errors; + var valid29 = _errs131 === errors; } else { var valid29 = true; } if (valid29) { if (data.isPublic !== undefined) { - let data54 = data.isPublic; - const _errs127 = errors; - if (typeof data54 !== 'boolean') { - const err89 = { + let data57 = data.isPublic; + const _errs133 = errors; + if (typeof data57 !== 'boolean') { + const err95 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -144845,39 +150218,39 @@ function validate190( message: 'must be boolean', schema: schema175.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema175.anyOf[3].allOf[0].properties.isPublic, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } - var valid29 = _errs127 === errors; + var valid29 = _errs133 === errors; } else { var valid29 = true; } if (valid29) { if (data.viewer !== undefined) { - let data55 = data.viewer; - const _errs129 = errors; - if (errors === _errs129) { - if (Array.isArray(data55)) { + let data58 = data.viewer; + const _errs135 = errors; + if (errors === _errs135) { + if (Array.isArray(data58)) { var valid30 = true; - const len9 = data55.length; + const len9 = data58.length; for (let i9 = 0; i9 < len9; i9++) { - let data56 = data55[i9]; - const _errs131 = errors; - if (errors === _errs131) { + let data59 = data58[i9]; + const _errs137 = errors; + if (errors === _errs137) { if ( - data56 && - typeof data56 == 'object' && - !Array.isArray(data56) + data59 && + typeof data59 == 'object' && + !Array.isArray(data59) ) { let missing10; - if (data56.url === undefined && (missing10 = 'url')) { - const err90 = { + if (data59.url === undefined && (missing10 = 'url')) { + const err96 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -144891,23 +150264,23 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties.viewer .items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } else { - if (data56.url !== undefined) { - let data57 = data56.url; - const _errs133 = errors; - if (errors === _errs133) { - if (errors === _errs133) { - if (typeof data57 === 'string') { - if (!formats0(data57)) { - const err91 = { + if (data59.url !== undefined) { + let data60 = data59.url; + const _errs139 = errors; + if (errors === _errs139) { + if (errors === _errs139) { + if (typeof data60 === 'string') { + if (!formats0(data60)) { + const err97 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -144920,17 +150293,17 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } } else { - const err92 = { + const err98 = { instancePath: instancePath + '/viewer/' + i9 + '/url', schemaPath: @@ -144944,12 +150317,12 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } @@ -144958,7 +150331,7 @@ function validate190( } } } else { - const err93 = { + const err99 = { instancePath: instancePath + '/viewer/' + i9, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -144970,23 +150343,23 @@ function validate190( .type, parentSchema: schema175.anyOf[3].allOf[0].properties.viewer.items, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } } - var valid30 = _errs131 === errors; + var valid30 = _errs137 === errors; if (!valid30) { break; } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -144994,40 +150367,40 @@ function validate190( message: 'must be array', schema: schema175.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema175.anyOf[3].allOf[0].properties.viewer, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid29 = _errs129 === errors; + var valid29 = _errs135 === errors; } else { var valid29 = true; } if (valid29) { if (data.owner !== undefined) { - let data58 = data.owner; - const _errs135 = errors; - if (errors === _errs135) { - if (Array.isArray(data58)) { + let data61 = data.owner; + const _errs141 = errors; + if (errors === _errs141) { + if (Array.isArray(data61)) { var valid32 = true; - const len10 = data58.length; + const len10 = data61.length; for (let i10 = 0; i10 < len10; i10++) { - let data59 = data58[i10]; - const _errs137 = errors; - if (errors === _errs137) { + let data62 = data61[i10]; + const _errs143 = errors; + if (errors === _errs143) { if ( - data59 && - typeof data59 == 'object' && - !Array.isArray(data59) + data62 && + typeof data62 == 'object' && + !Array.isArray(data62) ) { let missing11; - if (data59.url === undefined && (missing11 = 'url')) { - const err95 = { + if (data62.url === undefined && (missing11 = 'url')) { + const err101 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -145043,23 +150416,23 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } else { - if (data59.url !== undefined) { - let data60 = data59.url; - const _errs139 = errors; - if (errors === _errs139) { - if (errors === _errs139) { - if (typeof data60 === 'string') { - if (!formats0(data60)) { - const err96 = { + if (data62.url !== undefined) { + let data63 = data62.url; + const _errs145 = errors; + if (errors === _errs145) { + if (errors === _errs145) { + if (typeof data63 === 'string') { + if (!formats0(data63)) { + const err102 = { instancePath: instancePath + '/owner/' + @@ -145075,17 +150448,17 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } else { - const err97 = { + const err103 = { instancePath: instancePath + '/owner/' + i10 + '/url', schemaPath: @@ -145099,12 +150472,12 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } @@ -145113,7 +150486,7 @@ function validate190( } } } else { - const err98 = { + const err104 = { instancePath: instancePath + '/owner/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -145126,23 +150499,23 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[0].properties.owner .items, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } - var valid32 = _errs137 === errors; + var valid32 = _errs143 === errors; if (!valid32) { break; } } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -145151,20 +150524,78 @@ function validate190( schema: schema175.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema175.anyOf[3].allOf[0].properties.owner, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } - var valid29 = _errs135 === errors; + var valid29 = _errs141 === errors; } else { var valid29 = true; } + if (valid29) { + if (data.bookingEndpoint !== undefined) { + let data64 = data.bookingEndpoint; + const _errs147 = errors; + if (errors === _errs147) { + if (errors === _errs147) { + if (typeof data64 === 'string') { + if (!formats0(data64)) { + const err106 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema175.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err106]; + } else { + vErrors.push(err106); + } + errors++; + } + } else { + const err107 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema175.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema175.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data64, + }; + if (vErrors === null) { + vErrors = [err107]; + } else { + vErrors.push(err107); + } + errors++; + } + } + } + var valid29 = _errs147 === errors; + } else { + var valid29 = true; + } + } } } } @@ -145172,7 +150603,7 @@ function validate190( } } } else { - const err100 = { + const err108 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -145183,21 +150614,21 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err108]; } else { - vErrors.push(err100); + vErrors.push(err108); } errors++; } } - var valid28 = _errs119 === errors; + var valid28 = _errs125 === errors; if (valid28) { - const _errs141 = errors; - if (errors === _errs141) { + const _errs149 = errors; + if (errors === _errs149) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err101 = { + const err109 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -145208,17 +150639,17 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err109]; } else { - vErrors.push(err101); + vErrors.push(err109); } errors++; } else { if (data.type !== undefined) { - let data61 = data.type; - const _errs143 = errors; - if ('group' !== data61) { - const err102 = { + let data65 = data.type; + const _errs151 = errors; + if ('group' !== data65) { + const err110 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -145226,39 +150657,39 @@ function validate190( message: 'must be equal to constant', schema: 'group', parentSchema: schema175.anyOf[3].allOf[1].properties.type, - data: data61, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err110]; } else { - vErrors.push(err102); + vErrors.push(err110); } errors++; } - var valid34 = _errs143 === errors; + var valid34 = _errs151 === errors; } else { var valid34 = true; } if (valid34) { if (data.devices !== undefined) { - let data62 = data.devices; - const _errs144 = errors; - if (errors === _errs144) { - if (Array.isArray(data62)) { + let data66 = data.devices; + const _errs152 = errors; + if (errors === _errs152) { + if (Array.isArray(data66)) { var valid35 = true; - const len11 = data62.length; + const len11 = data66.length; for (let i11 = 0; i11 < len11; i11++) { - let data63 = data62[i11]; - const _errs146 = errors; - if (errors === _errs146) { + let data67 = data66[i11]; + const _errs154 = errors; + if (errors === _errs154) { if ( - data63 && - typeof data63 == 'object' && - !Array.isArray(data63) + data67 && + typeof data67 == 'object' && + !Array.isArray(data67) ) { let missing13; - if (data63.url === undefined && (missing13 = 'url')) { - const err103 = { + if (data67.url === undefined && (missing13 = 'url')) { + const err111 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -145271,23 +150702,23 @@ function validate190( .required, parentSchema: schema175.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err111]; } else { - vErrors.push(err103); + vErrors.push(err111); } errors++; } else { - if (data63.url !== undefined) { - let data64 = data63.url; - const _errs148 = errors; - if (errors === _errs148) { - if (errors === _errs148) { - if (typeof data64 === 'string') { - if (!formats0(data64)) { - const err104 = { + if (data67.url !== undefined) { + let data68 = data67.url; + const _errs156 = errors; + if (errors === _errs156) { + if (errors === _errs156) { + if (typeof data68 === 'string') { + if (!formats0(data68)) { + const err112 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -145299,17 +150730,17 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err112]; } else { - vErrors.push(err104); + vErrors.push(err112); } errors++; } } else { - const err105 = { + const err113 = { instancePath: instancePath + '/devices/' + i11 + '/url', schemaPath: @@ -145323,12 +150754,12 @@ function validate190( parentSchema: schema175.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data64, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err113]; } else { - vErrors.push(err105); + vErrors.push(err113); } errors++; } @@ -145337,7 +150768,7 @@ function validate190( } } } else { - const err106 = { + const err114 = { instancePath: instancePath + '/devices/' + i11, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -145349,23 +150780,23 @@ function validate190( .type, parentSchema: schema175.anyOf[3].allOf[1].properties.devices.items, - data: data63, + data: data67, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err114]; } else { - vErrors.push(err106); + vErrors.push(err114); } errors++; } } - var valid35 = _errs146 === errors; + var valid35 = _errs154 === errors; if (!valid35) { break; } } } else { - const err107 = { + const err115 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -145373,24 +150804,24 @@ function validate190( message: 'must be array', schema: schema175.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema175.anyOf[3].allOf[1].properties.devices, - data: data62, + data: data66, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err115]; } else { - vErrors.push(err107); + vErrors.push(err115); } errors++; } } - var valid34 = _errs144 === errors; + var valid34 = _errs152 === errors; } else { var valid34 = true; } } } } else { - const err108 = { + const err116 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -145401,22 +150832,22 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err116]; } else { - vErrors.push(err108); + vErrors.push(err116); } errors++; } } - var valid28 = _errs141 === errors; + var valid28 = _errs149 === errors; } - var _valid0 = _errs118 === errors; + var _valid0 = _errs124 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err109 = { + const err117 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -145427,9 +150858,9 @@ function validate190( data, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err117]; } else { - vErrors.push(err109); + vErrors.push(err117); } errors++; validate190.errors = vErrors; @@ -145502,8 +150933,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145583,8 +151019,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145685,8 +151126,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145766,8 +151212,13 @@ const schema176 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -145820,7 +151271,8 @@ function validate191( (data.url === undefined && (missing0 = 'url')) || (data.type === undefined && (missing0 = 'type')) || (data.name === undefined && (missing0 = 'name')) || - (data.isPublic === undefined && (missing0 = 'isPublic')) + (data.isPublic === undefined && (missing0 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing0 = 'bookingEndpoint')) ) { const err0 = { instancePath, @@ -146315,6 +151767,63 @@ function validate191( } else { var valid2 = true; } + if (valid2) { + if (data.bookingEndpoint !== undefined) { + let data11 = data.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + const err18 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[0].allOf[0].properties + .bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err18]; + } else { + vErrors.push(err18); + } + errors++; + } + } else { + const err19 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/0/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[0].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema176.anyOf[0].allOf[0].properties.bookingEndpoint, + data: data11, + }; + if (vErrors === null) { + vErrors = [err19]; + } else { + vErrors.push(err19); + } + errors++; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -146323,7 +151832,7 @@ function validate191( } } } else { - const err18 = { + const err20 = { instancePath, schemaPath: '#/anyOf/0/allOf/0/type', keyword: 'type', @@ -146334,23 +151843,23 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err18]; + vErrors = [err20]; } else { - vErrors.push(err18); + vErrors.push(err20); } errors++; } } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data11 = data.type; - const _errs28 = errors; - if ('cloud instantiable' !== data11) { - const err19 = { + let data12 = data.type; + const _errs30 = errors; + if ('cloud instantiable' !== data12) { + const err21 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/0/allOf/1/properties/type/const', keyword: 'const', @@ -146358,28 +151867,28 @@ function validate191( message: 'must be equal to constant', schema: 'cloud instantiable', parentSchema: schema176.anyOf[0].allOf[1].properties.type, - data: data11, + data: data12, }; if (vErrors === null) { - vErrors = [err19]; + vErrors = [err21]; } else { - vErrors.push(err19); + vErrors.push(err21); } errors++; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data.instantiateUrl !== undefined) { - let data12 = data.instantiateUrl; - const _errs29 = errors; - if (errors === _errs29) { - if (errors === _errs29) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { - const err20 = { + let data13 = data.instantiateUrl; + const _errs31 = errors; + if (errors === _errs31) { + if (errors === _errs31) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { + const err22 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/format', keyword: 'format', @@ -146387,17 +151896,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err20]; + vErrors = [err22]; } else { - vErrors.push(err20); + vErrors.push(err22); } errors++; } } else { - const err21 = { + const err23 = { instancePath: instancePath + '/instantiateUrl', schemaPath: '#/anyOf/0/allOf/1/properties/instantiateUrl/type', keyword: 'type', @@ -146405,42 +151914,42 @@ function validate191( message: 'must be string', schema: schema176.anyOf[0].allOf[1].properties.instantiateUrl.type, parentSchema: schema176.anyOf[0].allOf[1].properties.instantiateUrl, - data: data12, + data: data13, }; if (vErrors === null) { - vErrors = [err21]; + vErrors = [err23]; } else { - vErrors.push(err21); + vErrors.push(err23); } errors++; } } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data.services !== undefined) { - let data13 = data.services; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data13)) { + let data14 = data.services; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs33 = errors; - if (errors === _errs33) { - if (data14 && typeof data14 == 'object' && !Array.isArray(data14)) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs36 = errors; - if (errors === _errs36) { - if (errors === _errs36) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { - const err22 = { + let data15 = data14[i2]; + const _errs35 = errors; + if (errors === _errs35) { + if (data15 && typeof data15 == 'object' && !Array.isArray(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs38 = errors; + if (errors === _errs38) { + if (errors === _errs38) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { + const err24 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -146452,17 +151961,17 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services .items.properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err22]; + vErrors = [err24]; } else { - vErrors.push(err22); + vErrors.push(err24); } errors++; } } else { - const err23 = { + const err25 = { instancePath: instancePath + '/services/' + i2 + '/serviceType', schemaPath: @@ -146476,27 +151985,27 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceType, - data: data15, + data: data16, }; if (vErrors === null) { - vErrors = [err23]; + vErrors = [err25]; } else { - vErrors.push(err23); + vErrors.push(err25); } errors++; } } } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs38 = errors; - if (typeof data16 !== 'string') { - const err24 = { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs40 = errors; + if (typeof data17 !== 'string') { + const err26 = { instancePath: instancePath + '/services/' + i2 + '/serviceId', schemaPath: @@ -146510,25 +152019,25 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceId, - data: data16, + data: data17, }; if (vErrors === null) { - vErrors = [err24]; + vErrors = [err26]; } else { - vErrors.push(err24); + vErrors.push(err26); } errors++; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs40 = errors; - if (typeof data17 !== 'string') { - const err25 = { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs42 = errors; + if (typeof data18 !== 'string') { + const err27 = { instancePath: instancePath + '/services/' + @@ -146545,23 +152054,23 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err25]; + vErrors = [err27]; } else { - vErrors.push(err25); + vErrors.push(err27); } errors++; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { - const err26 = { + const err28 = { instancePath: instancePath + '/services/' + @@ -146582,23 +152091,23 @@ function validate191( parentSchema: schema176.anyOf[0].allOf[1].properties.services.items .properties.serviceDirection, - data: data17, + data: data18, }; if (vErrors === null) { - vErrors = [err26]; + vErrors = [err28]; } else { - vErrors.push(err26); + vErrors.push(err28); } errors++; } - var valid9 = _errs40 === errors; + var valid9 = _errs42 === errors; } else { var valid9 = true; } } } } else { - const err27 = { + const err29 = { instancePath: instancePath + '/services/' + i2, schemaPath: '#/anyOf/0/allOf/1/properties/services/items/type', keyword: 'type', @@ -146608,23 +152117,23 @@ function validate191( schema176.anyOf[0].allOf[1].properties.services.items.type, parentSchema: schema176.anyOf[0].allOf[1].properties.services.items, - data: data14, + data: data15, }; if (vErrors === null) { - vErrors = [err27]; + vErrors = [err29]; } else { - vErrors.push(err27); + vErrors.push(err29); } errors++; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } } } else { - const err28 = { + const err30 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/0/allOf/1/properties/services/type', keyword: 'type', @@ -146632,24 +152141,24 @@ function validate191( message: 'must be array', schema: schema176.anyOf[0].allOf[1].properties.services.type, parentSchema: schema176.anyOf[0].allOf[1].properties.services, - data: data13, + data: data14, }; if (vErrors === null) { - vErrors = [err28]; + vErrors = [err30]; } else { - vErrors.push(err28); + vErrors.push(err30); } errors++; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } } } } else { - const err29 = { + const err31 = { instancePath, schemaPath: '#/anyOf/0/allOf/1/type', keyword: 'type', @@ -146660,30 +152169,31 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err29]; + vErrors = [err31]; } else { - vErrors.push(err29); + vErrors.push(err31); } errors++; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs42 = errors; - const _errs43 = errors; - if (errors === _errs43) { + const _errs44 = errors; + const _errs45 = errors; + if (errors === _errs45) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing3; if ( (data.url === undefined && (missing3 = 'url')) || (data.type === undefined && (missing3 = 'type')) || (data.name === undefined && (missing3 = 'name')) || - (data.isPublic === undefined && (missing3 = 'isPublic')) + (data.isPublic === undefined && (missing3 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing3 = 'bookingEndpoint')) ) { - const err30 = { + const err32 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/required', keyword: 'required', @@ -146694,20 +152204,20 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err30]; + vErrors = [err32]; } else { - vErrors.push(err30); + vErrors.push(err32); } errors++; } else { if (data.url !== undefined) { - let data18 = data.url; - const _errs45 = errors; - if (errors === _errs45) { - if (errors === _errs45) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { - const err31 = { + let data19 = data.url; + const _errs47 = errors; + if (errors === _errs47) { + if (errors === _errs47) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { + const err33 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/format', keyword: 'format', @@ -146715,17 +152225,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err31]; + vErrors = [err33]; } else { - vErrors.push(err31); + vErrors.push(err33); } errors++; } } else { - const err32 = { + const err34 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/1/allOf/0/properties/url/type', keyword: 'type', @@ -146733,27 +152243,27 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.url.type, parentSchema: schema176.anyOf[1].allOf[0].properties.url, - data: data18, + data: data19, }; if (vErrors === null) { - vErrors = [err32]; + vErrors = [err34]; } else { - vErrors.push(err32); + vErrors.push(err34); } errors++; } } } - var valid11 = _errs45 === errors; + var valid11 = _errs47 === errors; } else { var valid11 = true; } if (valid11) { if (data.name !== undefined) { - let data19 = data.name; - const _errs47 = errors; - if (typeof data19 !== 'string') { - const err33 = { + let data20 = data.name; + const _errs49 = errors; + if (typeof data20 !== 'string') { + const err35 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/1/allOf/0/properties/name/type', keyword: 'type', @@ -146761,25 +152271,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.name.type, parentSchema: schema176.anyOf[1].allOf[0].properties.name, - data: data19, + data: data20, }; if (vErrors === null) { - vErrors = [err33]; + vErrors = [err35]; } else { - vErrors.push(err33); + vErrors.push(err35); } errors++; } - var valid11 = _errs47 === errors; + var valid11 = _errs49 === errors; } else { var valid11 = true; } if (valid11) { if (data.description !== undefined) { - let data20 = data.description; - const _errs49 = errors; - if (typeof data20 !== 'string') { - const err34 = { + let data21 = data.description; + const _errs51 = errors; + if (typeof data21 !== 'string') { + const err36 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/1/allOf/0/properties/description/type', keyword: 'type', @@ -146787,25 +152297,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.description.type, parentSchema: schema176.anyOf[1].allOf[0].properties.description, - data: data20, + data: data21, }; if (vErrors === null) { - vErrors = [err34]; + vErrors = [err36]; } else { - vErrors.push(err34); + vErrors.push(err36); } errors++; } - var valid11 = _errs49 === errors; + var valid11 = _errs51 === errors; } else { var valid11 = true; } if (valid11) { if (data.type !== undefined) { - let data21 = data.type; - const _errs51 = errors; - if (typeof data21 !== 'string') { - const err35 = { + let data22 = data.type; + const _errs53 = errors; + if (typeof data22 !== 'string') { + const err37 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/type', keyword: 'type', @@ -146813,24 +152323,24 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[0].properties.type.type, parentSchema: schema176.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err35]; + vErrors = [err37]; } else { - vErrors.push(err35); + vErrors.push(err37); } errors++; } if ( !( - data21 === 'device' || - data21 === 'group' || - data21 === 'edge instantiable' || - data21 === 'cloud instantiable' + data22 === 'device' || + data22 === 'group' || + data22 === 'edge instantiable' || + data22 === 'cloud instantiable' ) ) { - const err36 = { + const err38 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/0/properties/type/enum', keyword: 'enum', @@ -146840,25 +152350,25 @@ function validate191( message: 'must be equal to one of the allowed values', schema: schema176.anyOf[1].allOf[0].properties.type.enum, parentSchema: schema176.anyOf[1].allOf[0].properties.type, - data: data21, + data: data22, }; if (vErrors === null) { - vErrors = [err36]; + vErrors = [err38]; } else { - vErrors.push(err36); + vErrors.push(err38); } errors++; } - var valid11 = _errs51 === errors; + var valid11 = _errs53 === errors; } else { var valid11 = true; } if (valid11) { if (data.isPublic !== undefined) { - let data22 = data.isPublic; - const _errs53 = errors; - if (typeof data22 !== 'boolean') { - const err37 = { + let data23 = data.isPublic; + const _errs55 = errors; + if (typeof data23 !== 'boolean') { + const err39 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/1/allOf/0/properties/isPublic/type', keyword: 'type', @@ -146866,39 +152376,39 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[1].allOf[0].properties.isPublic.type, parentSchema: schema176.anyOf[1].allOf[0].properties.isPublic, - data: data22, + data: data23, }; if (vErrors === null) { - vErrors = [err37]; + vErrors = [err39]; } else { - vErrors.push(err37); + vErrors.push(err39); } errors++; } - var valid11 = _errs53 === errors; + var valid11 = _errs55 === errors; } else { var valid11 = true; } if (valid11) { if (data.viewer !== undefined) { - let data23 = data.viewer; - const _errs55 = errors; - if (errors === _errs55) { - if (Array.isArray(data23)) { + let data24 = data.viewer; + const _errs57 = errors; + if (errors === _errs57) { + if (Array.isArray(data24)) { var valid12 = true; - const len3 = data23.length; + const len3 = data24.length; for (let i3 = 0; i3 < len3; i3++) { - let data24 = data23[i3]; - const _errs57 = errors; - if (errors === _errs57) { + let data25 = data24[i3]; + const _errs59 = errors; + if (errors === _errs59) { if ( - data24 && - typeof data24 == 'object' && - !Array.isArray(data24) + data25 && + typeof data25 == 'object' && + !Array.isArray(data25) ) { let missing4; - if (data24.url === undefined && (missing4 = 'url')) { - const err38 = { + if (data25.url === undefined && (missing4 = 'url')) { + const err40 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/required', @@ -146911,23 +152421,23 @@ function validate191( .required, parentSchema: schema176.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err38]; + vErrors = [err40]; } else { - vErrors.push(err38); + vErrors.push(err40); } errors++; } else { - if (data24.url !== undefined) { - let data25 = data24.url; - const _errs59 = errors; - if (errors === _errs59) { - if (errors === _errs59) { - if (typeof data25 === 'string') { - if (!formats0(data25)) { - const err39 = { + if (data25.url !== undefined) { + let data26 = data25.url; + const _errs61 = errors; + if (errors === _errs61) { + if (errors === _errs61) { + if (typeof data26 === 'string') { + if (!formats0(data26)) { + const err41 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -146940,17 +152450,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err39]; + vErrors = [err41]; } else { - vErrors.push(err39); + vErrors.push(err41); } errors++; } } else { - const err40 = { + const err42 = { instancePath: instancePath + '/viewer/' + i3 + '/url', schemaPath: @@ -146964,12 +152474,12 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .viewer.items.properties.url, - data: data25, + data: data26, }; if (vErrors === null) { - vErrors = [err40]; + vErrors = [err42]; } else { - vErrors.push(err40); + vErrors.push(err42); } errors++; } @@ -146978,7 +152488,7 @@ function validate191( } } } else { - const err41 = { + const err43 = { instancePath: instancePath + '/viewer/' + i3, schemaPath: '#/anyOf/1/allOf/0/properties/viewer/items/type', @@ -146990,23 +152500,23 @@ function validate191( .type, parentSchema: schema176.anyOf[1].allOf[0].properties.viewer.items, - data: data24, + data: data25, }; if (vErrors === null) { - vErrors = [err41]; + vErrors = [err43]; } else { - vErrors.push(err41); + vErrors.push(err43); } errors++; } } - var valid12 = _errs57 === errors; + var valid12 = _errs59 === errors; if (!valid12) { break; } } } else { - const err42 = { + const err44 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/1/allOf/0/properties/viewer/type', keyword: 'type', @@ -147014,40 +152524,40 @@ function validate191( message: 'must be array', schema: schema176.anyOf[1].allOf[0].properties.viewer.type, parentSchema: schema176.anyOf[1].allOf[0].properties.viewer, - data: data23, + data: data24, }; if (vErrors === null) { - vErrors = [err42]; + vErrors = [err44]; } else { - vErrors.push(err42); + vErrors.push(err44); } errors++; } } - var valid11 = _errs55 === errors; + var valid11 = _errs57 === errors; } else { var valid11 = true; } if (valid11) { if (data.owner !== undefined) { - let data26 = data.owner; - const _errs61 = errors; - if (errors === _errs61) { - if (Array.isArray(data26)) { + let data27 = data.owner; + const _errs63 = errors; + if (errors === _errs63) { + if (Array.isArray(data27)) { var valid14 = true; - const len4 = data26.length; + const len4 = data27.length; for (let i4 = 0; i4 < len4; i4++) { - let data27 = data26[i4]; - const _errs63 = errors; - if (errors === _errs63) { + let data28 = data27[i4]; + const _errs65 = errors; + if (errors === _errs65) { if ( - data27 && - typeof data27 == 'object' && - !Array.isArray(data27) + data28 && + typeof data28 == 'object' && + !Array.isArray(data28) ) { let missing5; - if (data27.url === undefined && (missing5 = 'url')) { - const err43 = { + if (data28.url === undefined && (missing5 = 'url')) { + const err45 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/required', @@ -147061,23 +152571,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties.owner .items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err43]; + vErrors = [err45]; } else { - vErrors.push(err43); + vErrors.push(err45); } errors++; } else { - if (data27.url !== undefined) { - let data28 = data27.url; - const _errs65 = errors; - if (errors === _errs65) { - if (errors === _errs65) { - if (typeof data28 === 'string') { - if (!formats0(data28)) { - const err44 = { + if (data28.url !== undefined) { + let data29 = data28.url; + const _errs67 = errors; + if (errors === _errs67) { + if (errors === _errs67) { + if (typeof data29 === 'string') { + if (!formats0(data29)) { + const err46 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -147090,17 +152600,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err44]; + vErrors = [err46]; } else { - vErrors.push(err44); + vErrors.push(err46); } errors++; } } else { - const err45 = { + const err47 = { instancePath: instancePath + '/owner/' + i4 + '/url', schemaPath: @@ -147114,12 +152624,12 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[0].properties .owner.items.properties.url, - data: data28, + data: data29, }; if (vErrors === null) { - vErrors = [err45]; + vErrors = [err47]; } else { - vErrors.push(err45); + vErrors.push(err47); } errors++; } @@ -147128,7 +152638,7 @@ function validate191( } } } else { - const err46 = { + const err48 = { instancePath: instancePath + '/owner/' + i4, schemaPath: '#/anyOf/1/allOf/0/properties/owner/items/type', @@ -147140,23 +152650,23 @@ function validate191( .type, parentSchema: schema176.anyOf[1].allOf[0].properties.owner.items, - data: data27, + data: data28, }; if (vErrors === null) { - vErrors = [err46]; + vErrors = [err48]; } else { - vErrors.push(err46); + vErrors.push(err48); } errors++; } } - var valid14 = _errs63 === errors; + var valid14 = _errs65 === errors; if (!valid14) { break; } } } else { - const err47 = { + const err49 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/1/allOf/0/properties/owner/type', keyword: 'type', @@ -147164,20 +152674,78 @@ function validate191( message: 'must be array', schema: schema176.anyOf[1].allOf[0].properties.owner.type, parentSchema: schema176.anyOf[1].allOf[0].properties.owner, - data: data26, + data: data27, }; if (vErrors === null) { - vErrors = [err47]; + vErrors = [err49]; } else { - vErrors.push(err47); + vErrors.push(err49); } errors++; } } - var valid11 = _errs61 === errors; + var valid11 = _errs63 === errors; } else { var valid11 = true; } + if (valid11) { + if (data.bookingEndpoint !== undefined) { + let data30 = data.bookingEndpoint; + const _errs69 = errors; + if (errors === _errs69) { + if (errors === _errs69) { + if (typeof data30 === 'string') { + if (!formats0(data30)) { + const err50 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err50]; + } else { + vErrors.push(err50); + } + errors++; + } + } else { + const err51 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/1/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[1].allOf[0].properties.bookingEndpoint + .type, + parentSchema: + schema176.anyOf[1].allOf[0].properties + .bookingEndpoint, + data: data30, + }; + if (vErrors === null) { + vErrors = [err51]; + } else { + vErrors.push(err51); + } + errors++; + } + } + } + var valid11 = _errs69 === errors; + } else { + var valid11 = true; + } + } } } } @@ -147186,7 +152754,7 @@ function validate191( } } } else { - const err48 = { + const err52 = { instancePath, schemaPath: '#/anyOf/1/allOf/0/type', keyword: 'type', @@ -147197,23 +152765,23 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err48]; + vErrors = [err52]; } else { - vErrors.push(err48); + vErrors.push(err52); } errors++; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (valid10) { - const _errs67 = errors; - if (errors === _errs67) { + const _errs71 = errors; + if (errors === _errs71) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data29 = data.type; - const _errs69 = errors; - if ('device' !== data29) { - const err49 = { + let data31 = data.type; + const _errs73 = errors; + if ('device' !== data31) { + const err53 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/1/allOf/1/properties/type/const', keyword: 'const', @@ -147221,25 +152789,25 @@ function validate191( message: 'must be equal to constant', schema: 'device', parentSchema: schema176.anyOf[1].allOf[1].properties.type, - data: data29, + data: data31, }; if (vErrors === null) { - vErrors = [err49]; + vErrors = [err53]; } else { - vErrors.push(err49); + vErrors.push(err53); } errors++; } - var valid16 = _errs69 === errors; + var valid16 = _errs73 === errors; } else { var valid16 = true; } if (valid16) { if (data.connected !== undefined) { - let data30 = data.connected; - const _errs70 = errors; - if (typeof data30 !== 'boolean') { - const err50 = { + let data32 = data.connected; + const _errs74 = errors; + if (typeof data32 !== 'boolean') { + const err54 = { instancePath: instancePath + '/connected', schemaPath: '#/anyOf/1/allOf/1/properties/connected/type', keyword: 'type', @@ -147247,44 +152815,44 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[1].allOf[1].properties.connected.type, parentSchema: schema176.anyOf[1].allOf[1].properties.connected, - data: data30, + data: data32, }; if (vErrors === null) { - vErrors = [err50]; + vErrors = [err54]; } else { - vErrors.push(err50); + vErrors.push(err54); } errors++; } - var valid16 = _errs70 === errors; + var valid16 = _errs74 === errors; } else { var valid16 = true; } if (valid16) { if (data.announcedAvailability !== undefined) { - let data31 = data.announcedAvailability; - const _errs72 = errors; - if (errors === _errs72) { - if (Array.isArray(data31)) { + let data33 = data.announcedAvailability; + const _errs76 = errors; + if (errors === _errs76) { + if (Array.isArray(data33)) { var valid17 = true; - const len5 = data31.length; + const len5 = data33.length; for (let i5 = 0; i5 < len5; i5++) { - let data32 = data31[i5]; - const _errs74 = errors; - if (errors === _errs74) { + let data34 = data33[i5]; + const _errs78 = errors; + if (errors === _errs78) { if ( - data32 && - typeof data32 == 'object' && - !Array.isArray(data32) + data34 && + typeof data34 == 'object' && + !Array.isArray(data34) ) { - if (data32.start !== undefined) { - let data33 = data32.start; - const _errs76 = errors; - if (errors === _errs76) { - if (errors === _errs76) { - if (typeof data33 === 'string') { - if (!formats22.validate(data33)) { - const err51 = { + if (data34.start !== undefined) { + let data35 = data34.start; + const _errs80 = errors; + if (errors === _errs80) { + if (errors === _errs80) { + if (typeof data35 === 'string') { + if (!formats26.validate(data35)) { + const err55 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147299,17 +152867,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err51]; + vErrors = [err55]; } else { - vErrors.push(err51); + vErrors.push(err55); } errors++; } } else { - const err52 = { + const err56 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147327,30 +152895,30 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.start, - data: data33, + data: data35, }; if (vErrors === null) { - vErrors = [err52]; + vErrors = [err56]; } else { - vErrors.push(err52); + vErrors.push(err56); } errors++; } } } - var valid18 = _errs76 === errors; + var valid18 = _errs80 === errors; } else { var valid18 = true; } if (valid18) { - if (data32.end !== undefined) { - let data34 = data32.end; - const _errs78 = errors; - if (errors === _errs78) { - if (errors === _errs78) { - if (typeof data34 === 'string') { - if (!formats22.validate(data34)) { - const err53 = { + if (data34.end !== undefined) { + let data36 = data34.end; + const _errs82 = errors; + if (errors === _errs82) { + if (errors === _errs82) { + if (typeof data36 === 'string') { + if (!formats26.validate(data36)) { + const err57 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147366,17 +152934,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err53]; + vErrors = [err57]; } else { - vErrors.push(err53); + vErrors.push(err57); } errors++; } } else { - const err54 = { + const err58 = { instancePath: instancePath + '/announcedAvailability/' + @@ -147394,24 +152962,24 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .announcedAvailability.items.properties.end, - data: data34, + data: data36, }; if (vErrors === null) { - vErrors = [err54]; + vErrors = [err58]; } else { - vErrors.push(err54); + vErrors.push(err58); } errors++; } } } - var valid18 = _errs78 === errors; + var valid18 = _errs82 === errors; } else { var valid18 = true; } } } else { - const err55 = { + const err59 = { instancePath: instancePath + '/announcedAvailability/' + i5, schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/items/type', @@ -147424,23 +152992,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.announcedAvailability .items, - data: data32, + data: data34, }; if (vErrors === null) { - vErrors = [err55]; + vErrors = [err59]; } else { - vErrors.push(err55); + vErrors.push(err59); } errors++; } } - var valid17 = _errs74 === errors; + var valid17 = _errs78 === errors; if (!valid17) { break; } } } else { - const err56 = { + const err60 = { instancePath: instancePath + '/announcedAvailability', schemaPath: '#/anyOf/1/allOf/1/properties/announcedAvailability/type', @@ -147451,29 +153019,29 @@ function validate191( schema176.anyOf[1].allOf[1].properties.announcedAvailability.type, parentSchema: schema176.anyOf[1].allOf[1].properties.announcedAvailability, - data: data31, + data: data33, }; if (vErrors === null) { - vErrors = [err56]; + vErrors = [err60]; } else { - vErrors.push(err56); + vErrors.push(err60); } errors++; } } - var valid16 = _errs72 === errors; + var valid16 = _errs76 === errors; } else { var valid16 = true; } if (valid16) { if (data.experiment !== undefined) { - let data35 = data.experiment; - const _errs80 = errors; - if (errors === _errs80) { - if (errors === _errs80) { - if (typeof data35 === 'string') { - if (!formats0(data35)) { - const err57 = { + let data37 = data.experiment; + const _errs84 = errors; + if (errors === _errs84) { + if (errors === _errs84) { + if (typeof data37 === 'string') { + if (!formats0(data37)) { + const err61 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/format', keyword: 'format', @@ -147482,17 +153050,17 @@ function validate191( schema: 'uri', parentSchema: schema176.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err57]; + vErrors = [err61]; } else { - vErrors.push(err57); + vErrors.push(err61); } errors++; } } else { - const err58 = { + const err62 = { instancePath: instancePath + '/experiment', schemaPath: '#/anyOf/1/allOf/1/properties/experiment/type', keyword: 'type', @@ -147500,46 +153068,46 @@ function validate191( message: 'must be string', schema: schema176.anyOf[1].allOf[1].properties.experiment.type, parentSchema: schema176.anyOf[1].allOf[1].properties.experiment, - data: data35, + data: data37, }; if (vErrors === null) { - vErrors = [err58]; + vErrors = [err62]; } else { - vErrors.push(err58); + vErrors.push(err62); } errors++; } } } - var valid16 = _errs80 === errors; + var valid16 = _errs84 === errors; } else { var valid16 = true; } if (valid16) { if (data.services !== undefined) { - let data36 = data.services; - const _errs82 = errors; - if (errors === _errs82) { - if (Array.isArray(data36)) { + let data38 = data.services; + const _errs86 = errors; + if (errors === _errs86) { + if (Array.isArray(data38)) { var valid19 = true; - const len6 = data36.length; + const len6 = data38.length; for (let i6 = 0; i6 < len6; i6++) { - let data37 = data36[i6]; - const _errs84 = errors; - if (errors === _errs84) { + let data39 = data38[i6]; + const _errs88 = errors; + if (errors === _errs88) { if ( - data37 && - typeof data37 == 'object' && - !Array.isArray(data37) + data39 && + typeof data39 == 'object' && + !Array.isArray(data39) ) { - if (data37.serviceType !== undefined) { - let data38 = data37.serviceType; - const _errs87 = errors; - if (errors === _errs87) { - if (errors === _errs87) { - if (typeof data38 === 'string') { - if (!formats0(data38)) { - const err59 = { + if (data39.serviceType !== undefined) { + let data40 = data39.serviceType; + const _errs91 = errors; + if (errors === _errs91) { + if (errors === _errs91) { + if (typeof data40 === 'string') { + if (!formats0(data40)) { + const err63 = { instancePath: instancePath + '/services/' + @@ -147554,17 +153122,17 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties .services.items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err59]; + vErrors = [err63]; } else { - vErrors.push(err59); + vErrors.push(err63); } errors++; } } else { - const err60 = { + const err64 = { instancePath: instancePath + '/services/' + @@ -147581,27 +153149,27 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceType, - data: data38, + data: data40, }; if (vErrors === null) { - vErrors = [err60]; + vErrors = [err64]; } else { - vErrors.push(err60); + vErrors.push(err64); } errors++; } } } - var valid20 = _errs87 === errors; + var valid20 = _errs91 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceId !== undefined) { - let data39 = data37.serviceId; - const _errs89 = errors; - if (typeof data39 !== 'string') { - const err61 = { + if (data39.serviceId !== undefined) { + let data41 = data39.serviceId; + const _errs93 = errors; + if (typeof data41 !== 'string') { + const err65 = { instancePath: instancePath + '/services/' + i6 + '/serviceId', schemaPath: @@ -147615,25 +153183,25 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceId, - data: data39, + data: data41, }; if (vErrors === null) { - vErrors = [err61]; + vErrors = [err65]; } else { - vErrors.push(err61); + vErrors.push(err65); } errors++; } - var valid20 = _errs89 === errors; + var valid20 = _errs93 === errors; } else { var valid20 = true; } if (valid20) { - if (data37.serviceDirection !== undefined) { - let data40 = data37.serviceDirection; - const _errs91 = errors; - if (typeof data40 !== 'string') { - const err62 = { + if (data39.serviceDirection !== undefined) { + let data42 = data39.serviceDirection; + const _errs95 = errors; + if (typeof data42 !== 'string') { + const err66 = { instancePath: instancePath + '/services/' + @@ -147650,23 +153218,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err62]; + vErrors = [err66]; } else { - vErrors.push(err62); + vErrors.push(err66); } errors++; } if ( !( - data40 === 'consumer' || - data40 === 'producer' || - data40 === 'prosumer' + data42 === 'consumer' || + data42 === 'producer' || + data42 === 'prosumer' ) ) { - const err63 = { + const err67 = { instancePath: instancePath + '/services/' + @@ -147689,23 +153257,23 @@ function validate191( parentSchema: schema176.anyOf[1].allOf[1].properties.services .items.properties.serviceDirection, - data: data40, + data: data42, }; if (vErrors === null) { - vErrors = [err63]; + vErrors = [err67]; } else { - vErrors.push(err63); + vErrors.push(err67); } errors++; } - var valid20 = _errs91 === errors; + var valid20 = _errs95 === errors; } else { var valid20 = true; } } } } else { - const err64 = { + const err68 = { instancePath: instancePath + '/services/' + i6, schemaPath: '#/anyOf/1/allOf/1/properties/services/items/type', @@ -147717,23 +153285,23 @@ function validate191( .type, parentSchema: schema176.anyOf[1].allOf[1].properties.services.items, - data: data37, + data: data39, }; if (vErrors === null) { - vErrors = [err64]; + vErrors = [err68]; } else { - vErrors.push(err64); + vErrors.push(err68); } errors++; } } - var valid19 = _errs84 === errors; + var valid19 = _errs88 === errors; if (!valid19) { break; } } } else { - const err65 = { + const err69 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/1/allOf/1/properties/services/type', keyword: 'type', @@ -147741,17 +153309,17 @@ function validate191( message: 'must be array', schema: schema176.anyOf[1].allOf[1].properties.services.type, parentSchema: schema176.anyOf[1].allOf[1].properties.services, - data: data36, + data: data38, }; if (vErrors === null) { - vErrors = [err65]; + vErrors = [err69]; } else { - vErrors.push(err65); + vErrors.push(err69); } errors++; } } - var valid16 = _errs82 === errors; + var valid16 = _errs86 === errors; } else { var valid16 = true; } @@ -147760,7 +153328,7 @@ function validate191( } } } else { - const err66 = { + const err70 = { instancePath, schemaPath: '#/anyOf/1/allOf/1/type', keyword: 'type', @@ -147771,30 +153339,31 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err66]; + vErrors = [err70]; } else { - vErrors.push(err66); + vErrors.push(err70); } errors++; } } - var valid10 = _errs67 === errors; + var valid10 = _errs71 === errors; } - var _valid0 = _errs42 === errors; + var _valid0 = _errs44 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs93 = errors; - const _errs94 = errors; - if (errors === _errs94) { + const _errs97 = errors; + const _errs98 = errors; + if (errors === _errs98) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing6; if ( (data.url === undefined && (missing6 = 'url')) || (data.type === undefined && (missing6 = 'type')) || (data.name === undefined && (missing6 = 'name')) || - (data.isPublic === undefined && (missing6 = 'isPublic')) + (data.isPublic === undefined && (missing6 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing6 = 'bookingEndpoint')) ) { - const err67 = { + const err71 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/required', keyword: 'required', @@ -147805,20 +153374,20 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err67]; + vErrors = [err71]; } else { - vErrors.push(err67); + vErrors.push(err71); } errors++; } else { if (data.url !== undefined) { - let data41 = data.url; - const _errs96 = errors; - if (errors === _errs96) { - if (errors === _errs96) { - if (typeof data41 === 'string') { - if (!formats0(data41)) { - const err68 = { + let data43 = data.url; + const _errs100 = errors; + if (errors === _errs100) { + if (errors === _errs100) { + if (typeof data43 === 'string') { + if (!formats0(data43)) { + const err72 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/format', keyword: 'format', @@ -147826,17 +153395,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err68]; + vErrors = [err72]; } else { - vErrors.push(err68); + vErrors.push(err72); } errors++; } } else { - const err69 = { + const err73 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/2/allOf/0/properties/url/type', keyword: 'type', @@ -147844,27 +153413,27 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.url.type, parentSchema: schema176.anyOf[2].allOf[0].properties.url, - data: data41, + data: data43, }; if (vErrors === null) { - vErrors = [err69]; + vErrors = [err73]; } else { - vErrors.push(err69); + vErrors.push(err73); } errors++; } } } - var valid22 = _errs96 === errors; + var valid22 = _errs100 === errors; } else { var valid22 = true; } if (valid22) { if (data.name !== undefined) { - let data42 = data.name; - const _errs98 = errors; - if (typeof data42 !== 'string') { - const err70 = { + let data44 = data.name; + const _errs102 = errors; + if (typeof data44 !== 'string') { + const err74 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/2/allOf/0/properties/name/type', keyword: 'type', @@ -147872,25 +153441,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.name.type, parentSchema: schema176.anyOf[2].allOf[0].properties.name, - data: data42, + data: data44, }; if (vErrors === null) { - vErrors = [err70]; + vErrors = [err74]; } else { - vErrors.push(err70); + vErrors.push(err74); } errors++; } - var valid22 = _errs98 === errors; + var valid22 = _errs102 === errors; } else { var valid22 = true; } if (valid22) { if (data.description !== undefined) { - let data43 = data.description; - const _errs100 = errors; - if (typeof data43 !== 'string') { - const err71 = { + let data45 = data.description; + const _errs104 = errors; + if (typeof data45 !== 'string') { + const err75 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/2/allOf/0/properties/description/type', keyword: 'type', @@ -147898,25 +153467,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.description.type, parentSchema: schema176.anyOf[2].allOf[0].properties.description, - data: data43, + data: data45, }; if (vErrors === null) { - vErrors = [err71]; + vErrors = [err75]; } else { - vErrors.push(err71); + vErrors.push(err75); } errors++; } - var valid22 = _errs100 === errors; + var valid22 = _errs104 === errors; } else { var valid22 = true; } if (valid22) { if (data.type !== undefined) { - let data44 = data.type; - const _errs102 = errors; - if (typeof data44 !== 'string') { - const err72 = { + let data46 = data.type; + const _errs106 = errors; + if (typeof data46 !== 'string') { + const err76 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/type', keyword: 'type', @@ -147924,24 +153493,24 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[0].properties.type.type, parentSchema: schema176.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err72]; + vErrors = [err76]; } else { - vErrors.push(err72); + vErrors.push(err76); } errors++; } if ( !( - data44 === 'device' || - data44 === 'group' || - data44 === 'edge instantiable' || - data44 === 'cloud instantiable' + data46 === 'device' || + data46 === 'group' || + data46 === 'edge instantiable' || + data46 === 'cloud instantiable' ) ) { - const err73 = { + const err77 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/0/properties/type/enum', keyword: 'enum', @@ -147951,25 +153520,25 @@ function validate191( message: 'must be equal to one of the allowed values', schema: schema176.anyOf[2].allOf[0].properties.type.enum, parentSchema: schema176.anyOf[2].allOf[0].properties.type, - data: data44, + data: data46, }; if (vErrors === null) { - vErrors = [err73]; + vErrors = [err77]; } else { - vErrors.push(err73); + vErrors.push(err77); } errors++; } - var valid22 = _errs102 === errors; + var valid22 = _errs106 === errors; } else { var valid22 = true; } if (valid22) { if (data.isPublic !== undefined) { - let data45 = data.isPublic; - const _errs104 = errors; - if (typeof data45 !== 'boolean') { - const err74 = { + let data47 = data.isPublic; + const _errs108 = errors; + if (typeof data47 !== 'boolean') { + const err78 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/2/allOf/0/properties/isPublic/type', keyword: 'type', @@ -147977,39 +153546,39 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[2].allOf[0].properties.isPublic.type, parentSchema: schema176.anyOf[2].allOf[0].properties.isPublic, - data: data45, + data: data47, }; if (vErrors === null) { - vErrors = [err74]; + vErrors = [err78]; } else { - vErrors.push(err74); + vErrors.push(err78); } errors++; } - var valid22 = _errs104 === errors; + var valid22 = _errs108 === errors; } else { var valid22 = true; } if (valid22) { if (data.viewer !== undefined) { - let data46 = data.viewer; - const _errs106 = errors; - if (errors === _errs106) { - if (Array.isArray(data46)) { + let data48 = data.viewer; + const _errs110 = errors; + if (errors === _errs110) { + if (Array.isArray(data48)) { var valid23 = true; - const len7 = data46.length; + const len7 = data48.length; for (let i7 = 0; i7 < len7; i7++) { - let data47 = data46[i7]; - const _errs108 = errors; - if (errors === _errs108) { + let data49 = data48[i7]; + const _errs112 = errors; + if (errors === _errs112) { if ( - data47 && - typeof data47 == 'object' && - !Array.isArray(data47) + data49 && + typeof data49 == 'object' && + !Array.isArray(data49) ) { let missing7; - if (data47.url === undefined && (missing7 = 'url')) { - const err75 = { + if (data49.url === undefined && (missing7 = 'url')) { + const err79 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/required', @@ -148023,23 +153592,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties.viewer .items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err75]; + vErrors = [err79]; } else { - vErrors.push(err75); + vErrors.push(err79); } errors++; } else { - if (data47.url !== undefined) { - let data48 = data47.url; - const _errs110 = errors; - if (errors === _errs110) { - if (errors === _errs110) { - if (typeof data48 === 'string') { - if (!formats0(data48)) { - const err76 = { + if (data49.url !== undefined) { + let data50 = data49.url; + const _errs114 = errors; + if (errors === _errs114) { + if (errors === _errs114) { + if (typeof data50 === 'string') { + if (!formats0(data50)) { + const err80 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -148052,17 +153621,17 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err76]; + vErrors = [err80]; } else { - vErrors.push(err76); + vErrors.push(err80); } errors++; } } else { - const err77 = { + const err81 = { instancePath: instancePath + '/viewer/' + i7 + '/url', schemaPath: @@ -148076,12 +153645,12 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .viewer.items.properties.url, - data: data48, + data: data50, }; if (vErrors === null) { - vErrors = [err77]; + vErrors = [err81]; } else { - vErrors.push(err77); + vErrors.push(err81); } errors++; } @@ -148090,7 +153659,7 @@ function validate191( } } } else { - const err78 = { + const err82 = { instancePath: instancePath + '/viewer/' + i7, schemaPath: '#/anyOf/2/allOf/0/properties/viewer/items/type', @@ -148102,23 +153671,23 @@ function validate191( .type, parentSchema: schema176.anyOf[2].allOf[0].properties.viewer.items, - data: data47, + data: data49, }; if (vErrors === null) { - vErrors = [err78]; + vErrors = [err82]; } else { - vErrors.push(err78); + vErrors.push(err82); } errors++; } } - var valid23 = _errs108 === errors; + var valid23 = _errs112 === errors; if (!valid23) { break; } } } else { - const err79 = { + const err83 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/2/allOf/0/properties/viewer/type', keyword: 'type', @@ -148126,40 +153695,40 @@ function validate191( message: 'must be array', schema: schema176.anyOf[2].allOf[0].properties.viewer.type, parentSchema: schema176.anyOf[2].allOf[0].properties.viewer, - data: data46, + data: data48, }; if (vErrors === null) { - vErrors = [err79]; + vErrors = [err83]; } else { - vErrors.push(err79); + vErrors.push(err83); } errors++; } } - var valid22 = _errs106 === errors; + var valid22 = _errs110 === errors; } else { var valid22 = true; } if (valid22) { if (data.owner !== undefined) { - let data49 = data.owner; - const _errs112 = errors; - if (errors === _errs112) { - if (Array.isArray(data49)) { + let data51 = data.owner; + const _errs116 = errors; + if (errors === _errs116) { + if (Array.isArray(data51)) { var valid25 = true; - const len8 = data49.length; + const len8 = data51.length; for (let i8 = 0; i8 < len8; i8++) { - let data50 = data49[i8]; - const _errs114 = errors; - if (errors === _errs114) { + let data52 = data51[i8]; + const _errs118 = errors; + if (errors === _errs118) { if ( - data50 && - typeof data50 == 'object' && - !Array.isArray(data50) + data52 && + typeof data52 == 'object' && + !Array.isArray(data52) ) { let missing8; - if (data50.url === undefined && (missing8 = 'url')) { - const err80 = { + if (data52.url === undefined && (missing8 = 'url')) { + const err84 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/required', @@ -148175,23 +153744,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err80]; + vErrors = [err84]; } else { - vErrors.push(err80); + vErrors.push(err84); } errors++; } else { - if (data50.url !== undefined) { - let data51 = data50.url; - const _errs116 = errors; - if (errors === _errs116) { - if (errors === _errs116) { - if (typeof data51 === 'string') { - if (!formats0(data51)) { - const err81 = { + if (data52.url !== undefined) { + let data53 = data52.url; + const _errs120 = errors; + if (errors === _errs120) { + if (errors === _errs120) { + if (typeof data53 === 'string') { + if (!formats0(data53)) { + const err85 = { instancePath: instancePath + '/owner/' + @@ -148207,17 +153776,17 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err81]; + vErrors = [err85]; } else { - vErrors.push(err81); + vErrors.push(err85); } errors++; } } else { - const err82 = { + const err86 = { instancePath: instancePath + '/owner/' + i8 + '/url', schemaPath: @@ -148231,12 +153800,12 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties .owner.items.properties.url, - data: data51, + data: data53, }; if (vErrors === null) { - vErrors = [err82]; + vErrors = [err86]; } else { - vErrors.push(err82); + vErrors.push(err86); } errors++; } @@ -148245,7 +153814,7 @@ function validate191( } } } else { - const err83 = { + const err87 = { instancePath: instancePath + '/owner/' + i8, schemaPath: '#/anyOf/2/allOf/0/properties/owner/items/type', @@ -148258,23 +153827,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[0].properties.owner .items, - data: data50, + data: data52, }; if (vErrors === null) { - vErrors = [err83]; + vErrors = [err87]; } else { - vErrors.push(err83); + vErrors.push(err87); } errors++; } } - var valid25 = _errs114 === errors; + var valid25 = _errs118 === errors; if (!valid25) { break; } } } else { - const err84 = { + const err88 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/2/allOf/0/properties/owner/type', keyword: 'type', @@ -148283,20 +153852,78 @@ function validate191( schema: schema176.anyOf[2].allOf[0].properties.owner.type, parentSchema: schema176.anyOf[2].allOf[0].properties.owner, - data: data49, + data: data51, }; if (vErrors === null) { - vErrors = [err84]; + vErrors = [err88]; } else { - vErrors.push(err84); + vErrors.push(err88); } errors++; } } - var valid22 = _errs112 === errors; + var valid22 = _errs116 === errors; } else { var valid22 = true; } + if (valid22) { + if (data.bookingEndpoint !== undefined) { + let data54 = data.bookingEndpoint; + const _errs122 = errors; + if (errors === _errs122) { + if (errors === _errs122) { + if (typeof data54 === 'string') { + if (!formats0(data54)) { + const err89 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err89]; + } else { + vErrors.push(err89); + } + errors++; + } + } else { + const err90 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/2/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[2].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema176.anyOf[2].allOf[0].properties + .bookingEndpoint, + data: data54, + }; + if (vErrors === null) { + vErrors = [err90]; + } else { + vErrors.push(err90); + } + errors++; + } + } + } + var valid22 = _errs122 === errors; + } else { + var valid22 = true; + } + } } } } @@ -148305,7 +153932,7 @@ function validate191( } } } else { - const err85 = { + const err91 = { instancePath, schemaPath: '#/anyOf/2/allOf/0/type', keyword: 'type', @@ -148316,23 +153943,23 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err85]; + vErrors = [err91]; } else { - vErrors.push(err85); + vErrors.push(err91); } errors++; } } - var valid21 = _errs94 === errors; + var valid21 = _errs98 === errors; if (valid21) { - const _errs118 = errors; - if (errors === _errs118) { + const _errs124 = errors; + if (errors === _errs124) { if (data && typeof data == 'object' && !Array.isArray(data)) { if (data.type !== undefined) { - let data52 = data.type; - const _errs120 = errors; - if ('edge instantiable' !== data52) { - const err86 = { + let data55 = data.type; + const _errs126 = errors; + if ('edge instantiable' !== data55) { + const err92 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/2/allOf/1/properties/type/const', keyword: 'const', @@ -148340,28 +153967,28 @@ function validate191( message: 'must be equal to constant', schema: 'edge instantiable', parentSchema: schema176.anyOf[2].allOf[1].properties.type, - data: data52, + data: data55, }; if (vErrors === null) { - vErrors = [err86]; + vErrors = [err92]; } else { - vErrors.push(err86); + vErrors.push(err92); } errors++; } - var valid27 = _errs120 === errors; + var valid27 = _errs126 === errors; } else { var valid27 = true; } if (valid27) { if (data.codeUrl !== undefined) { - let data53 = data.codeUrl; - const _errs121 = errors; - if (errors === _errs121) { - if (errors === _errs121) { - if (typeof data53 === 'string') { - if (!formats0(data53)) { - const err87 = { + let data56 = data.codeUrl; + const _errs127 = errors; + if (errors === _errs127) { + if (errors === _errs127) { + if (typeof data56 === 'string') { + if (!formats0(data56)) { + const err93 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/format', keyword: 'format', @@ -148369,17 +153996,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err87]; + vErrors = [err93]; } else { - vErrors.push(err87); + vErrors.push(err93); } errors++; } } else { - const err88 = { + const err94 = { instancePath: instancePath + '/codeUrl', schemaPath: '#/anyOf/2/allOf/1/properties/codeUrl/type', keyword: 'type', @@ -148387,46 +154014,46 @@ function validate191( message: 'must be string', schema: schema176.anyOf[2].allOf[1].properties.codeUrl.type, parentSchema: schema176.anyOf[2].allOf[1].properties.codeUrl, - data: data53, + data: data56, }; if (vErrors === null) { - vErrors = [err88]; + vErrors = [err94]; } else { - vErrors.push(err88); + vErrors.push(err94); } errors++; } } } - var valid27 = _errs121 === errors; + var valid27 = _errs127 === errors; } else { var valid27 = true; } if (valid27) { if (data.services !== undefined) { - let data54 = data.services; - const _errs123 = errors; - if (errors === _errs123) { - if (Array.isArray(data54)) { + let data57 = data.services; + const _errs129 = errors; + if (errors === _errs129) { + if (Array.isArray(data57)) { var valid28 = true; - const len9 = data54.length; + const len9 = data57.length; for (let i9 = 0; i9 < len9; i9++) { - let data55 = data54[i9]; - const _errs125 = errors; - if (errors === _errs125) { + let data58 = data57[i9]; + const _errs131 = errors; + if (errors === _errs131) { if ( - data55 && - typeof data55 == 'object' && - !Array.isArray(data55) + data58 && + typeof data58 == 'object' && + !Array.isArray(data58) ) { - if (data55.serviceType !== undefined) { - let data56 = data55.serviceType; - const _errs128 = errors; - if (errors === _errs128) { - if (errors === _errs128) { - if (typeof data56 === 'string') { - if (!formats0(data56)) { - const err89 = { + if (data58.serviceType !== undefined) { + let data59 = data58.serviceType; + const _errs134 = errors; + if (errors === _errs134) { + if (errors === _errs134) { + if (typeof data59 === 'string') { + if (!formats0(data59)) { + const err95 = { instancePath: instancePath + '/services/' + @@ -148441,17 +154068,17 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err89]; + vErrors = [err95]; } else { - vErrors.push(err89); + vErrors.push(err95); } errors++; } } else { - const err90 = { + const err96 = { instancePath: instancePath + '/services/' + i9 + '/serviceType', schemaPath: @@ -148465,27 +154092,27 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceType, - data: data56, + data: data59, }; if (vErrors === null) { - vErrors = [err90]; + vErrors = [err96]; } else { - vErrors.push(err90); + vErrors.push(err96); } errors++; } } } - var valid29 = _errs128 === errors; + var valid29 = _errs134 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceId !== undefined) { - let data57 = data55.serviceId; - const _errs130 = errors; - if (typeof data57 !== 'string') { - const err91 = { + if (data58.serviceId !== undefined) { + let data60 = data58.serviceId; + const _errs136 = errors; + if (typeof data60 !== 'string') { + const err97 = { instancePath: instancePath + '/services/' + i9 + '/serviceId', schemaPath: @@ -148499,25 +154126,25 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceId, - data: data57, + data: data60, }; if (vErrors === null) { - vErrors = [err91]; + vErrors = [err97]; } else { - vErrors.push(err91); + vErrors.push(err97); } errors++; } - var valid29 = _errs130 === errors; + var valid29 = _errs136 === errors; } else { var valid29 = true; } if (valid29) { - if (data55.serviceDirection !== undefined) { - let data58 = data55.serviceDirection; - const _errs132 = errors; - if (typeof data58 !== 'string') { - const err92 = { + if (data58.serviceDirection !== undefined) { + let data61 = data58.serviceDirection; + const _errs138 = errors; + if (typeof data61 !== 'string') { + const err98 = { instancePath: instancePath + '/services/' + @@ -148534,23 +154161,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err92]; + vErrors = [err98]; } else { - vErrors.push(err92); + vErrors.push(err98); } errors++; } if ( !( - data58 === 'consumer' || - data58 === 'producer' || - data58 === 'prosumer' + data61 === 'consumer' || + data61 === 'producer' || + data61 === 'prosumer' ) ) { - const err93 = { + const err99 = { instancePath: instancePath + '/services/' + @@ -148572,23 +154199,23 @@ function validate191( parentSchema: schema176.anyOf[2].allOf[1].properties.services .items.properties.serviceDirection, - data: data58, + data: data61, }; if (vErrors === null) { - vErrors = [err93]; + vErrors = [err99]; } else { - vErrors.push(err93); + vErrors.push(err99); } errors++; } - var valid29 = _errs132 === errors; + var valid29 = _errs138 === errors; } else { var valid29 = true; } } } } else { - const err94 = { + const err100 = { instancePath: instancePath + '/services/' + i9, schemaPath: '#/anyOf/2/allOf/1/properties/services/items/type', @@ -148600,23 +154227,23 @@ function validate191( .type, parentSchema: schema176.anyOf[2].allOf[1].properties.services.items, - data: data55, + data: data58, }; if (vErrors === null) { - vErrors = [err94]; + vErrors = [err100]; } else { - vErrors.push(err94); + vErrors.push(err100); } errors++; } } - var valid28 = _errs125 === errors; + var valid28 = _errs131 === errors; if (!valid28) { break; } } } else { - const err95 = { + const err101 = { instancePath: instancePath + '/services', schemaPath: '#/anyOf/2/allOf/1/properties/services/type', keyword: 'type', @@ -148624,24 +154251,24 @@ function validate191( message: 'must be array', schema: schema176.anyOf[2].allOf[1].properties.services.type, parentSchema: schema176.anyOf[2].allOf[1].properties.services, - data: data54, + data: data57, }; if (vErrors === null) { - vErrors = [err95]; + vErrors = [err101]; } else { - vErrors.push(err95); + vErrors.push(err101); } errors++; } } - var valid27 = _errs123 === errors; + var valid27 = _errs129 === errors; } else { var valid27 = true; } } } } else { - const err96 = { + const err102 = { instancePath, schemaPath: '#/anyOf/2/allOf/1/type', keyword: 'type', @@ -148652,30 +154279,31 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err96]; + vErrors = [err102]; } else { - vErrors.push(err96); + vErrors.push(err102); } errors++; } } - var valid21 = _errs118 === errors; + var valid21 = _errs124 === errors; } - var _valid0 = _errs93 === errors; + var _valid0 = _errs97 === errors; valid0 = valid0 || _valid0; if (!valid0) { - const _errs134 = errors; - const _errs135 = errors; - if (errors === _errs135) { + const _errs140 = errors; + const _errs141 = errors; + if (errors === _errs141) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing9; if ( (data.url === undefined && (missing9 = 'url')) || (data.type === undefined && (missing9 = 'type')) || (data.name === undefined && (missing9 = 'name')) || - (data.isPublic === undefined && (missing9 = 'isPublic')) + (data.isPublic === undefined && (missing9 = 'isPublic')) || + (data.bookingEndpoint === undefined && (missing9 = 'bookingEndpoint')) ) { - const err97 = { + const err103 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/required', keyword: 'required', @@ -148686,20 +154314,20 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err97]; + vErrors = [err103]; } else { - vErrors.push(err97); + vErrors.push(err103); } errors++; } else { if (data.url !== undefined) { - let data59 = data.url; - const _errs137 = errors; - if (errors === _errs137) { - if (errors === _errs137) { - if (typeof data59 === 'string') { - if (!formats0(data59)) { - const err98 = { + let data62 = data.url; + const _errs143 = errors; + if (errors === _errs143) { + if (errors === _errs143) { + if (typeof data62 === 'string') { + if (!formats0(data62)) { + const err104 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/format', keyword: 'format', @@ -148707,17 +154335,17 @@ function validate191( message: 'must match format "' + 'uri' + '"', schema: 'uri', parentSchema: schema176.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err98]; + vErrors = [err104]; } else { - vErrors.push(err98); + vErrors.push(err104); } errors++; } } else { - const err99 = { + const err105 = { instancePath: instancePath + '/url', schemaPath: '#/anyOf/3/allOf/0/properties/url/type', keyword: 'type', @@ -148725,27 +154353,27 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.url.type, parentSchema: schema176.anyOf[3].allOf[0].properties.url, - data: data59, + data: data62, }; if (vErrors === null) { - vErrors = [err99]; + vErrors = [err105]; } else { - vErrors.push(err99); + vErrors.push(err105); } errors++; } } } - var valid31 = _errs137 === errors; + var valid31 = _errs143 === errors; } else { var valid31 = true; } if (valid31) { if (data.name !== undefined) { - let data60 = data.name; - const _errs139 = errors; - if (typeof data60 !== 'string') { - const err100 = { + let data63 = data.name; + const _errs145 = errors; + if (typeof data63 !== 'string') { + const err106 = { instancePath: instancePath + '/name', schemaPath: '#/anyOf/3/allOf/0/properties/name/type', keyword: 'type', @@ -148753,25 +154381,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.name.type, parentSchema: schema176.anyOf[3].allOf[0].properties.name, - data: data60, + data: data63, }; if (vErrors === null) { - vErrors = [err100]; + vErrors = [err106]; } else { - vErrors.push(err100); + vErrors.push(err106); } errors++; } - var valid31 = _errs139 === errors; + var valid31 = _errs145 === errors; } else { var valid31 = true; } if (valid31) { if (data.description !== undefined) { - let data61 = data.description; - const _errs141 = errors; - if (typeof data61 !== 'string') { - const err101 = { + let data64 = data.description; + const _errs147 = errors; + if (typeof data64 !== 'string') { + const err107 = { instancePath: instancePath + '/description', schemaPath: '#/anyOf/3/allOf/0/properties/description/type', keyword: 'type', @@ -148779,25 +154407,25 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.description.type, parentSchema: schema176.anyOf[3].allOf[0].properties.description, - data: data61, + data: data64, }; if (vErrors === null) { - vErrors = [err101]; + vErrors = [err107]; } else { - vErrors.push(err101); + vErrors.push(err107); } errors++; } - var valid31 = _errs141 === errors; + var valid31 = _errs147 === errors; } else { var valid31 = true; } if (valid31) { if (data.type !== undefined) { - let data62 = data.type; - const _errs143 = errors; - if (typeof data62 !== 'string') { - const err102 = { + let data65 = data.type; + const _errs149 = errors; + if (typeof data65 !== 'string') { + const err108 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/type', keyword: 'type', @@ -148805,24 +154433,24 @@ function validate191( message: 'must be string', schema: schema176.anyOf[3].allOf[0].properties.type.type, parentSchema: schema176.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err102]; + vErrors = [err108]; } else { - vErrors.push(err102); + vErrors.push(err108); } errors++; } if ( !( - data62 === 'device' || - data62 === 'group' || - data62 === 'edge instantiable' || - data62 === 'cloud instantiable' + data65 === 'device' || + data65 === 'group' || + data65 === 'edge instantiable' || + data65 === 'cloud instantiable' ) ) { - const err103 = { + const err109 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/0/properties/type/enum', keyword: 'enum', @@ -148833,25 +154461,25 @@ function validate191( message: 'must be equal to one of the allowed values', schema: schema176.anyOf[3].allOf[0].properties.type.enum, parentSchema: schema176.anyOf[3].allOf[0].properties.type, - data: data62, + data: data65, }; if (vErrors === null) { - vErrors = [err103]; + vErrors = [err109]; } else { - vErrors.push(err103); + vErrors.push(err109); } errors++; } - var valid31 = _errs143 === errors; + var valid31 = _errs149 === errors; } else { var valid31 = true; } if (valid31) { if (data.isPublic !== undefined) { - let data63 = data.isPublic; - const _errs145 = errors; - if (typeof data63 !== 'boolean') { - const err104 = { + let data66 = data.isPublic; + const _errs151 = errors; + if (typeof data66 !== 'boolean') { + const err110 = { instancePath: instancePath + '/isPublic', schemaPath: '#/anyOf/3/allOf/0/properties/isPublic/type', keyword: 'type', @@ -148859,39 +154487,39 @@ function validate191( message: 'must be boolean', schema: schema176.anyOf[3].allOf[0].properties.isPublic.type, parentSchema: schema176.anyOf[3].allOf[0].properties.isPublic, - data: data63, + data: data66, }; if (vErrors === null) { - vErrors = [err104]; + vErrors = [err110]; } else { - vErrors.push(err104); + vErrors.push(err110); } errors++; } - var valid31 = _errs145 === errors; + var valid31 = _errs151 === errors; } else { var valid31 = true; } if (valid31) { if (data.viewer !== undefined) { - let data64 = data.viewer; - const _errs147 = errors; - if (errors === _errs147) { - if (Array.isArray(data64)) { + let data67 = data.viewer; + const _errs153 = errors; + if (errors === _errs153) { + if (Array.isArray(data67)) { var valid32 = true; - const len10 = data64.length; + const len10 = data67.length; for (let i10 = 0; i10 < len10; i10++) { - let data65 = data64[i10]; - const _errs149 = errors; - if (errors === _errs149) { + let data68 = data67[i10]; + const _errs155 = errors; + if (errors === _errs155) { if ( - data65 && - typeof data65 == 'object' && - !Array.isArray(data65) + data68 && + typeof data68 == 'object' && + !Array.isArray(data68) ) { let missing10; - if (data65.url === undefined && (missing10 = 'url')) { - const err105 = { + if (data68.url === undefined && (missing10 = 'url')) { + const err111 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/required', @@ -148907,23 +154535,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err105]; + vErrors = [err111]; } else { - vErrors.push(err105); + vErrors.push(err111); } errors++; } else { - if (data65.url !== undefined) { - let data66 = data65.url; - const _errs151 = errors; - if (errors === _errs151) { - if (errors === _errs151) { - if (typeof data66 === 'string') { - if (!formats0(data66)) { - const err106 = { + if (data68.url !== undefined) { + let data69 = data68.url; + const _errs157 = errors; + if (errors === _errs157) { + if (errors === _errs157) { + if (typeof data69 === 'string') { + if (!formats0(data69)) { + const err112 = { instancePath: instancePath + '/viewer/' + @@ -148939,17 +154567,17 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err106]; + vErrors = [err112]; } else { - vErrors.push(err106); + vErrors.push(err112); } errors++; } } else { - const err107 = { + const err113 = { instancePath: instancePath + '/viewer/' + @@ -148966,12 +154594,12 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties .viewer.items.properties.url, - data: data66, + data: data69, }; if (vErrors === null) { - vErrors = [err107]; + vErrors = [err113]; } else { - vErrors.push(err107); + vErrors.push(err113); } errors++; } @@ -148980,7 +154608,7 @@ function validate191( } } } else { - const err108 = { + const err114 = { instancePath: instancePath + '/viewer/' + i10, schemaPath: '#/anyOf/3/allOf/0/properties/viewer/items/type', @@ -148993,23 +154621,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.viewer .items, - data: data65, + data: data68, }; if (vErrors === null) { - vErrors = [err108]; + vErrors = [err114]; } else { - vErrors.push(err108); + vErrors.push(err114); } errors++; } } - var valid32 = _errs149 === errors; + var valid32 = _errs155 === errors; if (!valid32) { break; } } } else { - const err109 = { + const err115 = { instancePath: instancePath + '/viewer', schemaPath: '#/anyOf/3/allOf/0/properties/viewer/type', keyword: 'type', @@ -149019,43 +154647,43 @@ function validate191( schema176.anyOf[3].allOf[0].properties.viewer.type, parentSchema: schema176.anyOf[3].allOf[0].properties.viewer, - data: data64, + data: data67, }; if (vErrors === null) { - vErrors = [err109]; + vErrors = [err115]; } else { - vErrors.push(err109); + vErrors.push(err115); } errors++; } } - var valid31 = _errs147 === errors; + var valid31 = _errs153 === errors; } else { var valid31 = true; } if (valid31) { if (data.owner !== undefined) { - let data67 = data.owner; - const _errs153 = errors; - if (errors === _errs153) { - if (Array.isArray(data67)) { + let data70 = data.owner; + const _errs159 = errors; + if (errors === _errs159) { + if (Array.isArray(data70)) { var valid34 = true; - const len11 = data67.length; + const len11 = data70.length; for (let i11 = 0; i11 < len11; i11++) { - let data68 = data67[i11]; - const _errs155 = errors; - if (errors === _errs155) { + let data71 = data70[i11]; + const _errs161 = errors; + if (errors === _errs161) { if ( - data68 && - typeof data68 == 'object' && - !Array.isArray(data68) + data71 && + typeof data71 == 'object' && + !Array.isArray(data71) ) { let missing11; if ( - data68.url === undefined && + data71.url === undefined && (missing11 = 'url') ) { - const err110 = { + const err116 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/required', @@ -149071,23 +154699,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err110]; + vErrors = [err116]; } else { - vErrors.push(err110); + vErrors.push(err116); } errors++; } else { - if (data68.url !== undefined) { - let data69 = data68.url; - const _errs157 = errors; - if (errors === _errs157) { - if (errors === _errs157) { - if (typeof data69 === 'string') { - if (!formats0(data69)) { - const err111 = { + if (data71.url !== undefined) { + let data72 = data71.url; + const _errs163 = errors; + if (errors === _errs163) { + if (errors === _errs163) { + if (typeof data72 === 'string') { + if (!formats0(data72)) { + const err117 = { instancePath: instancePath + '/owner/' + @@ -149104,17 +154732,17 @@ function validate191( schema176.anyOf[3].allOf[0] .properties.owner.items.properties .url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err111]; + vErrors = [err117]; } else { - vErrors.push(err111); + vErrors.push(err117); } errors++; } } else { - const err112 = { + const err118 = { instancePath: instancePath + '/owner/' + @@ -149131,12 +154759,12 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties .owner.items.properties.url, - data: data69, + data: data72, }; if (vErrors === null) { - vErrors = [err112]; + vErrors = [err118]; } else { - vErrors.push(err112); + vErrors.push(err118); } errors++; } @@ -149145,7 +154773,7 @@ function validate191( } } } else { - const err113 = { + const err119 = { instancePath: instancePath + '/owner/' + i11, schemaPath: '#/anyOf/3/allOf/0/properties/owner/items/type', @@ -149158,23 +154786,23 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[0].properties.owner .items, - data: data68, + data: data71, }; if (vErrors === null) { - vErrors = [err113]; + vErrors = [err119]; } else { - vErrors.push(err113); + vErrors.push(err119); } errors++; } } - var valid34 = _errs155 === errors; + var valid34 = _errs161 === errors; if (!valid34) { break; } } } else { - const err114 = { + const err120 = { instancePath: instancePath + '/owner', schemaPath: '#/anyOf/3/allOf/0/properties/owner/type', keyword: 'type', @@ -149184,20 +154812,78 @@ function validate191( schema176.anyOf[3].allOf[0].properties.owner.type, parentSchema: schema176.anyOf[3].allOf[0].properties.owner, - data: data67, + data: data70, }; if (vErrors === null) { - vErrors = [err114]; + vErrors = [err120]; } else { - vErrors.push(err114); + vErrors.push(err120); } errors++; } } - var valid31 = _errs153 === errors; + var valid31 = _errs159 === errors; } else { var valid31 = true; } + if (valid31) { + if (data.bookingEndpoint !== undefined) { + let data73 = data.bookingEndpoint; + const _errs165 = errors; + if (errors === _errs165) { + if (errors === _errs165) { + if (typeof data73 === 'string') { + if (!formats0(data73)) { + const err121 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema176.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err121]; + } else { + vErrors.push(err121); + } + errors++; + } + } else { + const err122 = { + instancePath: instancePath + '/bookingEndpoint', + schemaPath: + '#/anyOf/3/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema176.anyOf[3].allOf[0].properties + .bookingEndpoint.type, + parentSchema: + schema176.anyOf[3].allOf[0].properties + .bookingEndpoint, + data: data73, + }; + if (vErrors === null) { + vErrors = [err122]; + } else { + vErrors.push(err122); + } + errors++; + } + } + } + var valid31 = _errs165 === errors; + } else { + var valid31 = true; + } + } } } } @@ -149206,7 +154892,7 @@ function validate191( } } } else { - const err115 = { + const err123 = { instancePath, schemaPath: '#/anyOf/3/allOf/0/type', keyword: 'type', @@ -149217,21 +154903,21 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err115]; + vErrors = [err123]; } else { - vErrors.push(err115); + vErrors.push(err123); } errors++; } } - var valid30 = _errs135 === errors; + var valid30 = _errs141 === errors; if (valid30) { - const _errs159 = errors; - if (errors === _errs159) { + const _errs167 = errors; + if (errors === _errs167) { if (data && typeof data == 'object' && !Array.isArray(data)) { let missing12; if (data.devices === undefined && (missing12 = 'devices')) { - const err116 = { + const err124 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/required', keyword: 'required', @@ -149242,17 +154928,17 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err116]; + vErrors = [err124]; } else { - vErrors.push(err116); + vErrors.push(err124); } errors++; } else { if (data.type !== undefined) { - let data70 = data.type; - const _errs161 = errors; - if ('group' !== data70) { - const err117 = { + let data74 = data.type; + const _errs169 = errors; + if ('group' !== data74) { + const err125 = { instancePath: instancePath + '/type', schemaPath: '#/anyOf/3/allOf/1/properties/type/const', keyword: 'const', @@ -149260,39 +154946,39 @@ function validate191( message: 'must be equal to constant', schema: 'group', parentSchema: schema176.anyOf[3].allOf[1].properties.type, - data: data70, + data: data74, }; if (vErrors === null) { - vErrors = [err117]; + vErrors = [err125]; } else { - vErrors.push(err117); + vErrors.push(err125); } errors++; } - var valid36 = _errs161 === errors; + var valid36 = _errs169 === errors; } else { var valid36 = true; } if (valid36) { if (data.devices !== undefined) { - let data71 = data.devices; - const _errs162 = errors; - if (errors === _errs162) { - if (Array.isArray(data71)) { + let data75 = data.devices; + const _errs170 = errors; + if (errors === _errs170) { + if (Array.isArray(data75)) { var valid37 = true; - const len12 = data71.length; + const len12 = data75.length; for (let i12 = 0; i12 < len12; i12++) { - let data72 = data71[i12]; - const _errs164 = errors; - if (errors === _errs164) { + let data76 = data75[i12]; + const _errs172 = errors; + if (errors === _errs172) { if ( - data72 && - typeof data72 == 'object' && - !Array.isArray(data72) + data76 && + typeof data76 == 'object' && + !Array.isArray(data76) ) { let missing13; - if (data72.url === undefined && (missing13 = 'url')) { - const err118 = { + if (data76.url === undefined && (missing13 = 'url')) { + const err126 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/required', @@ -149305,23 +154991,23 @@ function validate191( .required, parentSchema: schema176.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err118]; + vErrors = [err126]; } else { - vErrors.push(err118); + vErrors.push(err126); } errors++; } else { - if (data72.url !== undefined) { - let data73 = data72.url; - const _errs166 = errors; - if (errors === _errs166) { - if (errors === _errs166) { - if (typeof data73 === 'string') { - if (!formats0(data73)) { - const err119 = { + if (data76.url !== undefined) { + let data77 = data76.url; + const _errs174 = errors; + if (errors === _errs174) { + if (errors === _errs174) { + if (typeof data77 === 'string') { + if (!formats0(data77)) { + const err127 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -149333,17 +155019,17 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[1].properties .devices.items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err119]; + vErrors = [err127]; } else { - vErrors.push(err119); + vErrors.push(err127); } errors++; } } else { - const err120 = { + const err128 = { instancePath: instancePath + '/devices/' + i12 + '/url', schemaPath: @@ -149357,12 +155043,12 @@ function validate191( parentSchema: schema176.anyOf[3].allOf[1].properties.devices .items.properties.url, - data: data73, + data: data77, }; if (vErrors === null) { - vErrors = [err120]; + vErrors = [err128]; } else { - vErrors.push(err120); + vErrors.push(err128); } errors++; } @@ -149371,7 +155057,7 @@ function validate191( } } } else { - const err121 = { + const err129 = { instancePath: instancePath + '/devices/' + i12, schemaPath: '#/anyOf/3/allOf/1/properties/devices/items/type', @@ -149383,23 +155069,23 @@ function validate191( .type, parentSchema: schema176.anyOf[3].allOf[1].properties.devices.items, - data: data72, + data: data76, }; if (vErrors === null) { - vErrors = [err121]; + vErrors = [err129]; } else { - vErrors.push(err121); + vErrors.push(err129); } errors++; } } - var valid37 = _errs164 === errors; + var valid37 = _errs172 === errors; if (!valid37) { break; } } } else { - const err122 = { + const err130 = { instancePath: instancePath + '/devices', schemaPath: '#/anyOf/3/allOf/1/properties/devices/type', keyword: 'type', @@ -149407,24 +155093,24 @@ function validate191( message: 'must be array', schema: schema176.anyOf[3].allOf[1].properties.devices.type, parentSchema: schema176.anyOf[3].allOf[1].properties.devices, - data: data71, + data: data75, }; if (vErrors === null) { - vErrors = [err122]; + vErrors = [err130]; } else { - vErrors.push(err122); + vErrors.push(err130); } errors++; } } - var valid36 = _errs162 === errors; + var valid36 = _errs170 === errors; } else { var valid36 = true; } } } } else { - const err123 = { + const err131 = { instancePath, schemaPath: '#/anyOf/3/allOf/1/type', keyword: 'type', @@ -149435,22 +155121,22 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err123]; + vErrors = [err131]; } else { - vErrors.push(err123); + vErrors.push(err131); } errors++; } } - var valid30 = _errs159 === errors; + var valid30 = _errs167 === errors; } - var _valid0 = _errs134 === errors; + var _valid0 = _errs140 === errors; valid0 = valid0 || _valid0; } } } if (!valid0) { - const err124 = { + const err132 = { instancePath, schemaPath: '#/anyOf', keyword: 'anyOf', @@ -149461,9 +155147,9 @@ function validate191( data, }; if (vErrors === null) { - vErrors = [err124]; + vErrors = [err132]; } else { - vErrors.push(err124); + vErrors.push(err132); } errors++; validate191.errors = vErrors; @@ -149530,8 +155216,13 @@ const schema177 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['type', 'name', 'isPublic'], + required: ['type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -149606,7 +155297,8 @@ function validate192( if ( (data0.type === undefined && (missing1 = 'type')) || (data0.name === undefined && (missing1 = 'name')) || - (data0.isPublic === undefined && (missing1 = 'isPublic')) + (data0.isPublic === undefined && (missing1 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing1 = 'bookingEndpoint')) ) { validate192.errors = [ { @@ -150066,6 +155758,60 @@ function validate192( } else { var valid2 = true; } + if (valid2) { + if (data0.bookingEndpoint !== undefined) { + let data11 = data0.bookingEndpoint; + const _errs24 = errors; + if (errors === _errs24) { + if (errors === _errs24) { + if (typeof data11 === 'string') { + if (!formats0(data11)) { + validate192.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema177.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } else { + validate192.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema177.properties.instance.allOf[0] + .properties.bookingEndpoint.type, + parentSchema: + schema177.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data11, + }, + ]; + return false; + } + } + } + var valid2 = _errs24 === errors; + } else { + var valid2 = true; + } + } } } } @@ -150090,13 +155836,13 @@ function validate192( } var valid1 = _errs2 === errors; if (valid1) { - const _errs24 = errors; - if (errors === _errs24) { + const _errs26 = errors; + if (errors === _errs26) { if (data0 && typeof data0 == 'object' && !Array.isArray(data0)) { if (data0.type !== undefined) { - let data11 = data0.type; - const _errs26 = errors; - if ('device' !== data11) { + let data12 = data0.type; + const _errs28 = errors; + if ('device' !== data12) { validate192.errors = [ { instancePath: instancePath + '/instance/type', @@ -150107,23 +155853,23 @@ function validate192( schema: 'device', parentSchema: schema177.properties.instance.allOf[1].properties.type, - data: data11, + data: data12, }, ]; return false; } - var valid7 = _errs26 === errors; + var valid7 = _errs28 === errors; } else { var valid7 = true; } if (valid7) { if (data0.experiment !== undefined) { - let data12 = data0.experiment; - const _errs27 = errors; - if (errors === _errs27) { - if (errors === _errs27) { - if (typeof data12 === 'string') { - if (!formats0(data12)) { + let data13 = data0.experiment; + const _errs29 = errors; + if (errors === _errs29) { + if (errors === _errs29) { + if (typeof data13 === 'string') { + if (!formats0(data13)) { validate192.errors = [ { instancePath: instancePath + '/instance/experiment', @@ -150136,7 +155882,7 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .experiment, - data: data12, + data: data13, }, ]; return false; @@ -150156,41 +155902,41 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .experiment, - data: data12, + data: data13, }, ]; return false; } } } - var valid7 = _errs27 === errors; + var valid7 = _errs29 === errors; } else { var valid7 = true; } if (valid7) { if (data0.services !== undefined) { - let data13 = data0.services; - const _errs29 = errors; - if (errors === _errs29) { - if (Array.isArray(data13)) { + let data14 = data0.services; + const _errs31 = errors; + if (errors === _errs31) { + if (Array.isArray(data14)) { var valid8 = true; - const len2 = data13.length; + const len2 = data14.length; for (let i2 = 0; i2 < len2; i2++) { - let data14 = data13[i2]; - const _errs31 = errors; - if (errors === _errs31) { + let data15 = data14[i2]; + const _errs33 = errors; + if (errors === _errs33) { if ( - data14 && - typeof data14 == 'object' && - !Array.isArray(data14) + data15 && + typeof data15 == 'object' && + !Array.isArray(data15) ) { - if (data14.serviceType !== undefined) { - let data15 = data14.serviceType; - const _errs34 = errors; - if (errors === _errs34) { - if (errors === _errs34) { - if (typeof data15 === 'string') { - if (!formats0(data15)) { + if (data15.serviceType !== undefined) { + let data16 = data15.serviceType; + const _errs36 = errors; + if (errors === _errs36) { + if (errors === _errs36) { + if (typeof data16 === 'string') { + if (!formats0(data16)) { validate192.errors = [ { instancePath: @@ -150209,7 +155955,7 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data15, + data: data16, }, ]; return false; @@ -150235,22 +155981,22 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data15, + data: data16, }, ]; return false; } } } - var valid9 = _errs34 === errors; + var valid9 = _errs36 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceId !== undefined) { - let data16 = data14.serviceId; - const _errs36 = errors; - if (typeof data16 !== 'string') { + if (data15.serviceId !== undefined) { + let data17 = data15.serviceId; + const _errs38 = errors; + if (typeof data17 !== 'string') { validate192.errors = [ { instancePath: @@ -150271,20 +156017,20 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceId, - data: data16, + data: data17, }, ]; return false; } - var valid9 = _errs36 === errors; + var valid9 = _errs38 === errors; } else { var valid9 = true; } if (valid9) { - if (data14.serviceDirection !== undefined) { - let data17 = data14.serviceDirection; - const _errs38 = errors; - if (typeof data17 !== 'string') { + if (data15.serviceDirection !== undefined) { + let data18 = data15.serviceDirection; + const _errs40 = errors; + if (typeof data18 !== 'string') { validate192.errors = [ { instancePath: @@ -150305,16 +156051,16 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data17, + data: data18, }, ]; return false; } if ( !( - data17 === 'consumer' || - data17 === 'producer' || - data17 === 'prosumer' + data18 === 'consumer' || + data18 === 'producer' || + data18 === 'prosumer' ) ) { validate192.errors = [ @@ -150343,12 +156089,12 @@ function validate192( schema177.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data17, + data: data18, }, ]; return false; } - var valid9 = _errs38 === errors; + var valid9 = _errs40 === errors; } else { var valid9 = true; } @@ -150370,13 +156116,13 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .services.items, - data: data14, + data: data15, }, ]; return false; } } - var valid8 = _errs31 === errors; + var valid8 = _errs33 === errors; if (!valid8) { break; } @@ -150396,13 +156142,13 @@ function validate192( parentSchema: schema177.properties.instance.allOf[1].properties .services, - data: data13, + data: data14, }, ]; return false; } } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } @@ -150424,7 +156170,7 @@ function validate192( return false; } } - var valid1 = _errs24 === errors; + var valid1 = _errs26 === errors; } var valid0 = _errs1 === errors; } else { @@ -150432,9 +156178,9 @@ function validate192( } if (valid0) { if (data.deviceToken !== undefined) { - let data18 = data.deviceToken; - const _errs40 = errors; - if (typeof data18 !== 'string') { + let data19 = data.deviceToken; + const _errs42 = errors; + if (typeof data19 !== 'string') { validate192.errors = [ { instancePath: instancePath + '/deviceToken', @@ -150444,12 +156190,12 @@ function validate192( message: 'must be string', schema: schema177.properties.deviceToken.type, parentSchema: schema177.properties.deviceToken, - data: data18, + data: data19, }, ]; return false; } - var valid0 = _errs40 === errors; + var valid0 = _errs42 === errors; } else { var valid0 = true; } @@ -150529,8 +156275,13 @@ const schema178 = { required: ['url'], }, }, + bookingEndpoint: { + type: 'string', + description: 'Endpoint where the device may be booked.', + format: 'uri', + }, }, - required: ['url', 'type', 'name', 'isPublic'], + required: ['url', 'type', 'name', 'isPublic', 'bookingEndpoint'], 'x-typeguard': true, }, { @@ -150627,7 +156378,8 @@ function validate193( (data0.url === undefined && (missing1 = 'url')) || (data0.type === undefined && (missing1 = 'type')) || (data0.name === undefined && (missing1 = 'name')) || - (data0.isPublic === undefined && (missing1 = 'isPublic')) + (data0.isPublic === undefined && (missing1 = 'isPublic')) || + (data0.bookingEndpoint === undefined && (missing1 = 'bookingEndpoint')) ) { validate193.errors = [ { @@ -151144,6 +156896,60 @@ function validate193( } else { var valid2 = true; } + if (valid2) { + if (data0.bookingEndpoint !== undefined) { + let data12 = data0.bookingEndpoint; + const _errs26 = errors; + if (errors === _errs26) { + if (errors === _errs26) { + if (typeof data12 === 'string') { + if (!formats0(data12)) { + validate193.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/format', + keyword: 'format', + params: { format: 'uri' }, + message: 'must match format "' + 'uri' + '"', + schema: 'uri', + parentSchema: + schema178.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } else { + validate193.errors = [ + { + instancePath: + instancePath + '/instance/bookingEndpoint', + schemaPath: + '#/properties/instance/allOf/0/properties/bookingEndpoint/type', + keyword: 'type', + params: { type: 'string' }, + message: 'must be string', + schema: + schema178.properties.instance.allOf[0] + .properties.bookingEndpoint.type, + parentSchema: + schema178.properties.instance.allOf[0] + .properties.bookingEndpoint, + data: data12, + }, + ]; + return false; + } + } + } + var valid2 = _errs26 === errors; + } else { + var valid2 = true; + } + } } } } @@ -151169,13 +156975,13 @@ function validate193( } var valid1 = _errs2 === errors; if (valid1) { - const _errs26 = errors; - if (errors === _errs26) { + const _errs28 = errors; + if (errors === _errs28) { if (data0 && typeof data0 == 'object' && !Array.isArray(data0)) { if (data0.type !== undefined) { - let data12 = data0.type; - const _errs28 = errors; - if ('device' !== data12) { + let data13 = data0.type; + const _errs30 = errors; + if ('device' !== data13) { validate193.errors = [ { instancePath: instancePath + '/instance/type', @@ -151186,20 +156992,20 @@ function validate193( schema: 'device', parentSchema: schema178.properties.instance.allOf[1].properties.type, - data: data12, + data: data13, }, ]; return false; } - var valid7 = _errs28 === errors; + var valid7 = _errs30 === errors; } else { var valid7 = true; } if (valid7) { if (data0.connected !== undefined) { - let data13 = data0.connected; - const _errs29 = errors; - if (typeof data13 !== 'boolean') { + let data14 = data0.connected; + const _errs31 = errors; + if (typeof data14 !== 'boolean') { validate193.errors = [ { instancePath: instancePath + '/instance/connected', @@ -151213,39 +157019,39 @@ function validate193( .type, parentSchema: schema178.properties.instance.allOf[1].properties.connected, - data: data13, + data: data14, }, ]; return false; } - var valid7 = _errs29 === errors; + var valid7 = _errs31 === errors; } else { var valid7 = true; } if (valid7) { if (data0.announcedAvailability !== undefined) { - let data14 = data0.announcedAvailability; - const _errs31 = errors; - if (errors === _errs31) { - if (Array.isArray(data14)) { + let data15 = data0.announcedAvailability; + const _errs33 = errors; + if (errors === _errs33) { + if (Array.isArray(data15)) { var valid8 = true; - const len2 = data14.length; + const len2 = data15.length; for (let i2 = 0; i2 < len2; i2++) { - let data15 = data14[i2]; - const _errs33 = errors; - if (errors === _errs33) { + let data16 = data15[i2]; + const _errs35 = errors; + if (errors === _errs35) { if ( - data15 && - typeof data15 == 'object' && - !Array.isArray(data15) + data16 && + typeof data16 == 'object' && + !Array.isArray(data16) ) { - if (data15.start !== undefined) { - let data16 = data15.start; - const _errs35 = errors; - if (errors === _errs35) { - if (errors === _errs35) { - if (typeof data16 === 'string') { - if (!formats22.validate(data16)) { + if (data16.start !== undefined) { + let data17 = data16.start; + const _errs37 = errors; + if (errors === _errs37) { + if (errors === _errs37) { + if (typeof data17 === 'string') { + if (!formats26.validate(data17)) { validate193.errors = [ { instancePath: @@ -151264,7 +157070,7 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; @@ -151290,25 +157096,25 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.start, - data: data16, + data: data17, }, ]; return false; } } } - var valid9 = _errs35 === errors; + var valid9 = _errs37 === errors; } else { var valid9 = true; } if (valid9) { - if (data15.end !== undefined) { - let data17 = data15.end; - const _errs37 = errors; - if (errors === _errs37) { - if (errors === _errs37) { - if (typeof data17 === 'string') { - if (!formats22.validate(data17)) { + if (data16.end !== undefined) { + let data18 = data16.end; + const _errs39 = errors; + if (errors === _errs39) { + if (errors === _errs39) { + if (typeof data18 === 'string') { + if (!formats26.validate(data18)) { validate193.errors = [ { instancePath: @@ -151329,7 +157135,7 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability .items.properties.end, - data: data17, + data: data18, }, ]; return false; @@ -151355,14 +157161,14 @@ function validate193( schema178.properties.instance.allOf[1] .properties.announcedAvailability.items .properties.end, - data: data17, + data: data18, }, ]; return false; } } } - var valid9 = _errs37 === errors; + var valid9 = _errs39 === errors; } else { var valid9 = true; } @@ -151385,13 +157191,13 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .announcedAvailability.items, - data: data15, + data: data16, }, ]; return false; } } - var valid8 = _errs33 === errors; + var valid8 = _errs35 === errors; if (!valid8) { break; } @@ -151412,24 +157218,24 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .announcedAvailability, - data: data14, + data: data15, }, ]; return false; } } - var valid7 = _errs31 === errors; + var valid7 = _errs33 === errors; } else { var valid7 = true; } if (valid7) { if (data0.experiment !== undefined) { - let data18 = data0.experiment; - const _errs39 = errors; - if (errors === _errs39) { - if (errors === _errs39) { - if (typeof data18 === 'string') { - if (!formats0(data18)) { + let data19 = data0.experiment; + const _errs41 = errors; + if (errors === _errs41) { + if (errors === _errs41) { + if (typeof data19 === 'string') { + if (!formats0(data19)) { validate193.errors = [ { instancePath: instancePath + '/instance/experiment', @@ -151442,7 +157248,7 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; @@ -151462,41 +157268,41 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .experiment, - data: data18, + data: data19, }, ]; return false; } } } - var valid7 = _errs39 === errors; + var valid7 = _errs41 === errors; } else { var valid7 = true; } if (valid7) { if (data0.services !== undefined) { - let data19 = data0.services; - const _errs41 = errors; - if (errors === _errs41) { - if (Array.isArray(data19)) { + let data20 = data0.services; + const _errs43 = errors; + if (errors === _errs43) { + if (Array.isArray(data20)) { var valid10 = true; - const len3 = data19.length; + const len3 = data20.length; for (let i3 = 0; i3 < len3; i3++) { - let data20 = data19[i3]; - const _errs43 = errors; - if (errors === _errs43) { + let data21 = data20[i3]; + const _errs45 = errors; + if (errors === _errs45) { if ( - data20 && - typeof data20 == 'object' && - !Array.isArray(data20) + data21 && + typeof data21 == 'object' && + !Array.isArray(data21) ) { - if (data20.serviceType !== undefined) { - let data21 = data20.serviceType; - const _errs46 = errors; - if (errors === _errs46) { - if (errors === _errs46) { - if (typeof data21 === 'string') { - if (!formats0(data21)) { + if (data21.serviceType !== undefined) { + let data22 = data21.serviceType; + const _errs48 = errors; + if (errors === _errs48) { + if (errors === _errs48) { + if (typeof data22 === 'string') { + if (!formats0(data22)) { validate193.errors = [ { instancePath: @@ -151515,7 +157321,7 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items .properties.serviceType, - data: data21, + data: data22, }, ]; return false; @@ -151541,22 +157347,22 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceType, - data: data21, + data: data22, }, ]; return false; } } } - var valid11 = _errs46 === errors; + var valid11 = _errs48 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceId !== undefined) { - let data22 = data20.serviceId; - const _errs48 = errors; - if (typeof data22 !== 'string') { + if (data21.serviceId !== undefined) { + let data23 = data21.serviceId; + const _errs50 = errors; + if (typeof data23 !== 'string') { validate193.errors = [ { instancePath: @@ -151577,20 +157383,20 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceId, - data: data22, + data: data23, }, ]; return false; } - var valid11 = _errs48 === errors; + var valid11 = _errs50 === errors; } else { var valid11 = true; } if (valid11) { - if (data20.serviceDirection !== undefined) { - let data23 = data20.serviceDirection; - const _errs50 = errors; - if (typeof data23 !== 'string') { + if (data21.serviceDirection !== undefined) { + let data24 = data21.serviceDirection; + const _errs52 = errors; + if (typeof data24 !== 'string') { validate193.errors = [ { instancePath: @@ -151611,16 +157417,16 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } if ( !( - data23 === 'consumer' || - data23 === 'producer' || - data23 === 'prosumer' + data24 === 'consumer' || + data24 === 'producer' || + data24 === 'prosumer' ) ) { validate193.errors = [ @@ -151649,12 +157455,12 @@ function validate193( schema178.properties.instance.allOf[1] .properties.services.items.properties .serviceDirection, - data: data23, + data: data24, }, ]; return false; } - var valid11 = _errs50 === errors; + var valid11 = _errs52 === errors; } else { var valid11 = true; } @@ -151676,13 +157482,13 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1] .properties.services.items, - data: data20, + data: data21, }, ]; return false; } } - var valid10 = _errs43 === errors; + var valid10 = _errs45 === errors; if (!valid10) { break; } @@ -151702,13 +157508,13 @@ function validate193( parentSchema: schema178.properties.instance.allOf[1].properties .services, - data: data19, + data: data20, }, ]; return false; } } - var valid7 = _errs41 === errors; + var valid7 = _errs43 === errors; } else { var valid7 = true; } @@ -151732,7 +157538,7 @@ function validate193( return false; } } - var valid1 = _errs26 === errors; + var valid1 = _errs28 === errors; } var valid0 = _errs1 === errors; } else { @@ -151740,9 +157546,9 @@ function validate193( } if (valid0) { if (data.deviceToken !== undefined) { - let data24 = data.deviceToken; - const _errs52 = errors; - if (typeof data24 !== 'string') { + let data25 = data.deviceToken; + const _errs54 = errors; + if (typeof data25 !== 'string') { validate193.errors = [ { instancePath: instancePath + '/deviceToken', @@ -151752,12 +157558,12 @@ function validate193( message: 'must be string', schema: schema178.properties.deviceToken.type, parentSchema: schema178.properties.deviceToken, - data: data24, + data: data25, }, ]; return false; } - var valid0 = _errs52 === errors; + var valid0 = _errs54 === errors; } else { var valid0 = true; } @@ -151823,7 +157629,7 @@ function validate194( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate194.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -151866,7 +157672,7 @@ function validate194( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate194.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -151984,7 +157790,7 @@ function validate195( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate195.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -152027,7 +157833,7 @@ function validate195( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate195.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -152190,7 +157996,7 @@ function validate196( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate196.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -152233,7 +158039,7 @@ function validate196( if (errors === _errs7) { if (errors === _errs7) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate196.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -152401,7 +158207,7 @@ function validate196( if (errors === _errs17) { if (errors === _errs17) { if (typeof data6 === 'string') { - if (!formats22.validate(data6)) { + if (!formats26.validate(data6)) { validate196.errors = [ { instancePath: @@ -152636,7 +158442,7 @@ function validate197( if (errors === _errs5) { if (errors === _errs5) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate197.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -152679,7 +158485,7 @@ function validate197( if (errors === _errs7) { if (errors === _errs7) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate197.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -152847,7 +158653,7 @@ function validate197( if (errors === _errs17) { if (errors === _errs17) { if (typeof data6 === 'string') { - if (!formats22.validate(data6)) { + if (!formats26.validate(data6)) { validate197.errors = [ { instancePath: @@ -153037,7 +158843,7 @@ function validate198( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate198.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -153080,7 +158886,7 @@ function validate198( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate198.errors = [ { instancePath: instancePath + '/' + i0 + '/end', @@ -153198,7 +159004,7 @@ function validate199( if (errors === _errs3) { if (errors === _errs3) { if (typeof data1 === 'string') { - if (!formats22.validate(data1)) { + if (!formats26.validate(data1)) { validate199.errors = [ { instancePath: instancePath + '/' + i0 + '/start', @@ -153241,7 +159047,7 @@ function validate199( if (errors === _errs5) { if (errors === _errs5) { if (typeof data2 === 'string') { - if (!formats22.validate(data2)) { + if (!formats26.validate(data2)) { validate199.errors = [ { instancePath: instancePath + '/' + i0 + '/end', diff --git a/services/experiment/src/clients/device/client.ts b/services/experiment/src/clients/device/client.ts index a9cd592d..dd095ccf 100644 --- a/services/experiment/src/clients/device/client.ts +++ b/services/experiment/src/clients/device/client.ts @@ -127,23 +127,10 @@ function parsePathParameters(url: string, endpoint: string): string[] { * // returns ["username", "role_name"] * validateUrl("https://api.example.com/users/username/roles/role_name", "/users/{}/roles/{}") */ -function validateUrl(url: string, baseUrl: string, endpoint: string): string[] { +function validateUrl(url: string, endpoint: string): string[] { if (!isValidHttpUrl(url)) throw new InvalidUrlError('Provided url is not a valid http url'); - if (!url.startsWith(baseUrl)) - throw new InvalidUrlError('Provided url does not start with the provided base url'); - const pathParameters = parsePathParameters(url, endpoint); - - let extendedBaseUrl = baseUrl + endpoint; - - pathParameters.forEach(pathParameter => { - extendedBaseUrl = extendedBaseUrl.replace('{}', pathParameter); - }); - - if (url !== extendedBaseUrl) - throw new InvalidUrlError('Provided url does not match extended base url'); - - return pathParameters; + return parsePathParameters(url, endpoint); } /** @@ -224,8 +211,10 @@ export class Client { /** * List devices * - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -241,9 +230,10 @@ export class Client { */ public async listDevices(options?: { headers?: [string, string][]; + baseUrl?: string; url?: string; }): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/devices'); + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/devices'); if (!RequestValidation.validateListDevicesInput()) throw new ValidationError( @@ -292,8 +282,10 @@ export class Client { * If the callback fails the url MIGHT not be called in the future. * * There can be multiple callbacks registered with the same device. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -312,10 +304,11 @@ export class Client { options?: { headers?: [string, string][]; changedUrl?: string; + baseUrl?: string; url?: string; }, ): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/devices'); + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/devices'); const body = device; @@ -394,7 +387,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const parameters = { device_id: device_id, @@ -481,7 +474,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const body = deviceUpdate; @@ -558,7 +551,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const parameters = { device_id: device_id, @@ -631,7 +624,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}'); + const [device_id] = validateUrl(url, '/devices/{}'); const parameters = { device_id: device_id, @@ -715,7 +708,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/availability'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/availability'); + const [device_id] = validateUrl(url, '/devices/{}/availability'); const parameters = { device_id: device_id, @@ -796,7 +789,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/availability'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/availability'); + const [device_id] = validateUrl(url, '/devices/{}/availability'); const parameters = { device_id: device_id, @@ -866,7 +859,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/availability'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/availability'); + const [device_id] = validateUrl(url, '/devices/{}/availability'); const body = availabilityRules; @@ -938,7 +931,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/websocket'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/websocket'); + const [device_id] = validateUrl(url, '/devices/{}/websocket'); const parameters = { device_id: device_id, @@ -1015,7 +1008,7 @@ export class Client { ): Promise { const urlSuffix = '/devices/{}/signaling'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [device_id] = validateUrl(url, this.baseUrl, '/devices/{}/signaling'); + const [device_id] = validateUrl(url, '/devices/{}/signaling'); const body = sigMessage; @@ -1062,8 +1055,10 @@ export class Client { /** * List Peer Connection * - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -1079,9 +1074,11 @@ export class Client { */ public async listPeerconnections(options?: { headers?: [string, string][]; + baseUrl?: string; url?: string; }): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/peerconnections'); + const url = + options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/peerconnections'); if (!RequestValidation.validateListPeerconnectionsInput()) throw new ValidationError( @@ -1129,8 +1126,10 @@ export class Client { * An URL that will be called once the peer connection is closed. * @param options.statusChangedUrl * An URL that will be called if the status of the peerconnection changes. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -1151,10 +1150,12 @@ export class Client { headers?: [string, string][]; closedUrl?: string; statusChangedUrl?: string; + baseUrl?: string; url?: string; }, ): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, '/peerconnections'); + const url = + options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, '/peerconnections'); const body = peerconnection; @@ -1238,7 +1239,7 @@ export class Client { ): Promise { const urlSuffix = '/peerconnections/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [peerconnection_id] = validateUrl(url, this.baseUrl, '/peerconnections/{}'); + const [peerconnection_id] = validateUrl(url, '/peerconnections/{}'); const parameters = { peerconnection_id: peerconnection_id, @@ -1308,7 +1309,7 @@ export class Client { ): Promise { const urlSuffix = '/peerconnections/{}'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [peerconnection_id] = validateUrl(url, this.baseUrl, '/peerconnections/{}'); + const [peerconnection_id] = validateUrl(url, '/peerconnections/{}'); const parameters = { peerconnection_id: peerconnection_id, @@ -1387,11 +1388,7 @@ export class Client { ): Promise { const urlSuffix = '/peerconnections/{}/device_status'.split('{}').at(-1) ?? ''; if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix); - const [peerconnection_id] = validateUrl( - url, - this.baseUrl, - '/peerconnections/{}/device_status', - ); + const [peerconnection_id] = validateUrl(url, '/peerconnections/{}/device_status'); const parameters = { peerconnection_id: peerconnection_id, diff --git a/services/experiment/src/clients/device/types.ts b/services/experiment/src/clients/device/types.ts index cc790817..463cace0 100644 --- a/services/experiment/src/clients/device/types.ts +++ b/services/experiment/src/clients/device/types.ts @@ -271,6 +271,10 @@ export type DeviceOverview = * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } : T extends 'request' @@ -299,6 +303,10 @@ export type DeviceOverview = * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } : T extends 'response' @@ -331,6 +339,10 @@ export type DeviceOverview = * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } : never; @@ -390,6 +402,10 @@ export type InstantiableCloudDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -460,6 +480,10 @@ export type InstantiableCloudDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -533,6 +557,10 @@ export type ConcreteDevice = * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -576,6 +604,10 @@ export type ConcreteDevice = * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -613,6 +645,10 @@ export type ConcreteDevice = * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -663,6 +699,10 @@ export type InstantiableBrowserDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -733,6 +777,10 @@ export type InstantiableBrowserDevice[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -800,6 +848,10 @@ export type DeviceGroup = * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -832,6 +884,10 @@ export type DeviceGroup = * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -868,6 +924,10 @@ export type DeviceGroup = * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -907,6 +967,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -943,6 +1007,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -989,6 +1057,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1025,6 +1097,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1058,6 +1134,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1090,6 +1170,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1122,6 +1206,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1154,6 +1242,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'request'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1191,6 +1283,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1227,6 +1323,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1273,6 +1373,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1309,6 +1413,10 @@ export type Device = T extends * List of users who own the device */ owner?: UserReference<'response'>[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1405,6 +1513,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1599,6 +1727,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1631,6 +1763,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1663,6 +1799,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; @@ -1711,6 +1851,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'cloud instantiable'; @@ -1747,6 +1891,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'device'; @@ -1793,6 +1941,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'edge instantiable'; @@ -1829,6 +1981,10 @@ export type DeviceChangedEventCallback[]; + /** + * Endpoint where the device may be booked. + */ + bookingEndpoint: string; [k: string]: unknown; } & { type?: 'group'; diff --git a/services/lti/src/clients/authentication/client.ts b/services/lti/src/clients/authentication/client.ts index 05d2d375..09bdfc97 100644 --- a/services/lti/src/clients/authentication/client.ts +++ b/services/lti/src/clients/authentication/client.ts @@ -129,23 +129,10 @@ function parsePathParameters(url: string, endpoint: string): string[] { * // returns ["username", "role_name"] * validateUrl("https://api.example.com/users/username/roles/role_name", "/users/{}/roles/{}") */ -function validateUrl(url: string, baseUrl: string, endpoint: string): string[] { +function validateUrl(url: string, endpoint: string): string[] { if (!isValidHttpUrl(url)) throw new InvalidUrlError('Provided url is not a valid http url'); - if (!url.startsWith(baseUrl)) - throw new InvalidUrlError('Provided url does not start with the provided base url'); - const pathParameters = parsePathParameters(url, endpoint); - - let extendedBaseUrl = baseUrl + endpoint; - - pathParameters.forEach(pathParameter => { - extendedBaseUrl = extendedBaseUrl.replace('{}', pathParameter); - }); - - if (url !== extendedBaseUrl) - throw new InvalidUrlError('Provided url does not match extended base url'); - - return pathParameters; + return parsePathParameters(url, endpoint); } /** @@ -351,8 +338,10 @@ export class Client { * * @param options.username * filter for users with a specific username - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -368,8 +357,8 @@ export class Client { */ public async listUsers( options?: { - headers?: [string, string][],username?: string,url?: string}): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, "/users") + headers?: [string, string][],username?: string,baseUrl?: string,url?: string}): Promise { + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, "/users") @@ -423,8 +412,10 @@ export class Client { * * @param user * User to be created. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -440,8 +431,8 @@ export class Client { */ public async createUser(user: Require, "username" | "password">, options?: { - headers?: [string, string][],url?: string}): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, "/users") + headers?: [string, string][],baseUrl?: string,url?: string}): Promise { + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, "/users") const body = user @@ -506,7 +497,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/users/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [user_id,] = validateUrl(url, this.baseUrl, '/users/{}') + const [user_id,] = validateUrl(url, '/users/{}') @@ -575,7 +566,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/users/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [user_id,] = validateUrl(url, this.baseUrl, '/users/{}') + const [user_id,] = validateUrl(url, '/users/{}') const body = user @@ -643,7 +634,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/users/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [user_id,] = validateUrl(url, this.baseUrl, '/users/{}') + const [user_id,] = validateUrl(url, '/users/{}') diff --git a/services/lti/src/clients/experiment/client.ts b/services/lti/src/clients/experiment/client.ts index e97cb4b3..3ace6ab5 100644 --- a/services/lti/src/clients/experiment/client.ts +++ b/services/lti/src/clients/experiment/client.ts @@ -129,23 +129,10 @@ function parsePathParameters(url: string, endpoint: string): string[] { * // returns ["username", "role_name"] * validateUrl("https://api.example.com/users/username/roles/role_name", "/users/{}/roles/{}") */ -function validateUrl(url: string, baseUrl: string, endpoint: string): string[] { +function validateUrl(url: string, endpoint: string): string[] { if (!isValidHttpUrl(url)) throw new InvalidUrlError('Provided url is not a valid http url'); - if (!url.startsWith(baseUrl)) - throw new InvalidUrlError('Provided url does not start with the provided base url'); - const pathParameters = parsePathParameters(url, endpoint); - - let extendedBaseUrl = baseUrl + endpoint; - - pathParameters.forEach(pathParameter => { - extendedBaseUrl = extendedBaseUrl.replace('{}', pathParameter); - }); - - if (url !== extendedBaseUrl) - throw new InvalidUrlError('Provided url does not match extended base url'); - - return pathParameters; + return parsePathParameters(url, endpoint); } /** @@ -222,8 +209,10 @@ export class Client { /** * List experiments * - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -239,8 +228,8 @@ export class Client { */ public async listExperiments( options?: { - headers?: [string, string][],url?: string}): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, "/experiments") + headers?: [string, string][],baseUrl?: string,url?: string}): Promise { + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, "/experiments") @@ -288,8 +277,10 @@ export class Client { * The experiment to be created. * @param options.changedURL * An URL that will be called when the experiment status changes. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -306,8 +297,8 @@ export class Client { */ public async createExperiment(experiment: Types.Experiment<"request">, options?: { - headers?: [string, string][],changedURL?: string,url?: string}): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, "/experiments") + headers?: [string, string][],changedURL?: string,baseUrl?: string,url?: string}): Promise { + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, "/experiments") const body = experiment @@ -380,7 +371,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/experiments/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [experiment_id,] = validateUrl(url, this.baseUrl, '/experiments/{}') + const [experiment_id,] = validateUrl(url, '/experiments/{}') @@ -452,7 +443,7 @@ export class Client { headers?: [string, string][],changedURL?: string,}): Promise { const urlSuffix = '/experiments/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [experiment_id,] = validateUrl(url, this.baseUrl, '/experiments/{}') + const [experiment_id,] = validateUrl(url, '/experiments/{}') const body = experimentUpdate @@ -526,7 +517,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/experiments/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [experiment_id,] = validateUrl(url, this.baseUrl, '/experiments/{}') + const [experiment_id,] = validateUrl(url, '/experiments/{}') @@ -571,8 +562,10 @@ export class Client { /** * List templates * - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -588,8 +581,8 @@ export class Client { */ public async listTemplate( options?: { - headers?: [string, string][],url?: string}): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, "/templates") + headers?: [string, string][],baseUrl?: string,url?: string}): Promise { + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, "/templates") @@ -635,8 +628,10 @@ export class Client { * * @param template * The template to be created. - * @param options.url + * @param options.baseUrl * Url of the to be used. + * @param options.url + * Url to be used. * * @throws {@link FetchError | FetchError } * Thrown if fetch fails. @@ -653,8 +648,8 @@ export class Client { */ public async createTemplate(template: Types.Template<"request">, options?: { - headers?: [string, string][],url?: string}): Promise { - const url = appendToUrl(options?.url ?? this.baseUrl, "/templates") + headers?: [string, string][],baseUrl?: string,url?: string}): Promise { + const url = options?.url ?? appendToUrl(options?.baseUrl ?? this.baseUrl, "/templates") const body = template @@ -719,7 +714,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/templates/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [template_id,] = validateUrl(url, this.baseUrl, '/templates/{}') + const [template_id,] = validateUrl(url, '/templates/{}') @@ -789,7 +784,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/templates/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [template_id,] = validateUrl(url, this.baseUrl, '/templates/{}') + const [template_id,] = validateUrl(url, '/templates/{}') const body = templateUpdate @@ -857,7 +852,7 @@ export class Client { headers?: [string, string][],}): Promise { const urlSuffix = '/templates/{}'.split('{}').at(-1) ?? '' if (urlSuffix && !url.endsWith(urlSuffix)) url = appendToUrl(url, urlSuffix) - const [template_id,] = validateUrl(url, this.baseUrl, '/templates/{}') + const [template_id,] = validateUrl(url, '/templates/{}')