@boxrouter/sdk 0.0.1-alpha.0 → 0.12.190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/NOTICE +29 -5
  2. package/README.md +497 -24
  3. package/dist/addresses.d.ts +5 -0
  4. package/dist/addresses.js +10 -0
  5. package/dist/api-error.d.ts +62 -0
  6. package/dist/api-error.js +264 -0
  7. package/dist/boxrouter.d.ts +68 -0
  8. package/dist/boxrouter.js +291 -0
  9. package/dist/browser-session/index.d.ts +17 -0
  10. package/dist/browser-session/index.js +48 -0
  11. package/dist/browser-session/operations.gen.d.ts +272 -0
  12. package/dist/browser-session/operations.gen.js +58 -0
  13. package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
  14. package/dist/browser-session/responseContracts/api_keys.js +10 -0
  15. package/dist/browser-session/responseContracts/credits.d.ts +2 -0
  16. package/dist/browser-session/responseContracts/credits.js +8 -0
  17. package/dist/browser-session/responseContracts/github.d.ts +2 -0
  18. package/dist/browser-session/responseContracts/github.js +11 -0
  19. package/dist/browser-session/responseContracts/identity.d.ts +2 -0
  20. package/dist/browser-session/responseContracts/identity.js +30 -0
  21. package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
  22. package/dist/browser-session/responseContracts/organizations.js +17 -0
  23. package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
  24. package/dist/browser-session/responseContracts/privacy.js +7 -0
  25. package/dist/browser-session/responseContracts.gen.d.ts +3 -0
  26. package/dist/browser-session/responseContracts.gen.js +10 -0
  27. package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
  28. package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
  29. package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
  30. package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
  31. package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
  32. package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
  33. package/dist/browser-session/responseValidators/credits.cjs +2 -0
  34. package/dist/browser-session/responseValidators/credits.d.cts +3 -0
  35. package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
  36. package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
  37. package/dist/browser-session/responseValidators/github.cjs +2 -0
  38. package/dist/browser-session/responseValidators/github.d.cts +3 -0
  39. package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
  40. package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
  41. package/dist/browser-session/responseValidators/identity.cjs +2 -0
  42. package/dist/browser-session/responseValidators/identity.d.cts +23 -0
  43. package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
  44. package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
  45. package/dist/browser-session/responseValidators/organizations.cjs +2 -0
  46. package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
  47. package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
  48. package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
  49. package/dist/browser-session/responseValidators/privacy.cjs +2 -0
  50. package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
  51. package/dist/client/client.gen.d.ts +1 -1
  52. package/dist/client/client.gen.js +46 -94
  53. package/dist/client/index.d.ts +10 -10
  54. package/dist/client/index.js +16 -5
  55. package/dist/client/types.gen.d.ts +6 -6
  56. package/dist/client/types.gen.js +2 -1
  57. package/dist/client/utils.gen.d.ts +2 -2
  58. package/dist/client/utils.gen.js +31 -20
  59. package/dist/client.gen.d.ts +2 -2
  60. package/dist/client.gen.js +5 -2
  61. package/dist/command-check.gen.d.ts +14 -0
  62. package/dist/command-check.gen.js +23 -0
  63. package/dist/command-input.gen.d.ts +6 -0
  64. package/dist/command-input.gen.js +45 -0
  65. package/dist/core/auth.gen.js +5 -1
  66. package/dist/core/binaryStream.d.ts +8 -0
  67. package/dist/core/binaryStream.js +76 -0
  68. package/dist/core/bodySerializer.gen.d.ts +1 -1
  69. package/dist/core/bodySerializer.gen.js +8 -5
  70. package/dist/core/commandValidators.cjs +1 -0
  71. package/dist/core/commandValidators.d.cts +14 -0
  72. package/dist/core/eventValidation.d.ts +17 -0
  73. package/dist/core/eventValidation.js +56 -0
  74. package/dist/core/eventValidators.cjs +1 -0
  75. package/dist/core/eventValidators.d.cts +2 -0
  76. package/dist/core/json.d.ts +3 -0
  77. package/dist/core/json.js +33 -0
  78. package/dist/core/params.gen.js +4 -1
  79. package/dist/core/pathSerializer.gen.js +20 -11
  80. package/dist/core/queryKeySerializer.gen.js +12 -6
  81. package/dist/core/responseContracts/actions.d.ts +2 -0
  82. package/dist/core/responseContracts/actions.js +30 -0
  83. package/dist/core/responseContracts/agents.d.ts +2 -0
  84. package/dist/core/responseContracts/agents.js +7 -0
  85. package/dist/core/responseContracts/artifacts.d.ts +2 -0
  86. package/dist/core/responseContracts/artifacts.js +8 -0
  87. package/dist/core/responseContracts/commands.d.ts +2 -0
  88. package/dist/core/responseContracts/commands.js +6 -0
  89. package/dist/core/responseContracts/credits.d.ts +2 -0
  90. package/dist/core/responseContracts/credits.js +27 -0
  91. package/dist/core/responseContracts/files.d.ts +2 -0
  92. package/dist/core/responseContracts/files.js +15 -0
  93. package/dist/core/responseContracts/github.d.ts +2 -0
  94. package/dist/core/responseContracts/github.js +8 -0
  95. package/dist/core/responseContracts/images.d.ts +2 -0
  96. package/dist/core/responseContracts/images.js +8 -0
  97. package/dist/core/responseContracts/launchRuns.d.ts +2 -0
  98. package/dist/core/responseContracts/launchRuns.js +10 -0
  99. package/dist/core/responseContracts/launches.d.ts +2 -0
  100. package/dist/core/responseContracts/launches.js +10 -0
  101. package/dist/core/responseContracts/operations.d.ts +2 -0
  102. package/dist/core/responseContracts/operations.js +7 -0
  103. package/dist/core/responseContracts/previews.d.ts +2 -0
  104. package/dist/core/responseContracts/previews.js +8 -0
  105. package/dist/core/responseContracts/pricing.d.ts +2 -0
  106. package/dist/core/responseContracts/pricing.js +6 -0
  107. package/dist/core/responseContracts/processes.d.ts +2 -0
  108. package/dist/core/responseContracts/processes.js +11 -0
  109. package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
  110. package/dist/core/responseContracts/provider_accounts.js +13 -0
  111. package/dist/core/responseContracts/providers.d.ts +2 -0
  112. package/dist/core/responseContracts/providers.js +6 -0
  113. package/dist/core/responseContracts/routing.d.ts +2 -0
  114. package/dist/core/responseContracts/routing.js +8 -0
  115. package/dist/core/responseContracts/sandboxes.d.ts +2 -0
  116. package/dist/core/responseContracts/sandboxes.js +15 -0
  117. package/dist/core/responseContracts/secrets.d.ts +2 -0
  118. package/dist/core/responseContracts/secrets.js +8 -0
  119. package/dist/core/responseContracts/spend_limits.d.ts +2 -0
  120. package/dist/core/responseContracts/spend_limits.js +8 -0
  121. package/dist/core/responseContracts/terminals.d.ts +2 -0
  122. package/dist/core/responseContracts/terminals.js +11 -0
  123. package/dist/core/responseContracts/usage.d.ts +2 -0
  124. package/dist/core/responseContracts/usage.js +7 -0
  125. package/dist/core/responseContracts/volumes.d.ts +2 -0
  126. package/dist/core/responseContracts/volumes.js +19 -0
  127. package/dist/core/responseContracts.gen.d.ts +3 -0
  128. package/dist/core/responseContracts.gen.js +27 -0
  129. package/dist/core/responseModes.d.ts +19 -0
  130. package/dist/core/responseModes.js +13 -0
  131. package/dist/core/responseValidation.d.ts +44 -0
  132. package/dist/core/responseValidation.js +174 -0
  133. package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
  134. package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
  135. package/dist/core/responseValidators/actions.cjs +2 -0
  136. package/dist/core/responseValidators/actions.d.cts +24 -0
  137. package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
  138. package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
  139. package/dist/core/responseValidators/agents.cjs +2 -0
  140. package/dist/core/responseValidators/agents.d.cts +2 -0
  141. package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
  142. package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
  143. package/dist/core/responseValidators/artifacts.cjs +2 -0
  144. package/dist/core/responseValidators/artifacts.d.cts +2 -0
  145. package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
  146. package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
  147. package/dist/core/responseValidators/commands.cjs +2 -0
  148. package/dist/core/responseValidators/commands.d.cts +1 -0
  149. package/dist/core/responseValidators/compact.cjs +122 -0
  150. package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
  151. package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
  152. package/dist/core/responseValidators/credits.cjs +2 -0
  153. package/dist/core/responseValidators/credits.d.cts +21 -0
  154. package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
  155. package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
  156. package/dist/core/responseValidators/files.cjs +2 -0
  157. package/dist/core/responseValidators/files.d.cts +5 -0
  158. package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
  159. package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
  160. package/dist/core/responseValidators/github.cjs +2 -0
  161. package/dist/core/responseValidators/github.d.cts +2 -0
  162. package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
  163. package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
  164. package/dist/core/responseValidators/images.cjs +2 -0
  165. package/dist/core/responseValidators/images.d.cts +3 -0
  166. package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
  167. package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
  168. package/dist/core/responseValidators/launchRuns.cjs +2 -0
  169. package/dist/core/responseValidators/launchRuns.d.cts +5 -0
  170. package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
  171. package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
  172. package/dist/core/responseValidators/launches.cjs +2 -0
  173. package/dist/core/responseValidators/launches.d.cts +5 -0
  174. package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
  175. package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
  176. package/dist/core/responseValidators/operations.cjs +2 -0
  177. package/dist/core/responseValidators/operations.d.cts +2 -0
  178. package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
  179. package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
  180. package/dist/core/responseValidators/previews.cjs +2 -0
  181. package/dist/core/responseValidators/previews.d.cts +3 -0
  182. package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
  183. package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
  184. package/dist/core/responseValidators/pricing.cjs +2 -0
  185. package/dist/core/responseValidators/pricing.d.cts +1 -0
  186. package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
  187. package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
  188. package/dist/core/responseValidators/processes.cjs +2 -0
  189. package/dist/core/responseValidators/processes.d.cts +2 -0
  190. package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
  191. package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
  192. package/dist/core/responseValidators/provider_accounts.cjs +2 -0
  193. package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
  194. package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
  195. package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
  196. package/dist/core/responseValidators/providers.cjs +2 -0
  197. package/dist/core/responseValidators/providers.d.cts +1 -0
  198. package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
  199. package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
  200. package/dist/core/responseValidators/routing.cjs +2 -0
  201. package/dist/core/responseValidators/routing.d.cts +3 -0
  202. package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
  203. package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
  204. package/dist/core/responseValidators/sandboxes.cjs +2 -0
  205. package/dist/core/responseValidators/sandboxes.d.cts +10 -0
  206. package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
  207. package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
  208. package/dist/core/responseValidators/secrets.cjs +2 -0
  209. package/dist/core/responseValidators/secrets.d.cts +1 -0
  210. package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
  211. package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
  212. package/dist/core/responseValidators/spend_limits.cjs +2 -0
  213. package/dist/core/responseValidators/spend_limits.d.cts +3 -0
  214. package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
  215. package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
  216. package/dist/core/responseValidators/terminals.cjs +2 -0
  217. package/dist/core/responseValidators/terminals.d.cts +2 -0
  218. package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
  219. package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
  220. package/dist/core/responseValidators/usage.cjs +2 -0
  221. package/dist/core/responseValidators/usage.d.cts +1 -0
  222. package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
  223. package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
  224. package/dist/core/responseValidators/volumes.cjs +2 -0
  225. package/dist/core/responseValidators/volumes.d.cts +10 -0
  226. package/dist/core/serverSentEvents.gen.d.ts +21 -62
  227. package/dist/core/serverSentEvents.gen.js +297 -116
  228. package/dist/core/streamErrors.d.ts +32 -0
  229. package/dist/core/streamErrors.js +51 -0
  230. package/dist/core/types.gen.d.ts +2 -2
  231. package/dist/core/types.gen.js +2 -1
  232. package/dist/core/utils.gen.d.ts +1 -1
  233. package/dist/core/utils.gen.js +16 -10
  234. package/dist/creation.gen.d.ts +21 -0
  235. package/dist/creation.gen.js +35 -0
  236. package/dist/data-origin.d.ts +25 -0
  237. package/dist/data-origin.js +57 -0
  238. package/dist/error-codes.gen.d.ts +2 -0
  239. package/dist/error-codes.gen.js +2 -0
  240. package/dist/idempotency.gen.d.ts +1 -0
  241. package/dist/idempotency.gen.js +60 -0
  242. package/dist/images.d.ts +74 -0
  243. package/dist/images.js +88 -0
  244. package/dist/index.d.ts +22 -2
  245. package/dist/index.js +79 -1
  246. package/dist/launch-input.gen.d.ts +9 -0
  247. package/dist/launch-input.gen.js +83 -0
  248. package/dist/launch.d.ts +28 -0
  249. package/dist/launch.js +222 -0
  250. package/dist/namespace-actions.d.mts +307 -0
  251. package/dist/namespace-actions.mjs +595 -0
  252. package/dist/namespace-agents.d.mts +33 -0
  253. package/dist/namespace-agents.mjs +40 -0
  254. package/dist/namespace-artifacts.d.mts +46 -0
  255. package/dist/namespace-artifacts.mjs +69 -0
  256. package/dist/namespace-base.d.mts +7 -0
  257. package/dist/namespace-base.mjs +7 -0
  258. package/dist/namespace-commands.d.mts +57 -0
  259. package/dist/namespace-commands.mjs +57 -0
  260. package/dist/namespace-credits.d.mts +213 -0
  261. package/dist/namespace-credits.mjs +476 -0
  262. package/dist/namespace-files.d.mts +203 -0
  263. package/dist/namespace-files.mjs +334 -0
  264. package/dist/namespace-github.d.mts +50 -0
  265. package/dist/namespace-github.mjs +68 -0
  266. package/dist/namespace-images.d.mts +52 -0
  267. package/dist/namespace-images.mjs +78 -0
  268. package/dist/namespace-launch_runs.d.mts +89 -0
  269. package/dist/namespace-launch_runs.mjs +133 -0
  270. package/dist/namespace-launches.d.mts +89 -0
  271. package/dist/namespace-launches.mjs +133 -0
  272. package/dist/namespace-operations.d.mts +45 -0
  273. package/dist/namespace-operations.mjs +52 -0
  274. package/dist/namespace-previews.d.mts +79 -0
  275. package/dist/namespace-previews.mjs +101 -0
  276. package/dist/namespace-pricing.d.mts +31 -0
  277. package/dist/namespace-pricing.mjs +22 -0
  278. package/dist/namespace-processes.d.mts +125 -0
  279. package/dist/namespace-processes.mjs +184 -0
  280. package/dist/namespace-provider_accounts.d.mts +156 -0
  281. package/dist/namespace-provider_accounts.mjs +241 -0
  282. package/dist/namespace-providers.d.mts +28 -0
  283. package/dist/namespace-providers.mjs +24 -0
  284. package/dist/namespace-routing.d.mts +64 -0
  285. package/dist/namespace-routing.mjs +86 -0
  286. package/dist/namespace-sandboxes.d.mts +287 -0
  287. package/dist/namespace-sandboxes.mjs +402 -0
  288. package/dist/namespace-secrets.d.mts +46 -0
  289. package/dist/namespace-secrets.mjs +68 -0
  290. package/dist/namespace-spend_limits.d.mts +48 -0
  291. package/dist/namespace-spend_limits.mjs +70 -0
  292. package/dist/namespace-terminals.d.mts +112 -0
  293. package/dist/namespace-terminals.mjs +177 -0
  294. package/dist/namespace-usage.d.mts +46 -0
  295. package/dist/namespace-usage.mjs +53 -0
  296. package/dist/namespace-volumes.d.mts +110 -0
  297. package/dist/namespace-volumes.mjs +269 -0
  298. package/dist/operations.d.ts +14 -0
  299. package/dist/operations.js +31 -0
  300. package/dist/retry.d.ts +8 -0
  301. package/dist/retry.js +63 -0
  302. package/dist/routing-choices.gen.d.ts +132 -0
  303. package/dist/routing-choices.gen.js +136 -0
  304. package/dist/routing.d.ts +23 -0
  305. package/dist/routing.js +38 -0
  306. package/dist/sandbox-handle.gen.d.ts +8 -0
  307. package/dist/sandbox-handle.gen.js +14 -0
  308. package/dist/sandboxes.d.ts +213 -0
  309. package/dist/sandboxes.js +507 -0
  310. package/dist/sdk.gen.d.ts +2016 -12
  311. package/dist/sdk.gen.js +3862 -16
  312. package/dist/server-timing.d.ts +19 -0
  313. package/dist/server-timing.gen.d.ts +265 -0
  314. package/dist/server-timing.gen.js +254 -0
  315. package/dist/server-timing.js +421 -0
  316. package/dist/spend-limits.d.ts +17 -0
  317. package/dist/spend-limits.js +26 -0
  318. package/dist/telemetry.d.ts +51 -0
  319. package/dist/telemetry.gen.d.ts +1 -0
  320. package/dist/telemetry.gen.js +5 -0
  321. package/dist/telemetry.js +438 -0
  322. package/dist/terminal.d.ts +61 -0
  323. package/dist/terminal.js +266 -0
  324. package/dist/transfer.d.ts +75 -0
  325. package/dist/transfer.js +389 -0
  326. package/dist/types.gen.d.ts +14936 -110
  327. package/dist/types.gen.js +2 -1
  328. package/dist/user-agent.d.ts +2 -0
  329. package/dist/user-agent.js +18 -0
  330. package/dist/version.gen.d.ts +1 -0
  331. package/dist/version.gen.js +5 -0
  332. package/dist/volumes.d.ts +33 -0
  333. package/dist/volumes.js +221 -0
  334. package/dist/waits.d.ts +31 -0
  335. package/dist/waits.js +42 -0
  336. package/dist/workflow-policy.gen.d.ts +41 -0
  337. package/dist/workflow-policy.gen.js +45 -0
  338. package/package.json +124 -14
@@ -0,0 +1 @@
1
+ "use strict";exports.validate0 = validate321;const schema314 = {"type":"object","required":["automation","version","executable"],"properties":{"automation":{"type":"array","minItems":1,"items":{"type":"string","enum":["playwright","cdp"]},"description":"Channels that loaded a page served inside the guest."},"version":{"type":"string"},"executable":{"type":"string"}}};function validate321(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate321.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.automation === undefined) && (missing0 = "automation")) || ((data.version === undefined) && (missing0 = "version"))) || ((data.executable === undefined) && (missing0 = "executable"))){validate321.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.automation !== undefined){let data0 = data.automation;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length < 1){validate321.errors = [{instancePath:instancePath+"/automation",schemaPath:"#/properties/automation/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs3 = errors;if(typeof data1 !== "string"){validate321.errors = [{instancePath:instancePath+"/automation/" + i0,schemaPath:"#/properties/automation/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "playwright") || (data1 === "cdp"))){validate321.errors = [{instancePath:instancePath+"/automation/" + i0,schemaPath:"#/properties/automation/items/enum",keyword:"enum",params:{allowedValues: schema314.properties.automation.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs3 === errors;if(!valid1){break;}}}}else {validate321.errors = [{instancePath:instancePath+"/automation",schemaPath:"#/properties/automation/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.version !== undefined){const _errs5 = errors;if(typeof data.version !== "string"){validate321.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.executable !== undefined){const _errs7 = errors;if(typeof data.executable !== "string"){validate321.errors = [{instancePath:instancePath+"/executable",schemaPath:"#/properties/executable/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}else {validate321.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate321.errors = vErrors;return errors === 0;}validate321.evaluated = {"props":{"automation":true,"version":true,"executable":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate322;const schema315 = {"type":"object","required":["state","keeps","outside_grant","lifetime"],"properties":{"state":{"type":"string","enum":["paused"]},"keeps":{"type":"string","enum":["files_only","files_and_memory"]},"outside_grant":{"type":"array","items":{"type":"string","enum":["keeps"]},"description":"Observed values that fell outside the pause_resume grant."},"lifetime":{"$ref":"#/components/schemas/Lifetime"},"pause_expires_at":{"type":["string","null"],"format":"date-time","description":"Deadline after which a managed paused sandbox is terminated; null when no managed pause deadline applies."}}};const schema316 = {"type":"object","required":["seconds","remaining_seconds","ends_at","kept_until","at_end","max_seconds","extendable"],"description":"How long the sandbox may live. It counts from the provider's create, as with the\nprovider's own SDK (BoxRouter's clock starts when it sends the create). Whether paused\ntime counts depends on the provider.\n","properties":{"seconds":{"minimum":0,"description":"The lifetime in seconds. 0 only for a sandbox that has no lifetime record (one that ended before lifetimes were recorded).","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"remaining_seconds":{"minimum":0,"description":"As of observed_at. Equal to seconds while creating, and frozen while the sandbox is not running.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"ends_at":{"type":["string","null"],"format":"date-time","description":"Set only while running. The end never comes before it; how soon after is not\npromised. Null while creating, paused or ended.\n"},"kept_until":{"type":["string","null"],"format":"date-time","description":"While paused: when the sandbox is destroyed if it is not resumed, 30\ndays after it last ran, sooner where the provider keeps it for less. Where the lifetime\nkeeps counting while paused, the sandbox ends when the lifetime runs out, so\nkept_until is that moment when it falls inside the 30 days; extending the lifetime\nmoves it. Where the clock stops while paused, the full 30 days apply.\n"},"at_end":{"type":"string","enum":["destroy","pause"]},"max_seconds":{"description":"The route's longest single run, from one start to the next pause or end, as\nnarrowed for this account. A declared number: an integer, \"unlimited\", \"unknown\"\nor a floor.\n","anyOf":[{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},{"type":"string","enum":["unlimited","unknown"]},{"type":"object","required":["at_least"],"properties":{"at_least":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}}]},"extendable":{"type":"boolean"}}};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate323(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate323.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((data.seconds === undefined) && (missing0 = "seconds")) || ((data.remaining_seconds === undefined) && (missing0 = "remaining_seconds"))) || ((data.ends_at === undefined) && (missing0 = "ends_at"))) || ((data.kept_until === undefined) && (missing0 = "kept_until"))) || ((data.at_end === undefined) && (missing0 = "at_end"))) || ((data.max_seconds === undefined) && (missing0 = "max_seconds"))) || ((data.extendable === undefined) && (missing0 = "extendable"))){validate323.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.seconds !== undefined){let data0 = data.seconds;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate323.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate323.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate323.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.remaining_seconds !== undefined){let data1 = data.remaining_seconds;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate323.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 0){validate323.errors = [{instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate323.errors = [{instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.ends_at !== undefined){let data2 = data.ends_at;const _errs13 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate323.errors = [{instancePath:instancePath+"/ends_at",schemaPath:"#/properties/ends_at/type",keyword:"type",params:{type: schema316.properties.ends_at.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(errors === _errs13){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate323.errors = [{instancePath:instancePath+"/ends_at",schemaPath:"#/properties/ends_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.kept_until !== undefined){let data3 = data.kept_until;const _errs15 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate323.errors = [{instancePath:instancePath+"/kept_until",schemaPath:"#/properties/kept_until/type",keyword:"type",params:{type: schema316.properties.kept_until.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(errors === _errs15){if(typeof data3 === "string"){if(!(formats0.validate(data3))){validate323.errors = [{instancePath:instancePath+"/kept_until",schemaPath:"#/properties/kept_until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.at_end !== undefined){let data4 = data.at_end;const _errs17 = errors;if(typeof data4 !== "string"){validate323.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "destroy") || (data4 === "pause"))){validate323.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/enum",keyword:"enum",params:{allowedValues: schema316.properties.at_end.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.max_seconds !== undefined){let data5 = data.max_seconds;const _errs19 = errors;const _errs20 = errors;let valid5 = false;const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;let valid7 = false;const _errs24 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err6 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid3 = _errs24 === errors;valid7 = valid7 || _valid3;const _errs26 = errors;if(typeof data5 !== "bigint"){const err7 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid3 = _errs26 === errors;valid7 = valid7 || _valid3;if(!valid7){const err8 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid6 = _errs22 === errors;if(valid6){if(typeof data5 === "bigint"){if(data5 < 1){const err9 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(errors === _errs21){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){const err10 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var _valid2 = _errs21 === errors;valid5 = valid5 || _valid2;const _errs27 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!((data5 === "unlimited") || (data5 === "unknown"))){const err12 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/1/enum",keyword:"enum",params:{allowedValues: schema316.properties.max_seconds.anyOf[1].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid2 = _errs27 === errors;valid5 = valid5 || _valid2;const _errs29 = errors;if(errors === _errs29){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if((data5.at_least === undefined) && (missing1 = "at_least")){const err13 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/2/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {if(data5.at_least !== undefined){let data6 = data5.at_least;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid10 = false;const _errs34 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err14 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid4 = _errs34 === errors;valid10 = valid10 || _valid4;const _errs36 = errors;if(typeof data6 !== "bigint"){const err15 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid4 = _errs36 === errors;valid10 = valid10 || _valid4;if(!valid10){const err16 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid9 = _errs32 === errors;if(valid9){if(typeof data6 === "bigint"){if(data6 < 1){const err17 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}if(errors === _errs31){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){const err18 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}}}else {const err19 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid2 = _errs29 === errors;valid5 = valid5 || _valid2;if(_valid2){var props0 = {};props0.at_least = true;}if(!valid5){const err20 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate323.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.extendable !== undefined){const _errs37 = errors;if(typeof data.extendable !== "boolean"){validate323.errors = [{instancePath:instancePath+"/extendable",schemaPath:"#/properties/extendable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs37 === errors;}else {var valid0 = true;}}}}}}}}}else {validate323.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate323.errors = vErrors;return errors === 0;}validate323.evaluated = {"props":{"seconds":true,"remaining_seconds":true,"ends_at":true,"kept_until":true,"at_end":true,"max_seconds":true,"extendable":true},"dynamicProps":false,"dynamicItems":false};function validate322(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate322.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.state === undefined) && (missing0 = "state")) || ((data.keeps === undefined) && (missing0 = "keeps"))) || ((data.outside_grant === undefined) && (missing0 = "outside_grant"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))){validate322.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.state !== undefined){let data0 = data.state;const _errs1 = errors;if(typeof data0 !== "string"){validate322.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data0 === "paused")){validate322.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema315.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.keeps !== undefined){let data1 = data.keeps;const _errs3 = errors;if(typeof data1 !== "string"){validate322.errors = [{instancePath:instancePath+"/keeps",schemaPath:"#/properties/keeps/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "files_only") || (data1 === "files_and_memory"))){validate322.errors = [{instancePath:instancePath+"/keeps",schemaPath:"#/properties/keeps/enum",keyword:"enum",params:{allowedValues: schema315.properties.keeps.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.outside_grant !== undefined){let data2 = data.outside_grant;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs7 = errors;if(typeof data3 !== "string"){validate322.errors = [{instancePath:instancePath+"/outside_grant/" + i0,schemaPath:"#/properties/outside_grant/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data3 === "keeps")){validate322.errors = [{instancePath:instancePath+"/outside_grant/" + i0,schemaPath:"#/properties/outside_grant/items/enum",keyword:"enum",params:{allowedValues: schema315.properties.outside_grant.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;if(!valid1){break;}}}else {validate322.errors = [{instancePath:instancePath+"/outside_grant",schemaPath:"#/properties/outside_grant/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs9 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.pause_expires_at !== undefined){let data5 = data.pause_expires_at;const _errs10 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate322.errors = [{instancePath:instancePath+"/pause_expires_at",schemaPath:"#/properties/pause_expires_at/type",keyword:"type",params:{type: schema315.properties.pause_expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs10){if(errors === _errs10){if(typeof data5 === "string"){if(!(formats0.validate(data5))){validate322.errors = [{instancePath:instancePath+"/pause_expires_at",schemaPath:"#/properties/pause_expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs10 === errors;}else {var valid0 = true;}}}}}}}else {validate322.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate322.errors = vErrors;return errors === 0;}validate322.evaluated = {"props":{"state":true,"keeps":true,"outside_grant":true,"lifetime":true,"pause_expires_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate325;const schema317 = {"type":"object","required":["state","cold_restart","outside_grant","lifetime"],"properties":{"state":{"type":"string","enum":["running"]},"cold_restart":{"type":"boolean","description":"Whether running processes were lost while the sandbox was paused or stopped."},"outside_grant":{"type":"array","items":{"type":"string","enum":["cold_restart"]},"description":"Observed values that fell outside the pause_resume grant."},"lifetime":{"$ref":"#/components/schemas/Lifetime"}}};function validate325(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate325.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.state === undefined) && (missing0 = "state")) || ((data.cold_restart === undefined) && (missing0 = "cold_restart"))) || ((data.outside_grant === undefined) && (missing0 = "outside_grant"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))){validate325.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.state !== undefined){let data0 = data.state;const _errs1 = errors;if(typeof data0 !== "string"){validate325.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data0 === "running")){validate325.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema317.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.cold_restart !== undefined){const _errs3 = errors;if(typeof data.cold_restart !== "boolean"){validate325.errors = [{instancePath:instancePath+"/cold_restart",schemaPath:"#/properties/cold_restart/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.outside_grant !== undefined){let data2 = data.outside_grant;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs7 = errors;if(typeof data3 !== "string"){validate325.errors = [{instancePath:instancePath+"/outside_grant/" + i0,schemaPath:"#/properties/outside_grant/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data3 === "cold_restart")){validate325.errors = [{instancePath:instancePath+"/outside_grant/" + i0,schemaPath:"#/properties/outside_grant/items/enum",keyword:"enum",params:{allowedValues: schema317.properties.outside_grant.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;if(!valid1){break;}}}else {validate325.errors = [{instancePath:instancePath+"/outside_grant",schemaPath:"#/properties/outside_grant/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs9 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}}else {validate325.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate325.errors = vErrors;return errors === 0;}validate325.evaluated = {"props":{"state":true,"cold_restart":true,"outside_grant":true,"lifetime":true},"dynamicProps":false,"dynamicItems":false};exports.validate3 = validate327;function validate327(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate327.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((data.seconds === undefined) && (missing0 = "seconds")) || ((data.remaining_seconds === undefined) && (missing0 = "remaining_seconds"))) || ((data.ends_at === undefined) && (missing0 = "ends_at"))) || ((data.kept_until === undefined) && (missing0 = "kept_until"))) || ((data.at_end === undefined) && (missing0 = "at_end"))) || ((data.max_seconds === undefined) && (missing0 = "max_seconds"))) || ((data.extendable === undefined) && (missing0 = "extendable"))){validate327.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.seconds !== undefined){let data0 = data.seconds;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate327.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate327.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate327.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.remaining_seconds !== undefined){let data1 = data.remaining_seconds;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate327.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 0){validate327.errors = [{instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate327.errors = [{instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.ends_at !== undefined){let data2 = data.ends_at;const _errs13 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate327.errors = [{instancePath:instancePath+"/ends_at",schemaPath:"#/properties/ends_at/type",keyword:"type",params:{type: schema316.properties.ends_at.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(errors === _errs13){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate327.errors = [{instancePath:instancePath+"/ends_at",schemaPath:"#/properties/ends_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.kept_until !== undefined){let data3 = data.kept_until;const _errs15 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate327.errors = [{instancePath:instancePath+"/kept_until",schemaPath:"#/properties/kept_until/type",keyword:"type",params:{type: schema316.properties.kept_until.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(errors === _errs15){if(typeof data3 === "string"){if(!(formats0.validate(data3))){validate327.errors = [{instancePath:instancePath+"/kept_until",schemaPath:"#/properties/kept_until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.at_end !== undefined){let data4 = data.at_end;const _errs17 = errors;if(typeof data4 !== "string"){validate327.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "destroy") || (data4 === "pause"))){validate327.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/enum",keyword:"enum",params:{allowedValues: schema316.properties.at_end.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.max_seconds !== undefined){let data5 = data.max_seconds;const _errs19 = errors;const _errs20 = errors;let valid5 = false;const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;let valid7 = false;const _errs24 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err6 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid3 = _errs24 === errors;valid7 = valid7 || _valid3;const _errs26 = errors;if(typeof data5 !== "bigint"){const err7 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid3 = _errs26 === errors;valid7 = valid7 || _valid3;if(!valid7){const err8 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid6 = _errs22 === errors;if(valid6){if(typeof data5 === "bigint"){if(data5 < 1){const err9 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(errors === _errs21){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){const err10 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var _valid2 = _errs21 === errors;valid5 = valid5 || _valid2;const _errs27 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!((data5 === "unlimited") || (data5 === "unknown"))){const err12 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/1/enum",keyword:"enum",params:{allowedValues: schema316.properties.max_seconds.anyOf[1].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid2 = _errs27 === errors;valid5 = valid5 || _valid2;const _errs29 = errors;if(errors === _errs29){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if((data5.at_least === undefined) && (missing1 = "at_least")){const err13 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/2/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {if(data5.at_least !== undefined){let data6 = data5.at_least;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid10 = false;const _errs34 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err14 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid4 = _errs34 === errors;valid10 = valid10 || _valid4;const _errs36 = errors;if(typeof data6 !== "bigint"){const err15 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid4 = _errs36 === errors;valid10 = valid10 || _valid4;if(!valid10){const err16 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid9 = _errs32 === errors;if(valid9){if(typeof data6 === "bigint"){if(data6 < 1){const err17 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}if(errors === _errs31){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){const err18 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}}}else {const err19 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid2 = _errs29 === errors;valid5 = valid5 || _valid2;if(_valid2){var props0 = {};props0.at_least = true;}if(!valid5){const err20 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate327.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.extendable !== undefined){const _errs37 = errors;if(typeof data.extendable !== "boolean"){validate327.errors = [{instancePath:instancePath+"/extendable",schemaPath:"#/properties/extendable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs37 === errors;}else {var valid0 = true;}}}}}}}}}else {validate327.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate327.errors = vErrors;return errors === 0;}validate327.evaluated = {"props":{"seconds":true,"remaining_seconds":true,"ends_at":true,"kept_until":true,"at_end":true,"max_seconds":true,"extendable":true},"dynamicProps":false,"dynamicItems":false};exports.validate4 = validate328;const schema319 = {"type":"object","required":["policy"],"properties":{"policy":{"type":"string","enum":["deny_all","allowlist","denylist","open"],"description":"The policy now enforced."}}};function validate328(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate328.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.policy === undefined) && (missing0 = "policy")){validate328.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.policy !== undefined){let data0 = data.policy;if(typeof data0 !== "string"){validate328.errors = [{instancePath:instancePath+"/policy",schemaPath:"#/properties/policy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data0 === "deny_all") || (data0 === "allowlist")) || (data0 === "denylist")) || (data0 === "open"))){validate328.errors = [{instancePath:instancePath+"/policy",schemaPath:"#/properties/policy/enum",keyword:"enum",params:{allowedValues: schema319.properties.policy.enum},message:"must be equal to one of the allowed values"}];return false;}}}}else {validate328.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate328.errors = vErrors;return errors === 0;}validate328.evaluated = {"props":{"policy":true},"dynamicProps":false,"dynamicItems":false};exports.validate5 = validate329;const schema320 = {"type":"object","description":"A sandbox created from a settled body, returned by create, restore, get and list.\nRequired fields are present; fields with no value are null, never absent. Optional\nfields may be absent when their source is not known. Listings do no\nprovider I/O: they show the latest durably recorded state, and native_state,\nroute.selection and recorder are null. Detail responses observe the provider live and\nrecord the normalized state unless a concurrent lifecycle change supersedes the read.\n","required":["id","state","state_reason","failure","native_state","observed_at","state_recorded_at","created_at","ready_at","ended_at","labels","lifetime","route","contract","request","hidden_secrets","tcp_ports","recorder","limits"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"state":{"type":"string","x-boxrouter-open-enum":true,"description":"Clients must tolerate values they do not know. A sandbox the provider stopped, or one\nstopped for being idle that can be started again, reads paused; resume brings either back.\n"},"state_reason":{"type":["string","null"],"x-boxrouter-open-enum":true,"description":"Why it is in this state. external is a change made at the provider, behind BoxRouter's back."},"failure":{"anyOf":[{"$ref":"#/components/schemas/SandboxFailure"},{"type":"null"}],"description":"The provider failure recorded with state=error, or null when no recorded failure\nexplains the current state. Present on create, detail and list responses; list\nreads return the durable value without calling the provider.\n"},"native_state":{"type":["string","null"]},"observed_at":{"type":"string","format":"date-time","description":"Time the state source for this response was read: the owned-record lookup time\nfor a list response, or the live provider-observation time for a detail response.\n"},"state_recorded_at":{"type":["string","null"],"format":"date-time","description":"Timestamp of the durable state source used for this response. This can be an\nexisting lifecycle or lifetime record when the returned public state is derived\nfrom that source, and may predate observed_at. Null when no source timestamp is\navailable or a concurrent lifecycle change supersedes the detail read.\n"},"created_at":{"type":["string","null"],"format":"date-time","description":"Time Cloud sent the first create request when that edge is available; otherwise the sandbox record's created time."},"expires_at":{"type":["string","null"],"format":"date-time","description":"Enforced deadline from the recorded lifetime budget, including extensions. This\nis the same deadline exposed as lifetime.ends_at; null when no deadline is known.\n"},"ready_at":{"type":["string","null"],"format":"date-time","description":"Time Cloud received the first create response; when that edge is unavailable, the sandbox\nrecord's ready time. Null while creating. List and detail responses use the same value.\n"},"ended_at":{"type":["string","null"],"format":"date-time","description":"Time Cloud received the last destroy response; when that edge is unavailable, Cloud's\nrecord of confirmation or first observation that the sandbox was gone. Null while the\nsandbox has not ended. List and detail responses use the same value.\n"},"created_at_source":{"anyOf":[{"$ref":"#/components/schemas/UsageSource"},{"type":"null"}],"description":"Where `created_at` came from. Null when `created_at` is null. Always BoxRouter's own record."},"created_at_how":{"type":["string","null"],"minLength":1,"description":"One sentence saying how `created_at` was determined. Null when `created_at` is null."},"created_at_step":{"minimum":1,"description":"Null because `created_at` comes from a recorded lifecycle edge or Cloud's record.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"ready_at_source":{"anyOf":[{"$ref":"#/components/schemas/UsageSource"},{"type":"null"}],"description":"Where `ready_at` came from. Null when `ready_at` is null. Lifecycle edges and Cloud's own record are `recorded`."},"ready_at_how":{"type":["string","null"],"minLength":1,"description":"One sentence saying how `ready_at` was determined. Null when `ready_at` is null."},"ready_at_step":{"minimum":1,"description":"Null because `ready_at` comes from a recorded lifecycle edge or Cloud's record.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"ended_at_source":{"anyOf":[{"$ref":"#/components/schemas/UsageSource"},{"type":"null"}],"description":"Where `ended_at` came from. Null when `ended_at` is null. Lifecycle edges and Cloud's own record are `recorded`."},"ended_at_how":{"type":["string","null"],"minLength":1,"description":"One sentence saying how `ended_at` was determined. Null when `ended_at` is null."},"ended_at_step":{"minimum":1,"description":"Null because `ended_at` comes from a recorded lifecycle edge or Cloud's record.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"cost_source":{"anyOf":[{"$ref":"#/components/schemas/UsageSource"},{"type":"null"}],"description":"Where `cost` came from. Null when `cost` is null. `provider` for a reported cost, `calculated` for a worked-out one, `unknown` when no cost could be worked out. The `cost_step` is 1 for a provider figure, then 2 provider times, 3 a checked billing boundary, 4 a range, 5 unknown."},"cost_how":{"type":["string","null"],"minLength":1,"description":"One sentence saying how `cost` was determined. Null when `cost` is null."},"cost_step":{"minimum":1,"description":"The position of the source in BoxRouter's source order for this value, 1 being the best.\nNull when the value is BoxRouter's own record rather than a pick between sources.\n","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"origin":{"anyOf":[{"$ref":"#/components/schemas/SandboxOrigin"},{"type":"null"}],"description":"Durable creation provenance. Omitted when the source is not known."},"labels":{"type":"object","additionalProperties":{"type":"string"}},"name":{"type":["string","null"],"description":"Sandbox name from labels.name, when set."},"resources":{"type":"object","description":"Resolved CPU, memory and disk resources; null values mean unknown.","properties":{"cpu":{"exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"disk_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}},"image":{"anyOf":[{"$ref":"#/components/schemas/SandboxImage"},{"type":"null"}],"description":"The image the sandbox runs and where that is known from. Null when nothing records\nit. Absent from responses of a Cloud that does not report it yet.\n"},"image_setup":{"$ref":"#/components/schemas/SandboxImageSetup","description":"Present only when this start waited for image setup on its chosen provider."},"usage":{"anyOf":[{"title":"Usage record","description":"What one sandbox used, as a collector saw it. One record is one coherent set of inputs for the calculator; where two sources disagree, a collector builds one record per source. Every fact carries where it came from, when it was observed and how. A fact nobody could establish has source `unknown` and a null value; it is never left out or filled with a default. `provider`, the record's key, is the only value without provenance.","type":"object","required":["provider","started","region","size","intervals","creations"],"properties":{"provider":{"description":"The provider that ran the sandbox, as named in its price versions.","type":"string","pattern":"^[a-z][a-z0-9-]*$"},"class":{"description":"The sandbox's class or runtime, which picks the rate set in the price version. If absent, it may be priced only when the price version has exactly one class; otherwise the cost is unknown.","type":"object","required":["name","source","observed_at","how"],"properties":{"name":{"type":["string","null"],"minLength":1},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"name":{"type":"null"}}},"else":{"properties":{"name":{"type":"string"}}}},"started":{"description":"When the sandbox started. It picks the price version in effect.","type":"object","required":["at","source","observed_at","how"],"properties":{"at":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"at":{"type":"null"}}},"else":{"properties":{"at":{"$ref":"#/components/schemas/PricingTimestamp"}}}},"region":{"description":"The region the sandbox ran in, as the provider names it.","type":"object","required":["name","source","observed_at","how"],"properties":{"name":{"type":["string","null"],"minLength":1},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"name":{"type":"null"}}},"else":{"properties":{"name":{"type":"string"}}}},"size":{"description":"What the sandbox got. Each field is optional because a source may give only some of them; at least one is present unless the source is `unknown`. When GPUs are present, `gpu` and `gpu_model` are both recorded; without a GPU, both are absent.","type":"object","required":["source","observed_at","how"],"properties":{"cpu":{"description":"vCPUs.","exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"disk_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"gpu":{"description":"Number of allocated GPUs.","minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"gpu_model":{"description":"The allocated model's gpu-registry identifier.","type":"string","pattern":"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"not":{"anyOf":[{"required":["cpu"]},{"required":["memory_mib"]},{"required":["disk_mib"]},{"required":["gpu"]},{"required":["gpu_model"]}]}},"else":{"anyOf":[{"required":["cpu"]},{"required":["memory_mib"]},{"required":["disk_mib"]},{"required":["gpu"]}]},"allOf":[{"if":{"required":["gpu"]},"then":{"required":["gpu_model"]}},{"if":{"required":["gpu_model"]},"then":{"required":["gpu"]}}]},"intervals":{"description":"Time in each billed state, one entry per period, in time order. A price version's minimum and increment rules apply to each entry.","type":"array","minItems":1,"items":{"type":"object","required":["state","seconds","source","observed_at","how"],"properties":{"size":{"$ref":"#/components/schemas/UsageSize"},"snapshot_storage":{"$ref":"#/components/schemas/UsageSnapshotStorage"},"state":{"enum":["running","paused","stopped"]},"seconds":{"description":"Exact seconds, or a range when a change was noticed late and the period is only bounded.","anyOf":[{"minimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},{"$ref":"#/components/schemas/UsageRange"},{"type":"null"}]},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"seconds":{"type":"null"}}},"else":{"properties":{"seconds":{"allOf":[{"anyOf":[{"type":["number","object"]},{"x-boxrouter-bigint":true}]}]}}}}},"creations":{"description":"How many times the sandbox was created: 1, plus any restores that the provider charges as a creation.","type":"object","required":["count","source","observed_at","how"],"properties":{"count":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"count":{"type":"null"}}},"else":{"properties":{"count":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}}},"active_cpu":{"description":"Seconds of CPU the sandbox actually used, for providers that bill active CPU. Absent where the provider does not bill it.","type":"object","required":["seconds","source","observed_at","how"],"properties":{"seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"seconds":{"type":"null"}}},"else":{"properties":{"seconds":{"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}]}}}},"egress":{"description":"Bytes the sandbox sent out. Absent where the provider does not bill it.","type":"object","required":["bytes","source","observed_at","how"],"properties":{"bytes":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"bytes":{"type":"null"}}},"else":{"properties":{"bytes":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}}},"snapshot_storage":{"description":"The stored snapshot size, or its known maximum when the provider does not report the actual size.","type":"object","required":["source","observed_at","how"],"properties":{"gb":{"minimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"max_gb":{"minimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"},"bytes":{"description":"Provider snapshot sizeBytes, kept as an exact integer.","minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"gb":{"type":"null"}}},"else":{"anyOf":[{"required":["gb"],"properties":{"gb":{"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}]}}},{"required":["bytes"]}]}}},"additionalProperties":false},{"type":"object","required":["provider","started","region","size","intervals","creations"],"properties":{"provider":{"$ref":"#/components/schemas/provider"},"class":{"$ref":"#/components/schemas/class"},"started":{"$ref":"#/components/schemas/started"},"region":{"$ref":"#/components/schemas/region"},"size":{"type":"object","required":["source","observed_at","how"],"properties":{"cpu":{"$ref":"#/components/schemas/cpu"},"memory_mib":{"$ref":"#/components/schemas/memory_mib"},"disk_mib":{"$ref":"#/components/schemas/disk_mib"},"gpu":{"const":0},"gpu_model":{"$ref":"#/components/schemas/gpu_model"},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"$ref":"#/components/schemas/then"},"else":{"$ref":"#/components/schemas/else"},"allOf":[{"if":{"required":["gpu"]},"then":{"required":["gpu_model"]}},{"if":{"required":["gpu_model"]},"then":{"required":["gpu"]}}]},"intervals":{"$ref":"#/components/schemas/intervals"},"creations":{"$ref":"#/components/schemas/creations"},"active_cpu":{"$ref":"#/components/schemas/active_cpu"},"egress":{"$ref":"#/components/schemas/egress"}},"additionalProperties":false},{"type":"null"}],"description":"What the sandbox used: its size, its running time per state, how often it was created,\neach fact with the source it came from. Null when nothing has been recorded or the\nresponse does not carry it. Absent from responses of a Cloud that does not report it yet.\n"},"cost":{"anyOf":[{"title":"Cost","description":"A provider-sourced sandbox cost. Unknown has a null total; known totals are exact decimal strings. Hourly rate-card quotes may be ranges.","type":"object","required":["label","total","lines","held_back_by","exclusions","price_version","as_of"],"properties":{"label":{"description":"reported: a provider amount verified at list price; calculated: provider usage priced at stored list rates; unknown: required provider evidence or a rate is missing.","enum":["reported","calculated","unknown"]},"total":{"description":"An exact USD amount, low equal to high, or null for unknown.","anyOf":[{"$ref":"#/components/schemas/CostTotalRange"},{"type":"null"}]},"lines":{"description":"The working: one line per charged resource. Empty when the provider's own figure is all we have, or when nothing could be worked out.","type":"array","items":{"type":"object","required":["what","quantity","unit","rate","amount","quantity_source"],"properties":{"what":{"enum":["cpu","memory","disk","gpu","machine","creation","egress","snapshot_storage"]},"quantity":{"$ref":"#/components/schemas/PricingDecimal"},"unit":{"description":"The price version's unit for this rate, for example vcpu-second.","type":"string","minLength":1},"rate":{"description":"US dollars per unit, as the price version states it.","$ref":"#/components/schemas/PricingDecimal"},"amount":{"$ref":"#/components/schemas/PricingDecimal"},"quantity_source":{"description":"The source of the usage facts the quantity came from; the least certain one when it came from several.","$ref":"#/components/schemas/CostSource"},"text":{"description":"The line as a sentence a person reads, with its numbers: the quantity, the rate and the amount.","type":"string","minLength":1},"sources":{"description":"Where each number of the line came from, as words: the quantity, the rate and the amount.","type":"object","required":["amount"],"properties":{"quantity":{"type":"string","minLength":1},"rate":{"type":"string","minLength":1},"amount":{"type":"string","minLength":1}}}}}},"held_back_by":{"description":"Reasons in plain words. Shared pricing findings are projected to their text for the HTTP response.","type":"array","items":{"type":"string","minLength":1}},"exclusions":{"description":"What the figure leaves out, such as plan fees, credits and discounts.","type":"array","items":{"type":"string","minLength":1}},"price_version":{"description":"The id of the price version used, which carries the quotes. Null when none was in effect.","type":["string","null"],"pattern":"^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"},"as_of":{"description":"When Cloud calculated or recorded the cost. A sandbox that has not ended has no cost yet.","$ref":"#/components/schemas/PricingTimestamp"},"per_hour":{"description":"US dollars per hour for an ended sandbox; no hourly cost is returned while it is running.","$ref":"#/components/schemas/CostMoneyRange"},"reported_figure":{"description":"Where a `reported` total came from. Present exactly when the label is `reported`.","type":"object","required":["source","observed_at","how"],"properties":{"source":{"$ref":"#/components/schemas/CostSource","const":"provider"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"description":"The API call that returned the figure.","type":"string","minLength":1}}},"summary":{"description":"The total as one sentence, or why there is none. The sentences of `lines[].text` add up to it.","type":"string","minLength":1}},"allOf":[{"if":{"properties":{"label":{"const":"unknown"}},"required":["label"]},"then":{"properties":{"total":{"type":"null"}}},"else":{"properties":{"total":{"type":"object"}}}},{"if":{"properties":{"label":{"const":"reported"}},"required":["label"]},"then":{"required":["reported_figure"]},"else":{"not":{"required":["reported_figure"]}}}],"additionalProperties":false},{"type":"object","required":["label","total"],"description":"The label and total of a sandbox's cost, as list rows carry them. Both are the full cost's:\nsee the `cost` schema for what they mean. Actions billing adds the cost's `summary`, the one\nsentence that says what the total is or why there is none; list rows do not carry it.\n","properties":{"label":{"$ref":"#/components/schemas/CostLabel"},"total":{"$ref":"#/components/schemas/CostTotal"},"summary":{"$ref":"#/components/schemas/summary"}},"if":{"properties":{"label":{"const":"unknown"}},"required":["label"]},"then":{"properties":{"total":{"type":"null"}}},"else":{"properties":{"total":{"type":"object"}}},"additionalProperties":false},{"type":"null"}],"description":"What the sandbox cost, with one word saying how far to trust it. Create and detail\nresponses carry the full cost with its working; list rows carry only its label and\ntotal, from the same calculation. One object serves both, so the schema accepts either\nshape anywhere: a client that needs the working reads the detail. Null when no cost has\nbeen worked out. Absent from responses of a Cloud that does not report it yet.\n"},"charge":{"anyOf":[{"$ref":"#/components/schemas/SandboxCharge"},{"type":"null"}],"description":"What BoxRouter charged to the workspace's credits for this sandbox: the reservation\nwhile it runs, then the amount charged once the provider's records are in. Present\non credit-funded sandboxes in detail and list responses. Null for a sandbox paid with\nthe workspace's own provider account (BYOK), for a credit-funded one whose\nreservation was released without a charge, and for one whose ledger record cannot be\nverified: BoxRouter reports no charge rather than a guess. `cost` still reports the\nprovider's cost. Absent from create and other responses, and from a Cloud that does\nnot report it yet. It is the ledger's amount, never derived from `cost` or from\nBoxRouter's clock.\n"},"funded_until":{"type":["string","null"],"format":"date-time","description":"The time up to which the workspace's credits are reserved for this sandbox. A sandbox\ncreated without `lifetime_seconds` renews its reservation hourly while the balance\ncovers it, so this moves later at each renewal; the sandbox ends at this time if the\nbalance could not cover another hour. For a sandbox created with `lifetime_seconds`\nit is the end of that lifetime. Null for a sandbox paid with the workspace's own\nprovider account (BYOK), which has no reservation. A reservation is a hold on the\nbalance, never a cost: `charge` reports the credits reserved and then charged. Present\non create and on detail and list reads; absent from a Cloud that does not report it yet.\n"},"connectable":{"type":"boolean","description":"Whether interactive access to this sandbox is offered: a terminal, commands, files and\nprocesses. False for a sandbox an Actions job runs in, which holds that job's token and\nsecrets; Cloud refuses these operations on it, before and after the job ends, and the\ndashboard shows no Connect action. True for every other sandbox. One rule, decided by\nCloud; clients do not infer it from `origin`, which an Actions runner that has not yet\nserved a job does not have. Present on detail and list reads; absent from a Cloud that\ndoes not report it yet.\n"},"lifetime":{"$ref":"#/components/schemas/Lifetime"},"route":{"$ref":"#/components/schemas/SandboxRoute"},"contract":{"anyOf":[{"$ref":"#/components/schemas/Contract"},{"type":"null"}],"description":"Null for a record with no recorded contract, such as one a provider-native route created."},"request":{"$ref":"#/components/schemas/SandboxRequestSnapshot"},"hidden_secrets":{"type":["object","null"],"propertyNames":{"$ref":"#/components/schemas/SecretName"},"additionalProperties":{"$ref":"#/components/schemas/HiddenSecretResult"},"description":"Public metadata for the request-only secret values, keyed by their submitted names.\nEach result contains only a placeholder and its allowed hosts. Null when the create\nsubmitted no secret values.\n"},"tcp_ports":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TcpPortEndpoint"},"description":"Public host and port for each requested TCP listener, in request order."},"recorder":{"type":["object","null"],"description":"A tally of the gate calls made on this sandbox, allowed and refused, with the\nrequirements line those calls relied on. It only tallies: it switches no gate on.\n"},"limits":{"$ref":"#/components/schemas/SandboxLimits"},"volume":{"anyOf":[{"$ref":"#/components/schemas/VolumeAttachment"},{"type":"null"}],"description":"Present when the sandbox is attached to a BoxRouter Volume."},"operation_id":{"type":["string","null"],"minLength":1,"description":"Present on a destroy response: the workspace-owned destroy operation while lifecycle\nwork remains (`state` is `destroying`), null once the destroy is confirmed. Absent\nfrom every other response.\n"},"account":{"type":"object","required":["healthy","detail"],"description":"Present only while the account's key no longer works (section 7); that sandbox's\ncalls then answer account_unhealthy and state is unknown.\n","properties":{"healthy":{"type":"boolean"},"detail":{"type":["string","null"]}}}}};const schema322 = {"description":"Where a fact came from. provider: the provider's API told us, about this sandbox. published: the provider's docs or pricing page, not about this sandbox in particular. measured: BoxRouter checked it itself with a clock or in its own sandboxes. recorded: BoxRouter's own record of something it did or saw. calculated: worked out from other facts, each with its own source. unknown: nobody told us and we could not check.","type":"string","enum":["provider","published","measured","recorded","calculated","unknown"]};const schema331 = {"type":"object","required":["provider","duration_ms"],"properties":{"provider":{"type":"string","minLength":1},"duration_ms":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};const schema332 = {"properties":{"source":{"const":"unknown"}},"required":["source"]};const schema129 = {"description":"A UTC time, ending in Z.","type":"string","format":"date-time","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"};const schema335 = {"description":"How the fact was obtained: the API call, the page URL, the record, or why it is unknown.","type":"string","minLength":1};const schema360 = {"description":"A bounded quantity.","type":"object","required":["low","high"],"properties":{"low":{"minimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"high":{"minimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};const schema380 = {"description":"The provider that ran the sandbox, as named in its price versions.","type":"string","pattern":"^[a-z][a-z0-9-]*$"};const schema398 = {"not":{"anyOf":[{"required":["cpu"]},{"required":["memory_mib"]},{"required":["disk_mib"]},{"required":["gpu"]},{"required":["gpu_model"]}]}};const schema399 = {"anyOf":[{"required":["cpu"]},{"required":["memory_mib"]},{"required":["disk_mib"]},{"required":["gpu"]}]};const schema400 = {"description":"vCPUs.","exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}};const schema401 = {"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}};const schema402 = {"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}};const schema403 = {"description":"The allocated model's gpu-registry identifier.","type":"string","pattern":"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"};const schema122 = {"description":"A non-negative decimal number as a string, in plain notation without an exponent.","type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"};const schema128 = {"description":"Where a fact came from. The same six values as the usage record's source; a test keeps the two lists equal.","type":"string","enum":["provider","published","measured","recorded","calculated","unknown"]};const schema119 = {"description":"reported: a provider amount verified at list price; calculated: provider usage priced at stored list rates; unknown: required provider evidence or a rate is missing.","enum":["reported","calculated","unknown"]};const schema124 = {"description":"The total as one sentence, or why there is none. The sentences of `lines[].text` add up to it.","type":"string","minLength":1};const schema448 = {"type":"object","additionalProperties":true,"description":"The recorded creation request after server-side expansion and defaulting, without\nrequest-only secret values, environment values or labels. A sandbox can outlive the\ncreate-request schema that was current when it was made, so this historical snapshot\naccepts fields from earlier contract versions. Clients should interpret only fields\nthey recognize and preserve unknown fields when displaying or storing the snapshot.\n"};const schema40 = {"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Z][A-Z0-9_]{0,127}$"};const schema452 = {"type":"object","required":["host","port","tls"],"properties":{"host":{"type":"string","minLength":1},"port":{"minimum":1,"maximum":65535,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":65535}},"tls":{"type":"string","enum":["none","terminated"]}}};const func1 = require("ajv/dist/runtime/ucs2length").default;const func237 = Object.prototype.hasOwnProperty;const pattern10 = new RegExp("^[^\\u0000]*$", "u");const pattern42 = new RegExp("^[a-z][a-z0-9-]*$", "u");const pattern78 = new RegExp("^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$", "u");const pattern219 = new RegExp("^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$", "u");const pattern50 = new RegExp("^(0|[1-9][0-9]*)(\\.[0-9]+)?$", "u");const pattern77 = new RegExp("^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$", "u");const pattern5 = new RegExp("^[A-Z][A-Z0-9_]{0,127}$", "u");const schema321 = {"type":"object","required":["summary","provider_state","native_code","native_message","observed_at"],"description":"The most recent provider failure recorded with the sandbox's state. The summary is\nBoxRouter-authored plain language. `provider_state` is the raw provider status\nand is not covered by the sanitization guarantee; `native_code` and\n`native_message` contain only allowlisted, sanitized values. Repeated observations of the same failure keep the first\nobserved_at; a changed failure gets a new timestamp. This object is stored with\nthe state, cleared when the sandbox leaves error, and unchanged by unreadable\nprovider observations.\n","properties":{"summary":{"type":"string","minLength":1,"maxLength":200,"description":"BoxRouter-authored plain language chosen from a fixed set keyed by provider and\nprovider_state. An unrecognised status uses \"The provider reported this sandbox\nas failed.\"; it never guesses a cause.\n"},"provider_state":{"type":["string","null"],"description":"The provider's raw failure status, the same value native_state carries, or null if none was supplied."},"native_code":{"type":["string","null"],"pattern":"^[A-Za-z0-9_.:-]{1,64}$","description":"The provider's short structured failure code, or null if absent or unsafe."},"native_message":{"type":["string","null"],"maxLength":512,"description":"The provider's diagnostic text after redaction, or null if absent or unsafe."},"observed_at":{"type":"string","format":"date-time","description":"When BoxRouter first observed this specific failure."}}};const pattern209 = new RegExp("^[A-Za-z0-9_.:-]{1,64}$", "u");function validate330(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate330.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.summary === undefined) && (missing0 = "summary")) || ((data.provider_state === undefined) && (missing0 = "provider_state"))) || ((data.native_code === undefined) && (missing0 = "native_code"))) || ((data.native_message === undefined) && (missing0 = "native_message"))) || ((data.observed_at === undefined) && (missing0 = "observed_at"))){validate330.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.summary !== undefined){let data0 = data.summary;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 200){validate330.errors = [{instancePath:instancePath+"/summary",schemaPath:"#/properties/summary/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func1(data0) < 1){validate330.errors = [{instancePath:instancePath+"/summary",schemaPath:"#/properties/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate330.errors = [{instancePath:instancePath+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.provider_state !== undefined){let data1 = data.provider_state;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate330.errors = [{instancePath:instancePath+"/provider_state",schemaPath:"#/properties/provider_state/type",keyword:"type",params:{type: schema321.properties.provider_state.type},message:"must be string,null"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.native_code !== undefined){let data2 = data.native_code;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate330.errors = [{instancePath:instancePath+"/native_code",schemaPath:"#/properties/native_code/type",keyword:"type",params:{type: schema321.properties.native_code.type},message:"must be string,null"}];return false;}if(errors === _errs5){if(typeof data2 === "string"){if(!pattern209.test(data2)){validate330.errors = [{instancePath:instancePath+"/native_code",schemaPath:"#/properties/native_code/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_.:-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_.:-]{1,64}$"+"\""}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.native_message !== undefined){let data3 = data.native_message;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate330.errors = [{instancePath:instancePath+"/native_message",schemaPath:"#/properties/native_message/type",keyword:"type",params:{type: schema321.properties.native_message.type},message:"must be string,null"}];return false;}if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 512){validate330.errors = [{instancePath:instancePath+"/native_message",schemaPath:"#/properties/native_message/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.observed_at !== undefined){let data4 = data.observed_at;const _errs9 = errors;if(errors === _errs9){if(errors === _errs9){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate330.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate330.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}}}else {validate330.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate330.errors = vErrors;return errors === 0;}validate330.evaluated = {"props":{"summary":true,"provider_state":true,"native_code":true,"native_message":true,"observed_at":true},"dynamicProps":false,"dynamicItems":false};const schema326 = {"description":"What created the sandbox, discriminated by source. github_actions is a BoxRouter\nActions job; agents is an agent launch (POST /launches). Sandboxes created directly\nthrough the API have no origin.\n","anyOf":[{"$ref":"#/components/schemas/ActionsSandboxOrigin"},{"$ref":"#/components/schemas/AgentsSandboxOrigin"}],"discriminator":{"propertyName":"source","mapping":{"github_actions":"#/components/schemas/ActionsSandboxOrigin","agents":"#/components/schemas/AgentsSandboxOrigin"}}};const schema327 = {"type":"object","description":"A sandbox a BoxRouter Actions job ran in. source, run_id and job_id come from the\nplacement and are always present; every other fact is omitted when Cloud does not\nknow it.\n","required":["source","run_id","job_id"],"properties":{"source":{"type":"string","enum":["github_actions"]},"repository":{"type":"string","minLength":1,"description":"owner/name, from the job's GitHub webhook; for jobs admitted before the webhook was\nrecorded, from the workspace's GitHub repository binding for the same repository ID.\n"},"workflow":{"type":["string","null"],"minLength":1,"description":"Workflow name from the job's GitHub webhook or run."},"run_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$","description":"BoxRouter Actions run ID used by the Actions dashboard deep link."},"run_number":{"minimum":1,"description":"GitHub run number from the run.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"job_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$","description":"BoxRouter Actions job ID."},"job_name":{"type":"string","minLength":1,"description":"Job name from the job's GitHub webhook."},"run_url":{"type":"string","format":"uri","description":"GitHub run page, built from repository and the GitHub run ID."},"job_url":{"type":"string","format":"uri","description":"GitHub job page: the job's html_url from its webhook, else built from repository and\nthe GitHub run and job IDs.\n"}}};function validate333(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate333.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.source === undefined) && (missing0 = "source")) || ((data.run_id === undefined) && (missing0 = "run_id"))) || ((data.job_id === undefined) && (missing0 = "job_id"))){validate333.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.source !== undefined){let data0 = data.source;const _errs1 = errors;if(typeof data0 !== "string"){validate333.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data0 === "github_actions")){validate333.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/enum",keyword:"enum",params:{allowedValues: schema327.properties.source.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){let data1 = data.repository;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) < 1){validate333.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate333.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow !== undefined){let data2 = data.workflow;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate333.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/type",keyword:"type",params:{type: schema327.properties.workflow.type},message:"must be string,null"}];return false;}if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) < 1){validate333.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.run_id !== undefined){let data3 = data.run_id;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 128){validate333.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate333.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate333.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate333.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.run_number !== undefined){let data4 = data.run_number;const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid2 = false;const _errs12 = errors;if((!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) && (data4 !== null)){const err0 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema327.properties.run_number.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs12 === errors;valid2 = valid2 || _valid0;const _errs14 = errors;if(typeof data4 !== "bigint"){const err1 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs14 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate333.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid1 = _errs10 === errors;if(valid1){if(typeof data4 === "bigint"){if(data4 < 1){validate333.errors = [{instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs9){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 1 || isNaN(data4)){validate333.errors = [{instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.job_id !== undefined){let data5 = data.job_id;const _errs15 = errors;if(errors === _errs15){if(typeof data5 === "string"){if(func1(data5) > 128){validate333.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate333.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate333.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate333.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.job_name !== undefined){let data6 = data.job_name;const _errs17 = errors;if(errors === _errs17){if(typeof data6 === "string"){if(func1(data6) < 1){validate333.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate333.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.run_url !== undefined){const _errs19 = errors;if(errors === _errs19){if(errors === _errs19){if(!(typeof data.run_url === "string")){validate333.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.job_url !== undefined){const _errs21 = errors;if(errors === _errs21){if(errors === _errs21){if(!(typeof data.job_url === "string")){validate333.errors = [{instancePath:instancePath+"/job_url",schemaPath:"#/properties/job_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate333.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate333.errors = vErrors;return errors === 0;}validate333.evaluated = {"props":{"source":true,"repository":true,"workflow":true,"run_id":true,"run_number":true,"job_id":true,"job_name":true,"run_url":true,"job_url":true},"dynamicProps":false,"dynamicItems":false};const schema328 = {"type":"object","description":"A sandbox created by an agent launch.","required":["source","launch_id","agent","agent_name"],"properties":{"source":{"type":"string","enum":["agents"]},"launch_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$","description":"Launch operation ID, as in GET /launches/{operation_id}."},"agent":{"type":"string","minLength":1,"description":"The launched manifest's name; the agent catalog ID for catalog agents, such as claude-code."},"agent_name":{"type":"string","minLength":1,"description":"Display name from the agent catalog, such as Claude Code; the manifest name for agents outside the catalog."},"repository":{"type":["string","null"],"minLength":1,"description":"Repository as owner/name when the launch checked out code; null or absent when it had none."},"sha":{"type":["string","null"],"pattern":"^[0-9a-f]{40}$","description":"Commit checked out for the launch; null or absent when it had no code."}}};const pattern25 = new RegExp("^[0-9a-f]{40}$", "u");function validate335(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate335.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.source === undefined) && (missing0 = "source")) || ((data.launch_id === undefined) && (missing0 = "launch_id"))) || ((data.agent === undefined) && (missing0 = "agent"))) || ((data.agent_name === undefined) && (missing0 = "agent_name"))){validate335.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.source !== undefined){let data0 = data.source;const _errs1 = errors;if(typeof data0 !== "string"){validate335.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data0 === "agents")){validate335.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/enum",keyword:"enum",params:{allowedValues: schema328.properties.source.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.launch_id !== undefined){let data1 = data.launch_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate335.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate335.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate335.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate335.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.agent !== undefined){let data2 = data.agent;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) < 1){validate335.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate335.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.agent_name !== undefined){let data3 = data.agent_name;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) < 1){validate335.errors = [{instancePath:instancePath+"/agent_name",schemaPath:"#/properties/agent_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate335.errors = [{instancePath:instancePath+"/agent_name",schemaPath:"#/properties/agent_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){let data4 = data.repository;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate335.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/type",keyword:"type",params:{type: schema328.properties.repository.type},message:"must be string,null"}];return false;}if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) < 1){validate335.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.sha !== undefined){let data5 = data.sha;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate335.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/type",keyword:"type",params:{type: schema328.properties.sha.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data5 === "string"){if(!pattern25.test(data5)){validate335.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{40}$"},message:"must match pattern \""+"^[0-9a-f]{40}$"+"\""}];return false;}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}}}}}}}}else {validate335.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate335.errors = vErrors;return errors === 0;}validate335.evaluated = {"props":{"source":true,"launch_id":true,"agent":true,"agent_name":true,"repository":true,"sha":true},"dynamicProps":false,"dynamicItems":false};function validate332(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate332.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(!(validate333(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate333.errors : vErrors.concat(validate333.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.source = true;props0.repository = true;props0.workflow = true;props0.run_id = true;props0.run_number = true;props0.job_id = true;props0.job_name = true;props0.run_url = true;props0.job_url = true;}const _errs2 = errors;if(!(validate335(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate335.errors : vErrors.concat(validate335.errors);errors = vErrors.length;}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.source = true;props0.launch_id = true;props0.agent = true;props0.agent_name = true;props0.repository = true;props0.sha = true;}}if(!valid0){const err0 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;validate332.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate332.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate332.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema329 = {"type":"object","required":["value","source"],"description":"The image a sandbox runs, with where that is known from: `recorded` for what the creation\nrequest asked for, `provider` where the provider reported which image or template it ran.\n","properties":{"value":{"type":"string","minLength":1,"description":"`standard` when the request omitted `image` (BoxRouter's standard image), `provider_default`\nwhen it opted out, `dockerfile` for an image built from a Dockerfile, or else the OCI\nreference or provider artifact the request named.\n"},"source":{"$ref":"#/components/schemas/UsageSource"}}};function validate338(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate338.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.value === undefined) && (missing0 = "value")) || ((data.source === undefined) && (missing0 = "source"))){validate338.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.value !== undefined){let data0 = data.value;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate338.errors = [{instancePath:instancePath+"/value",schemaPath:"#/properties/value/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate338.errors = [{instancePath:instancePath+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.source !== undefined){let data1 = data.source;const _errs3 = errors;if(typeof data1 !== "string"){validate338.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data1 === "provider") || (data1 === "published")) || (data1 === "measured")) || (data1 === "recorded")) || (data1 === "calculated")) || (data1 === "unknown"))){validate338.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate338.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate338.errors = vErrors;return errors === 0;}validate338.evaluated = {"props":{"value":true,"source":true},"dynamicProps":false,"dynamicItems":false};const schema350 = {"description":"What the sandbox got. Each field is optional because a source may give only some of them; at least one is present unless the source is `unknown`. When GPUs are present, `gpu` and `gpu_model` are both recorded; without a GPU, both are absent.","type":"object","required":["source","observed_at","how"],"properties":{"cpu":{"description":"vCPUs.","exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"disk_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"gpu":{"description":"Number of allocated GPUs.","minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"gpu_model":{"description":"The allocated model's gpu-registry identifier.","type":"string","pattern":"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"not":{"anyOf":[{"required":["cpu"]},{"required":["memory_mib"]},{"required":["disk_mib"]},{"required":["gpu"]},{"required":["gpu_model"]}]}},"else":{"anyOf":[{"required":["cpu"]},{"required":["memory_mib"]},{"required":["disk_mib"]},{"required":["gpu"]}]},"allOf":[{"if":{"required":["gpu"]},"then":{"required":["gpu_model"]}},{"if":{"required":["gpu_model"]},"then":{"required":["gpu"]}}]};function validate340(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate340.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.gpu === undefined) && (missing0 = "gpu")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.gpu_model === undefined) && (missing1 = "gpu_model")){validate340.errors = [{instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}}var _valid0 = _errs4 === errors;valid1 = _valid0;}if(!valid1){const err1 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate340.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs5 = errors;const _errs6 = errors;let valid2 = true;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.gpu_model === undefined) && (missing2 = "gpu_model")){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid1 = _errs7 === errors;errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}if(_valid1){const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.gpu === undefined) && (missing3 = "gpu")){validate340.errors = [{instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}}var _valid1 = _errs8 === errors;valid2 = _valid1;}if(!valid2){const err3 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;validate340.errors = vErrors;return false;}var valid0 = _errs5 === errors;if(valid0){const _errs9 = errors;let valid3 = true;const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((data.source === undefined) && (missing4 = "source")){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}}var _valid2 = _errs10 === errors;errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}let ifClause0;if(_valid2){const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid7 = false;const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((data.cpu === undefined) && (missing5 = "cpu")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid3 = _errs17 === errors;valid7 = valid7 || _valid3;const _errs18 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((data.memory_mib === undefined) && (missing6 = "memory_mib")){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var _valid3 = _errs18 === errors;valid7 = valid7 || _valid3;const _errs19 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if((data.disk_mib === undefined) && (missing7 = "disk_mib")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid3 = _errs19 === errors;valid7 = valid7 || _valid3;const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((data.gpu === undefined) && (missing8 = "gpu")){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid3 = _errs20 === errors;valid7 = valid7 || _valid3;const _errs21 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if((data.gpu_model === undefined) && (missing9 = "gpu_model")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid3 = _errs21 === errors;valid7 = valid7 || _valid3;if(!valid7){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid6 = _errs15 === errors;if(valid6){validate340.errors = [{instancePath,schemaPath:"#/then/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var _valid2 = _errs13 === errors;valid3 = _valid2;ifClause0 = "then";}else {const _errs22 = errors;const _errs23 = errors;let valid8 = false;const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if((data.cpu === undefined) && (missing10 = "cpu")){const err12 = {instancePath,schemaPath:"#/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid4 = _errs24 === errors;valid8 = valid8 || _valid4;const _errs25 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing11;if((data.memory_mib === undefined) && (missing11 = "memory_mib")){const err13 = {instancePath,schemaPath:"#/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var _valid4 = _errs25 === errors;valid8 = valid8 || _valid4;const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing12;if((data.disk_mib === undefined) && (missing12 = "disk_mib")){const err14 = {instancePath,schemaPath:"#/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var _valid4 = _errs26 === errors;valid8 = valid8 || _valid4;const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing13;if((data.gpu === undefined) && (missing13 = "gpu")){const err15 = {instancePath,schemaPath:"#/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid4 = _errs27 === errors;valid8 = valid8 || _valid4;if(!valid8){const err16 = {instancePath,schemaPath:"#/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;validate340.errors = vErrors;return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var _valid2 = _errs22 === errors;valid3 = _valid2;ifClause0 = "else";}if(!valid3){const err17 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate340.errors = vErrors;return false;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing14;if((((data.source === undefined) && (missing14 = "source")) || ((data.observed_at === undefined) && (missing14 = "observed_at"))) || ((data.how === undefined) && (missing14 = "how"))){validate340.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing14},message:"must have required property '"+missing14+"'"}];return false;}else {if(data.cpu !== undefined){let data1 = data.cpu;const _errs28 = errors;const _errs29 = errors;const _errs30 = errors;let valid11 = false;const _errs31 = errors;if(!((typeof data1 == "number") && (isFinite(data1)))){const err18 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid5 = _errs31 === errors;valid11 = valid11 || _valid5;const _errs33 = errors;if(typeof data1 !== "bigint"){const err19 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid5 = _errs33 === errors;valid11 = valid11 || _valid5;if(!valid11){const err20 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate340.errors = vErrors;return false;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var valid10 = _errs29 === errors;if(valid10){if(typeof data1 === "bigint"){if(data1 <= 0){validate340.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs28){if((typeof data1 == "number") && (isFinite(data1))){if(data1 <= 0 || isNaN(data1)){validate340.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid9 = _errs28 === errors;}else {var valid9 = true;}if(valid9){if(data.memory_mib !== undefined){let data2 = data.memory_mib;const _errs34 = errors;const _errs35 = errors;const _errs36 = errors;let valid13 = false;const _errs37 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err21 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid6 = _errs37 === errors;valid13 = valid13 || _valid6;const _errs39 = errors;if(typeof data2 !== "bigint"){const err22 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid6 = _errs39 === errors;valid13 = valid13 || _valid6;if(!valid13){const err23 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;validate340.errors = vErrors;return false;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}var valid12 = _errs35 === errors;if(valid12){if(typeof data2 === "bigint"){if(data2 < 1){validate340.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs34){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate340.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid9 = _errs34 === errors;}else {var valid9 = true;}if(valid9){if(data.disk_mib !== undefined){let data3 = data.disk_mib;const _errs40 = errors;const _errs41 = errors;const _errs42 = errors;let valid15 = false;const _errs43 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err24 = {instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid7 = _errs43 === errors;valid15 = valid15 || _valid7;const _errs45 = errors;if(typeof data3 !== "bigint"){const err25 = {instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid7 = _errs45 === errors;valid15 = valid15 || _valid7;if(!valid15){const err26 = {instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;validate340.errors = vErrors;return false;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid14 = _errs41 === errors;if(valid14){if(typeof data3 === "bigint"){if(data3 < 1){validate340.errors = [{instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs40){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate340.errors = [{instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid9 = _errs40 === errors;}else {var valid9 = true;}if(valid9){if(data.gpu !== undefined){let data4 = data.gpu;const _errs46 = errors;const _errs47 = errors;const _errs48 = errors;let valid17 = false;const _errs49 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err27 = {instancePath:instancePath+"/gpu",schemaPath:"#/properties/gpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid8 = _errs49 === errors;valid17 = valid17 || _valid8;const _errs51 = errors;if(typeof data4 !== "bigint"){const err28 = {instancePath:instancePath+"/gpu",schemaPath:"#/properties/gpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid8 = _errs51 === errors;valid17 = valid17 || _valid8;if(!valid17){const err29 = {instancePath:instancePath+"/gpu",schemaPath:"#/properties/gpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate340.errors = vErrors;return false;}else {errors = _errs48;if(vErrors !== null){if(_errs48){vErrors.length = _errs48;}else {vErrors = null;}}}var valid16 = _errs47 === errors;if(valid16){if(typeof data4 === "bigint"){if(data4 < 1){validate340.errors = [{instancePath:instancePath+"/gpu",schemaPath:"#/properties/gpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs46){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 1 || isNaN(data4)){validate340.errors = [{instancePath:instancePath+"/gpu",schemaPath:"#/properties/gpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid9 = _errs46 === errors;}else {var valid9 = true;}if(valid9){if(data.gpu_model !== undefined){let data5 = data.gpu_model;const _errs52 = errors;if(errors === _errs52){if(typeof data5 === "string"){if(!pattern219.test(data5)){validate340.errors = [{instancePath:instancePath+"/gpu_model",schemaPath:"#/properties/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""}];return false;}}else {validate340.errors = [{instancePath:instancePath+"/gpu_model",schemaPath:"#/properties/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs52 === errors;}else {var valid9 = true;}if(valid9){if(data.source !== undefined){let data6 = data.source;const _errs54 = errors;if(typeof data6 !== "string"){validate340.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data6 === "provider") || (data6 === "published")) || (data6 === "measured")) || (data6 === "recorded")) || (data6 === "calculated")) || (data6 === "unknown"))){validate340.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs54 === errors;}else {var valid9 = true;}if(valid9){if(data.observed_at !== undefined){let data7 = data.observed_at;const _errs57 = errors;const _errs58 = errors;if(errors === _errs58){if(errors === _errs58){if(typeof data7 === "string"){if(!pattern78.test(data7)){validate340.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data7))){validate340.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate340.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid9 = _errs57 === errors;}else {var valid9 = true;}if(valid9){if(data.how !== undefined){let data8 = data.how;const _errs60 = errors;const _errs61 = errors;if(errors === _errs61){if(typeof data8 === "string"){if(func1(data8) < 1){validate340.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate340.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs60 === errors;}else {var valid9 = true;}}}}}}}}}}else {validate340.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate340.errors = vErrors;return errors === 0;}validate340.evaluated = {"props":{"cpu":true,"memory_mib":true,"disk_mib":true,"gpu":true,"gpu_model":true,"source":true,"observed_at":true,"how":true},"dynamicProps":false,"dynamicItems":false};const schema355 = {"description":"The stored snapshot size, or its known maximum when the provider does not report the actual size.","type":"object","required":["source","observed_at","how"],"properties":{"gb":{"minimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"max_gb":{"minimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"},"bytes":{"description":"Provider snapshot sizeBytes, kept as an exact integer.","minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"gb":{"type":"null"}}},"else":{"anyOf":[{"required":["gb"],"properties":{"gb":{"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}]}}},{"required":["bytes"]}]}};function validate342(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate342.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.gb !== undefined){if(data.gb !== null){validate342.errors = [{instancePath:instancePath+"/gb",schemaPath:"#/then/properties/gb/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;if(valid0){var props0 = {};props0.gb = true;props0.source = true;}ifClause0 = "then";}else {const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.gb === undefined) && (missing1 = "gb")){const err2 = {instancePath,schemaPath:"#/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data.gb !== undefined){let data2 = data.gb;const _errs13 = errors;let valid7 = false;const _errs14 = errors;if(!((typeof data2 == "number") && (isFinite(data2)))){const err3 = {instancePath:instancePath+"/gb",schemaPath:"#/else/anyOf/0/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid2 = _errs14 === errors;valid7 = valid7 || _valid2;const _errs16 = errors;if(typeof data2 !== "bigint"){const err4 = {instancePath:instancePath+"/gb",schemaPath:"#/else/anyOf/0/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid2 = _errs16 === errors;valid7 = valid7 || _valid2;if(!valid7){const err5 = {instancePath:instancePath+"/gb",schemaPath:"#/else/anyOf/0/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}}}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;if(_valid1){var props1 = {};props1.gb = true;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.bytes === undefined) && (missing2 = "bytes")){const err6 = {instancePath,schemaPath:"#/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid1 = _errs17 === errors;valid4 = valid4 || _valid1;if(!valid4){const err7 = {instancePath,schemaPath:"#/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;validate342.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var _valid0 = _errs8 === errors;valid0 = _valid0;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}ifClause0 = "else";}if(!valid0){const err8 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate342.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((data.source === undefined) && (missing3 = "source")) || ((data.observed_at === undefined) && (missing3 = "observed_at"))) || ((data.how === undefined) && (missing3 = "how"))){validate342.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.gb = true;props0.max_gb = true;props0.source = true;props0.observed_at = true;props0.how = true;props0.bytes = true;}if(data.gb !== undefined){let data3 = data.gb;const _errs18 = errors;const _errs19 = errors;const _errs20 = errors;let valid10 = false;const _errs21 = errors;if((!((typeof data3 == "number") && (isFinite(data3)))) && (data3 !== null)){const err9 = {instancePath:instancePath+"/gb",schemaPath:"#/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema355.properties.gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs21 === errors;valid10 = valid10 || _valid3;const _errs23 = errors;if(typeof data3 !== "bigint"){const err10 = {instancePath:instancePath+"/gb",schemaPath:"#/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs23 === errors;valid10 = valid10 || _valid3;if(!valid10){const err11 = {instancePath:instancePath+"/gb",schemaPath:"#/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate342.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid9 = _errs19 === errors;if(valid9){if(typeof data3 === "bigint"){if(data3 < 0){validate342.errors = [{instancePath:instancePath+"/gb",schemaPath:"#/properties/gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs18){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate342.errors = [{instancePath:instancePath+"/gb",schemaPath:"#/properties/gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid8 = _errs18 === errors;}else {var valid8 = true;}if(valid8){if(data.max_gb !== undefined){let data4 = data.max_gb;const _errs24 = errors;const _errs25 = errors;const _errs26 = errors;let valid12 = false;const _errs27 = errors;if((!((typeof data4 == "number") && (isFinite(data4)))) && (data4 !== null)){const err12 = {instancePath:instancePath+"/max_gb",schemaPath:"#/properties/max_gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema355.properties.max_gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid4 = _errs27 === errors;valid12 = valid12 || _valid4;const _errs29 = errors;if(typeof data4 !== "bigint"){const err13 = {instancePath:instancePath+"/max_gb",schemaPath:"#/properties/max_gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs29 === errors;valid12 = valid12 || _valid4;if(!valid12){const err14 = {instancePath:instancePath+"/max_gb",schemaPath:"#/properties/max_gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate342.errors = vErrors;return false;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}var valid11 = _errs25 === errors;if(valid11){if(typeof data4 === "bigint"){if(data4 < 0){validate342.errors = [{instancePath:instancePath+"/max_gb",schemaPath:"#/properties/max_gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs24){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate342.errors = [{instancePath:instancePath+"/max_gb",schemaPath:"#/properties/max_gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid8 = _errs24 === errors;}else {var valid8 = true;}if(valid8){if(data.source !== undefined){let data5 = data.source;const _errs30 = errors;if(typeof data5 !== "string"){validate342.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data5 === "provider") || (data5 === "published")) || (data5 === "measured")) || (data5 === "recorded")) || (data5 === "calculated")) || (data5 === "unknown"))){validate342.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs30 === errors;}else {var valid8 = true;}if(valid8){if(data.observed_at !== undefined){let data6 = data.observed_at;const _errs33 = errors;const _errs34 = errors;if(errors === _errs34){if(errors === _errs34){if(typeof data6 === "string"){if(!pattern78.test(data6)){validate342.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data6))){validate342.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate342.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid8 = _errs33 === errors;}else {var valid8 = true;}if(valid8){if(data.how !== undefined){let data7 = data.how;const _errs36 = errors;const _errs37 = errors;if(errors === _errs37){if(typeof data7 === "string"){if(func1(data7) < 1){validate342.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate342.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs36 === errors;}else {var valid8 = true;}if(valid8){if(data.bytes !== undefined){let data8 = data.bytes;const _errs39 = errors;const _errs40 = errors;const _errs41 = errors;let valid17 = false;const _errs42 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err15 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid5 = _errs42 === errors;valid17 = valid17 || _valid5;const _errs44 = errors;if(typeof data8 !== "bigint"){const err16 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid5 = _errs44 === errors;valid17 = valid17 || _valid5;if(!valid17){const err17 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate342.errors = vErrors;return false;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}var valid16 = _errs40 === errors;if(valid16){if(typeof data8 === "bigint"){if(data8 < 0){validate342.errors = [{instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs39){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){validate342.errors = [{instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid8 = _errs39 === errors;}else {var valid8 = true;}}}}}}}}else {validate342.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate342.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate342.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema381 = {"description":"The sandbox's class or runtime, which picks the rate set in the price version. If absent, it may be priced only when the price version has exactly one class; otherwise the cost is unknown.","type":"object","required":["name","source","observed_at","how"],"properties":{"name":{"type":["string","null"],"minLength":1},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"name":{"type":"null"}}},"else":{"properties":{"name":{"type":"string"}}}};function validate344(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate344.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name !== undefined){if(data.name !== null){validate344.errors = [{instancePath:instancePath+"/name",schemaPath:"#/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;if(valid0){var props0 = {};props0.name = true;props0.source = true;}ifClause0 = "then";}else {const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name !== undefined){if(typeof data.name !== "string"){validate344.errors = [{instancePath:instancePath+"/name",schemaPath:"#/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var _valid0 = _errs8 === errors;valid0 = _valid0;if(valid0){if(props0 !== true){props0 = props0 || {};props0.name = true;}}ifClause0 = "else";}if(!valid0){const err2 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate344.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.name === undefined) && (missing1 = "name")) || ((data.source === undefined) && (missing1 = "source"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.how === undefined) && (missing1 = "how"))){validate344.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.name = true;props0.source = true;props0.observed_at = true;props0.how = true;}if(data.name !== undefined){let data3 = data.name;const _errs11 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate344.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: schema381.properties.name.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data3 === "string"){if(func1(data3) < 1){validate344.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid5 = _errs11 === errors;}else {var valid5 = true;}if(valid5){if(data.source !== undefined){let data4 = data.source;const _errs13 = errors;if(typeof data4 !== "string"){validate344.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data4 === "provider") || (data4 === "published")) || (data4 === "measured")) || (data4 === "recorded")) || (data4 === "calculated")) || (data4 === "unknown"))){validate344.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs16 = errors;const _errs17 = errors;if(errors === _errs17){if(errors === _errs17){if(typeof data5 === "string"){if(!pattern78.test(data5)){validate344.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data5))){validate344.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate344.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data.how !== undefined){let data6 = data.how;const _errs19 = errors;const _errs20 = errors;if(errors === _errs20){if(typeof data6 === "string"){if(func1(data6) < 1){validate344.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate344.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs19 === errors;}else {var valid5 = true;}}}}}}else {validate344.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate344.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate344.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema386 = {"description":"When the sandbox started. It picks the price version in effect.","type":"object","required":["at","source","observed_at","how"],"properties":{"at":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"at":{"type":"null"}}},"else":{"properties":{"at":{"$ref":"#/components/schemas/PricingTimestamp"}}}};function validate346(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate346.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){if(data.at !== null){validate346.errors = [{instancePath:instancePath+"/at",schemaPath:"#/then/properties/at/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;if(valid0){var props0 = {};props0.at = true;props0.source = true;}ifClause0 = "then";}else {const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data2 = data.at;const _errs10 = errors;if(errors === _errs10){if(errors === _errs10){if(typeof data2 === "string"){if(!pattern78.test(data2)){validate346.errors = [{instancePath:instancePath+"/at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data2))){validate346.errors = [{instancePath:instancePath+"/at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate346.errors = [{instancePath:instancePath+"/at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}var _valid0 = _errs8 === errors;valid0 = _valid0;if(valid0){if(props0 !== true){props0 = props0 || {};props0.at = true;}}ifClause0 = "else";}if(!valid0){const err2 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate346.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.at === undefined) && (missing1 = "at")) || ((data.source === undefined) && (missing1 = "source"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.how === undefined) && (missing1 = "how"))){validate346.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.at = true;props0.source = true;props0.observed_at = true;props0.how = true;}if(data.at !== undefined){let data3 = data.at;const _errs12 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate346.errors = [{instancePath:instancePath+"/at",schemaPath:"#/properties/at/type",keyword:"type",params:{type: schema386.properties.at.type},message:"must be string,null"}];return false;}var valid6 = _errs12 === errors;}else {var valid6 = true;}if(valid6){if(data.source !== undefined){let data4 = data.source;const _errs14 = errors;if(typeof data4 !== "string"){validate346.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data4 === "provider") || (data4 === "published")) || (data4 === "measured")) || (data4 === "recorded")) || (data4 === "calculated")) || (data4 === "unknown"))){validate346.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid6 = _errs14 === errors;}else {var valid6 = true;}if(valid6){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(errors === _errs18){if(typeof data5 === "string"){if(!pattern78.test(data5)){validate346.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data5))){validate346.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate346.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid6 = _errs17 === errors;}else {var valid6 = true;}if(valid6){if(data.how !== undefined){let data6 = data.how;const _errs20 = errors;const _errs21 = errors;if(errors === _errs21){if(typeof data6 === "string"){if(func1(data6) < 1){validate346.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate346.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs20 === errors;}else {var valid6 = true;}}}}}}else {validate346.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate346.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate346.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema392 = {"description":"The region the sandbox ran in, as the provider names it.","type":"object","required":["name","source","observed_at","how"],"properties":{"name":{"type":["string","null"],"minLength":1},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"name":{"type":"null"}}},"else":{"properties":{"name":{"type":"string"}}}};function validate348(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate348.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name !== undefined){if(data.name !== null){validate348.errors = [{instancePath:instancePath+"/name",schemaPath:"#/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;if(valid0){var props0 = {};props0.name = true;props0.source = true;}ifClause0 = "then";}else {const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name !== undefined){if(typeof data.name !== "string"){validate348.errors = [{instancePath:instancePath+"/name",schemaPath:"#/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var _valid0 = _errs8 === errors;valid0 = _valid0;if(valid0){if(props0 !== true){props0 = props0 || {};props0.name = true;}}ifClause0 = "else";}if(!valid0){const err2 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate348.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.name === undefined) && (missing1 = "name")) || ((data.source === undefined) && (missing1 = "source"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.how === undefined) && (missing1 = "how"))){validate348.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.name = true;props0.source = true;props0.observed_at = true;props0.how = true;}if(data.name !== undefined){let data3 = data.name;const _errs11 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate348.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: schema392.properties.name.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data3 === "string"){if(func1(data3) < 1){validate348.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid5 = _errs11 === errors;}else {var valid5 = true;}if(valid5){if(data.source !== undefined){let data4 = data.source;const _errs13 = errors;if(typeof data4 !== "string"){validate348.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data4 === "provider") || (data4 === "published")) || (data4 === "measured")) || (data4 === "recorded")) || (data4 === "calculated")) || (data4 === "unknown"))){validate348.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs16 = errors;const _errs17 = errors;if(errors === _errs17){if(errors === _errs17){if(typeof data5 === "string"){if(!pattern78.test(data5)){validate348.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data5))){validate348.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate348.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data.how !== undefined){let data6 = data.how;const _errs19 = errors;const _errs20 = errors;if(errors === _errs20){if(typeof data6 === "string"){if(func1(data6) < 1){validate348.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate348.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs19 === errors;}else {var valid5 = true;}}}}}}else {validate348.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate348.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate348.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema407 = {"description":"Time in each billed state, one entry per period, in time order. A price version's minimum and increment rules apply to each entry.","type":"array","minItems":1,"items":{"type":"object","required":["state","seconds","source","observed_at","how"],"properties":{"size":{"$ref":"#/components/schemas/UsageSize"},"snapshot_storage":{"$ref":"#/components/schemas/UsageSnapshotStorage"},"state":{"enum":["running","paused","stopped"]},"seconds":{"description":"Exact seconds, or a range when a change was noticed late and the period is only bounded.","anyOf":[{"minimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},{"$ref":"#/components/schemas/UsageRange"},{"type":"null"}]},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"seconds":{"type":"null"}}},"else":{"properties":{"seconds":{"allOf":[{"anyOf":[{"type":["number","object"]},{"x-boxrouter-bigint":true}]}]}}}}};function validate350(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate350.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(Array.isArray(data)){if(data.length < 1){validate350.errors = [{instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;const _errs3 = errors;let valid1 = true;const _errs4 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing0;if((data0.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.source !== undefined){if("unknown" !== data0.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs4 === errors;errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.seconds !== undefined){if(data0.seconds !== null){validate350.errors = [{instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs7 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.seconds = true;props0.source = true;}ifClause0 = "then";}else {const _errs10 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.seconds !== undefined){let data3 = data0.seconds;const _errs13 = errors;let valid7 = false;const _errs14 = errors;if((!((typeof data3 == "number") && (isFinite(data3)))) && (!(data3 && typeof data3 == "object" && !Array.isArray(data3)))){const err2 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema407.items.else.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,object"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs14 === errors;valid7 = valid7 || _valid1;const _errs16 = errors;if(typeof data3 !== "bigint"){const err3 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs16 === errors;valid7 = valid7 || _valid1;if(!valid7){const err4 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate350.errors = vErrors;return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}}var _valid0 = _errs10 === errors;valid1 = _valid0;if(valid1){if(props0 !== true){props0 = props0 || {};props0.seconds = true;}}ifClause0 = "else";}if(!valid1){const err5 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate350.errors = vErrors;return false;}if(errors === _errs1){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((((data0.state === undefined) && (missing1 = "state")) || ((data0.seconds === undefined) && (missing1 = "seconds"))) || ((data0.source === undefined) && (missing1 = "source"))) || ((data0.observed_at === undefined) && (missing1 = "observed_at"))) || ((data0.how === undefined) && (missing1 = "how"))){validate350.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.size = true;props0.snapshot_storage = true;props0.state = true;props0.seconds = true;props0.source = true;props0.observed_at = true;props0.how = true;}if(data0.size !== undefined){const _errs17 = errors;if(!(validate340(data0.size, {instancePath:instancePath+"/" + i0+"/size",parentData:data0,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate340.errors : vErrors.concat(validate340.errors);errors = vErrors.length;}var valid8 = _errs17 === errors;}else {var valid8 = true;}if(valid8){if(data0.snapshot_storage !== undefined){const _errs18 = errors;if(!(validate342(data0.snapshot_storage, {instancePath:instancePath+"/" + i0+"/snapshot_storage",parentData:data0,parentDataProperty:"snapshot_storage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate342.errors : vErrors.concat(validate342.errors);errors = vErrors.length;}var valid8 = _errs18 === errors;}else {var valid8 = true;}if(valid8){if(data0.state !== undefined){let data6 = data0.state;const _errs19 = errors;if(!(((data6 === "running") || (data6 === "paused")) || (data6 === "stopped"))){validate350.errors = [{instancePath:instancePath+"/" + i0+"/state",schemaPath:"#/items/properties/state/enum",keyword:"enum",params:{allowedValues: schema407.items.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs19 === errors;}else {var valid8 = true;}if(valid8){if(data0.seconds !== undefined){let data7 = data0.seconds;const _errs20 = errors;const _errs21 = errors;let valid9 = false;const _errs22 = errors;const _errs23 = errors;const _errs24 = errors;let valid11 = false;const _errs25 = errors;if(!((typeof data7 == "number") && (isFinite(data7)))){const err6 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/properties/seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid3 = _errs25 === errors;valid11 = valid11 || _valid3;const _errs27 = errors;if(typeof data7 !== "bigint"){const err7 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/properties/seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid3 = _errs27 === errors;valid11 = valid11 || _valid3;if(!valid11){const err8 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/properties/seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}var valid10 = _errs23 === errors;if(valid10){if(typeof data7 === "bigint"){if(data7 < 0){const err9 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/properties/seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(errors === _errs22){if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){const err10 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/properties/seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var _valid2 = _errs22 === errors;valid9 = valid9 || _valid2;const _errs28 = errors;const _errs29 = errors;if(errors === _errs29){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing2;if(((data7.low === undefined) && (missing2 = "low")) || ((data7.high === undefined) && (missing2 = "high"))){const err11 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {if(data7.low !== undefined){let data8 = data7.low;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid15 = false;const _errs34 = errors;if(!((typeof data8 == "number") && (isFinite(data8)))){const err12 = {instancePath:instancePath+"/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid4 = _errs34 === errors;valid15 = valid15 || _valid4;const _errs36 = errors;if(typeof data8 !== "bigint"){const err13 = {instancePath:instancePath+"/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs36 === errors;valid15 = valid15 || _valid4;if(!valid15){const err14 = {instancePath:instancePath+"/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid14 = _errs32 === errors;if(valid14){if(typeof data8 === "bigint"){if(data8 < 0){const err15 = {instancePath:instancePath+"/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(errors === _errs31){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){const err16 = {instancePath:instancePath+"/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}var valid13 = _errs31 === errors;}else {var valid13 = true;}if(valid13){if(data7.high !== undefined){let data9 = data7.high;const _errs37 = errors;const _errs38 = errors;const _errs39 = errors;let valid17 = false;const _errs40 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){const err17 = {instancePath:instancePath+"/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs40 === errors;valid17 = valid17 || _valid5;const _errs42 = errors;if(typeof data9 !== "bigint"){const err18 = {instancePath:instancePath+"/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid5 = _errs42 === errors;valid17 = valid17 || _valid5;if(!valid17){const err19 = {instancePath:instancePath+"/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}var valid16 = _errs38 === errors;if(valid16){if(typeof data9 === "bigint"){if(data9 < 0){const err20 = {instancePath:instancePath+"/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}if(errors === _errs37){if((typeof data9 == "number") && (isFinite(data9))){if(data9 < 0 || isNaN(data9)){const err21 = {instancePath:instancePath+"/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var valid13 = _errs37 === errors;}else {var valid13 = true;}}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var _valid2 = _errs28 === errors;valid9 = valid9 || _valid2;if(_valid2){var props2 = {};props2.low = true;props2.high = true;}const _errs43 = errors;if(data7 !== null){const err23 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/properties/seconds/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var _valid2 = _errs43 === errors;valid9 = valid9 || _valid2;if(!valid9){const err24 = {instancePath:instancePath+"/" + i0+"/seconds",schemaPath:"#/items/properties/seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;validate350.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid8 = _errs20 === errors;}else {var valid8 = true;}if(valid8){if(data0.source !== undefined){let data10 = data0.source;const _errs45 = errors;if(typeof data10 !== "string"){validate350.errors = [{instancePath:instancePath+"/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data10 === "provider") || (data10 === "published")) || (data10 === "measured")) || (data10 === "recorded")) || (data10 === "calculated")) || (data10 === "unknown"))){validate350.errors = [{instancePath:instancePath+"/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs45 === errors;}else {var valid8 = true;}if(valid8){if(data0.observed_at !== undefined){let data11 = data0.observed_at;const _errs48 = errors;const _errs49 = errors;if(errors === _errs49){if(errors === _errs49){if(typeof data11 === "string"){if(!pattern78.test(data11)){validate350.errors = [{instancePath:instancePath+"/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data11))){validate350.errors = [{instancePath:instancePath+"/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate350.errors = [{instancePath:instancePath+"/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid8 = _errs48 === errors;}else {var valid8 = true;}if(valid8){if(data0.how !== undefined){let data12 = data0.how;const _errs51 = errors;const _errs52 = errors;if(errors === _errs52){if(typeof data12 === "string"){if(func1(data12) < 1){validate350.errors = [{instancePath:instancePath+"/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate350.errors = [{instancePath:instancePath+"/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs51 === errors;}else {var valid8 = true;}}}}}}}}}else {validate350.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}}else {validate350.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate350.errors = vErrors;return errors === 0;}validate350.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema413 = {"description":"How many times the sandbox was created: 1, plus any restores that the provider charges as a creation.","type":"object","required":["count","source","observed_at","how"],"properties":{"count":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"count":{"type":"null"}}},"else":{"properties":{"count":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}}};function validate354(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate354.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.count !== undefined){if(data.count !== null){validate354.errors = [{instancePath:instancePath+"/count",schemaPath:"#/then/properties/count/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;if(valid0){var props0 = {};props0.count = true;props0.source = true;}ifClause0 = "then";}else {const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.count !== undefined){let data2 = data.count;const _errs11 = errors;let valid6 = false;const _errs12 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err2 = {instancePath:instancePath+"/count",schemaPath:"#/else/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs12 === errors;valid6 = valid6 || _valid1;const _errs14 = errors;if(typeof data2 !== "bigint"){const err3 = {instancePath:instancePath+"/count",schemaPath:"#/else/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs14 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/count",schemaPath:"#/else/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate354.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}}}var _valid0 = _errs8 === errors;valid0 = _valid0;if(valid0){if(props0 !== true){props0 = props0 || {};props0.count = true;}}ifClause0 = "else";}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate354.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.count === undefined) && (missing1 = "count")) || ((data.source === undefined) && (missing1 = "source"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.how === undefined) && (missing1 = "how"))){validate354.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.count = true;props0.source = true;props0.observed_at = true;props0.how = true;}if(data.count !== undefined){let data3 = data.count;const _errs15 = errors;const _errs16 = errors;const _errs17 = errors;let valid9 = false;const _errs18 = errors;if((!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) && (data3 !== null)){const err6 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema413.properties.count.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs18 === errors;valid9 = valid9 || _valid2;const _errs20 = errors;if(typeof data3 !== "bigint"){const err7 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs20 === errors;valid9 = valid9 || _valid2;if(!valid9){const err8 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate354.errors = vErrors;return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}var valid8 = _errs16 === errors;if(valid8){if(typeof data3 === "bigint"){if(data3 < 0){validate354.errors = [{instancePath:instancePath+"/count",schemaPath:"#/properties/count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs15){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate354.errors = [{instancePath:instancePath+"/count",schemaPath:"#/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid7 = _errs15 === errors;}else {var valid7 = true;}if(valid7){if(data.source !== undefined){let data4 = data.source;const _errs21 = errors;if(typeof data4 !== "string"){validate354.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data4 === "provider") || (data4 === "published")) || (data4 === "measured")) || (data4 === "recorded")) || (data4 === "calculated")) || (data4 === "unknown"))){validate354.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid7 = _errs21 === errors;}else {var valid7 = true;}if(valid7){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs24 = errors;const _errs25 = errors;if(errors === _errs25){if(errors === _errs25){if(typeof data5 === "string"){if(!pattern78.test(data5)){validate354.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data5))){validate354.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate354.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid7 = _errs24 === errors;}else {var valid7 = true;}if(valid7){if(data.how !== undefined){let data6 = data.how;const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(typeof data6 === "string"){if(func1(data6) < 1){validate354.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate354.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs27 === errors;}else {var valid7 = true;}}}}}}else {validate354.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate354.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate354.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema418 = {"description":"Seconds of CPU the sandbox actually used, for providers that bill active CPU. Absent where the provider does not bill it.","type":"object","required":["seconds","source","observed_at","how"],"properties":{"seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"seconds":{"type":"null"}}},"else":{"properties":{"seconds":{"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}]}}}};function validate356(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate356.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.seconds !== undefined){if(data.seconds !== null){validate356.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;if(valid0){var props0 = {};props0.seconds = true;props0.source = true;}ifClause0 = "then";}else {const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.seconds !== undefined){let data2 = data.seconds;const _errs11 = errors;let valid6 = false;const _errs12 = errors;if(!((typeof data2 == "number") && (isFinite(data2)))){const err2 = {instancePath:instancePath+"/seconds",schemaPath:"#/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs12 === errors;valid6 = valid6 || _valid1;const _errs14 = errors;if(typeof data2 !== "bigint"){const err3 = {instancePath:instancePath+"/seconds",schemaPath:"#/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs14 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/seconds",schemaPath:"#/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate356.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}}}var _valid0 = _errs8 === errors;valid0 = _valid0;if(valid0){if(props0 !== true){props0 = props0 || {};props0.seconds = true;}}ifClause0 = "else";}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate356.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.seconds === undefined) && (missing1 = "seconds")) || ((data.source === undefined) && (missing1 = "source"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.how === undefined) && (missing1 = "how"))){validate356.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.seconds = true;props0.source = true;props0.observed_at = true;props0.how = true;}if(data.seconds !== undefined){let data3 = data.seconds;const _errs15 = errors;const _errs16 = errors;const _errs17 = errors;let valid9 = false;const _errs18 = errors;if((!((typeof data3 == "number") && (isFinite(data3)))) && (data3 !== null)){const err6 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema418.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs18 === errors;valid9 = valid9 || _valid2;const _errs20 = errors;if(typeof data3 !== "bigint"){const err7 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs20 === errors;valid9 = valid9 || _valid2;if(!valid9){const err8 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate356.errors = vErrors;return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}var valid8 = _errs16 === errors;if(valid8){if(typeof data3 === "bigint"){if(data3 < 0){validate356.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs15){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate356.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid7 = _errs15 === errors;}else {var valid7 = true;}if(valid7){if(data.source !== undefined){let data4 = data.source;const _errs21 = errors;if(typeof data4 !== "string"){validate356.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data4 === "provider") || (data4 === "published")) || (data4 === "measured")) || (data4 === "recorded")) || (data4 === "calculated")) || (data4 === "unknown"))){validate356.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid7 = _errs21 === errors;}else {var valid7 = true;}if(valid7){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs24 = errors;const _errs25 = errors;if(errors === _errs25){if(errors === _errs25){if(typeof data5 === "string"){if(!pattern78.test(data5)){validate356.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data5))){validate356.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate356.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid7 = _errs24 === errors;}else {var valid7 = true;}if(valid7){if(data.how !== undefined){let data6 = data.how;const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(typeof data6 === "string"){if(func1(data6) < 1){validate356.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate356.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs27 === errors;}else {var valid7 = true;}}}}}}else {validate356.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate356.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate356.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema423 = {"description":"Bytes the sandbox sent out. Absent where the provider does not bill it.","type":"object","required":["bytes","source","observed_at","how"],"properties":{"bytes":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"source":{"$ref":"#/components/schemas/UsageSource"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"$ref":"#/components/schemas/UsageHow"}},"if":{"$ref":"#/components/schemas/UsageIsUnknown"},"then":{"properties":{"bytes":{"type":"null"}}},"else":{"properties":{"bytes":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}}};function validate358(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate358.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.source === undefined) && (missing0 = "source")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.source !== undefined){if("unknown" !== data.source){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.bytes !== undefined){if(data.bytes !== null){validate358.errors = [{instancePath:instancePath+"/bytes",schemaPath:"#/then/properties/bytes/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;if(valid0){var props0 = {};props0.bytes = true;props0.source = true;}ifClause0 = "then";}else {const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.bytes !== undefined){let data2 = data.bytes;const _errs11 = errors;let valid6 = false;const _errs12 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err2 = {instancePath:instancePath+"/bytes",schemaPath:"#/else/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs12 === errors;valid6 = valid6 || _valid1;const _errs14 = errors;if(typeof data2 !== "bigint"){const err3 = {instancePath:instancePath+"/bytes",schemaPath:"#/else/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs14 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/bytes",schemaPath:"#/else/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate358.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}}}var _valid0 = _errs8 === errors;valid0 = _valid0;if(valid0){if(props0 !== true){props0 = props0 || {};props0.bytes = true;}}ifClause0 = "else";}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate358.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.bytes === undefined) && (missing1 = "bytes")) || ((data.source === undefined) && (missing1 = "source"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.how === undefined) && (missing1 = "how"))){validate358.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.bytes = true;props0.source = true;props0.observed_at = true;props0.how = true;}if(data.bytes !== undefined){let data3 = data.bytes;const _errs15 = errors;const _errs16 = errors;const _errs17 = errors;let valid9 = false;const _errs18 = errors;if((!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) && (data3 !== null)){const err6 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema423.properties.bytes.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs18 === errors;valid9 = valid9 || _valid2;const _errs20 = errors;if(typeof data3 !== "bigint"){const err7 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs20 === errors;valid9 = valid9 || _valid2;if(!valid9){const err8 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate358.errors = vErrors;return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}var valid8 = _errs16 === errors;if(valid8){if(typeof data3 === "bigint"){if(data3 < 0){validate358.errors = [{instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs15){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate358.errors = [{instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid7 = _errs15 === errors;}else {var valid7 = true;}if(valid7){if(data.source !== undefined){let data4 = data.source;const _errs21 = errors;if(typeof data4 !== "string"){validate358.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data4 === "provider") || (data4 === "published")) || (data4 === "measured")) || (data4 === "recorded")) || (data4 === "calculated")) || (data4 === "unknown"))){validate358.errors = [{instancePath:instancePath+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"}];return false;}var valid7 = _errs21 === errors;}else {var valid7 = true;}if(valid7){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs24 = errors;const _errs25 = errors;if(errors === _errs25){if(errors === _errs25){if(typeof data5 === "string"){if(!pattern78.test(data5)){validate358.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""}];return false;}else {if(!(formats0.validate(data5))){validate358.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}else {validate358.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid7 = _errs24 === errors;}else {var valid7 = true;}if(valid7){if(data.how !== undefined){let data6 = data.how;const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(typeof data6 === "string"){if(func1(data6) < 1){validate358.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate358.errors = [{instancePath:instancePath+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs27 === errors;}else {var valid7 = true;}}}}}}else {validate358.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate358.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate358.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema121 = {"description":"Exact USD total: low equals high.","type":"object","required":["low","high"],"properties":{"low":{"$ref":"#/components/schemas/PricingDecimal"},"high":{"$ref":"#/components/schemas/PricingDecimal"}}};function validate118(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate118.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.low === undefined) && (missing0 = "low")) || ((data.high === undefined) && (missing0 = "high"))){validate118.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.low !== undefined){let data0 = data.low;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(!pattern50.test(data0)){validate118.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate118.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.high !== undefined){let data1 = data.high;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(!pattern50.test(data1)){validate118.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate118.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate118.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate118.errors = vErrors;return errors === 0;}validate118.evaluated = {"props":{"low":true,"high":true},"dynamicProps":false,"dynamicItems":false};const schema130 = {"type":"object","required":["low","high"],"properties":{"low":{"$ref":"#/components/schemas/PricingDecimal"},"high":{"$ref":"#/components/schemas/PricingDecimal"}}};function validate122(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate122.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.low === undefined) && (missing0 = "low")) || ((data.high === undefined) && (missing0 = "high"))){validate122.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.low !== undefined){let data0 = data.low;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(!pattern50.test(data0)){validate122.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate122.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.high !== undefined){let data1 = data.high;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(!pattern50.test(data1)){validate122.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate122.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate122.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate122.errors = vErrors;return errors === 0;}validate122.evaluated = {"props":{"low":true,"high":true},"dynamicProps":false,"dynamicItems":false};const schema120 = {"description":"An exact USD amount, low equal to high, or null for unknown.","anyOf":[{"$ref":"#/components/schemas/CostTotalRange"},{"type":"null"}]};function validate117(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate117.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(!(validate118(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.low = true;props0.high = true;}const _errs2 = errors;if(data !== null){const err0 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(!valid0){const err1 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate117.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate117.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate117.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema437 = {"type":"object","required":["status","reserved_nanodollars","held_nanodollars","lifetime_seconds"],"description":"The credit ledger's account of one credit-funded sandbox, in billionths of a US dollar as\nexact decimal strings. `reserved` while it runs: the reservation is held and nothing is\ncharged. `pending` once it has ended and the provider's records are not in: the charge\nis set from them, the reservation stays held, and no amount is reported until they\narrive. `charged` once the records set the charge: `amount_nanodollars` is the current\ncharge and `first_charged_nanodollars` the charge as first settled. A later correction\nmoves the charge by its `delta_nanodollars` and never reopens the reservation.\n","properties":{"status":{"type":"string","x-boxrouter-open-enum":true,"description":"Clients must handle unknown values explicitly."},"reserved_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"The credit reserved when the sandbox started, for the lifetime it asked for."},"held_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"What is still reserved from the balance for this sandbox. Zero once it is charged."},"lifetime_seconds":{"minimum":1,"description":"The lifetime the reservation was made for. Null when it is not recorded.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"funding":{"type":"string","x-boxrouter-open-enum":true,"description":"How the sandbox's credits are reserved. `fixed`: all of the lifetime asked for was\nreserved when the sandbox started. `rolling`: the sandbox was created without a lifetime and\ncredits are reserved one hour at a time, renewed before each hour ends; `funded_until` on\nthe sandbox says how far it is funded. `ending_unfunded`: a renewal could not be\nfunded from the balance, so the sandbox ends at `funded_until`. Clients must handle\nunknown values explicitly. Absent from a Cloud that does not report it yet.\n"},"first_charged_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"The charge as first settled from the provider's records. Present only when charged."},"amount_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"The charge now: the first charge moved by every correction. Present only when charged;\na pending or reserved charge carries no amount.\n"},"returned_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"What went back to the balance when the first charge was settled, the reservation less that charge. Present only when charged."},"create_fee_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"The flat per-create fee the price book added to the first charge; zero while no book\nsets one. It is inside `amount_nanodollars`, not on top of it. Present only when\ncharged, and absent from a Cloud that does not report it yet.\n"},"basis":{"type":["string","null"],"x-boxrouter-open-enum":true,"description":"How the provider's cost for this sandbox was established, as `cost.label` says for it:\n`reported` for the provider's own figure, `calculated` for one worked out from its\nusage records. Null when the cost's source is not known. Present only when charged.\n"},"settled_at":{"type":"string","format":"date-time","description":"When the first charge was recorded in the ledger. Present only when charged."},"corrections":{"type":"array","maxItems":1000,"description":"Later changes to the charge, oldest first, when the provider's records or reported cost\nfor this sandbox changed after it was first charged. Independent credits an operator\ngives are not corrections. Present only when charged; empty when none.\n","items":{"$ref":"#/components/schemas/SandboxChargeCorrection"}}},"allOf":[{"if":{"properties":{"status":{"const":"charged"}},"required":["status"]},"then":{"required":["first_charged_nanodollars","amount_nanodollars","returned_nanodollars","settled_at","corrections"]},"else":{"properties":{"first_charged_nanodollars":false,"amount_nanodollars":false,"returned_nanodollars":false,"create_fee_nanodollars":false,"basis":false,"settled_at":false,"corrections":false}}}]};const schema438 = {"type":"object","required":["at","delta_nanodollars","reason"],"properties":{"at":{"type":"string","format":"date-time","description":"When the ledger recorded the correction."},"delta_nanodollars":{"type":"string","maxLength":20,"pattern":"^(-?[1-9][0-9]{0,18})$","description":"The change to the charge. Positive means the charge went up and the difference was taken from the balance; negative means it went down and the difference was returned to it."},"reason":{"type":"string","x-boxrouter-open-enum":true,"description":"Why the charge moved. `provider_revised`: the provider's records or reported cost for\nthis sandbox changed. Clients must handle unknown values explicitly.\n"}}};const pattern110 = new RegExp("^(0|[1-9][0-9]{0,18})$", "u");const pattern188 = new RegExp("^(-?[1-9][0-9]{0,18})$", "u");function validate363(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate363.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.status === undefined) && (missing0 = "status")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.status !== undefined){if("charged" !== data.status){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.first_charged_nanodollars === undefined) && (missing1 = "first_charged_nanodollars")) || ((data.amount_nanodollars === undefined) && (missing1 = "amount_nanodollars"))) || ((data.returned_nanodollars === undefined) && (missing1 = "returned_nanodollars"))) || ((data.settled_at === undefined) && (missing1 = "settled_at"))) || ((data.corrections === undefined) && (missing1 = "corrections"))){validate363.errors = [{instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}}var _valid0 = _errs5 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.first_charged_nanodollars !== undefined){var valid3 = false;validate363.errors = [{instancePath:instancePath+"/first_charged_nanodollars",schemaPath:"#/allOf/0/else/properties/first_charged_nanodollars/false schema",keyword:"false schema",params:{},message:"boolean schema is false"}];return false;}else {var valid3 = true;}if(valid3){if(data.amount_nanodollars !== undefined){var valid3 = false;validate363.errors = [{instancePath:instancePath+"/amount_nanodollars",schemaPath:"#/allOf/0/else/properties/amount_nanodollars/false schema",keyword:"false schema",params:{},message:"boolean schema is false"}];return false;}else {var valid3 = true;}if(valid3){if(data.returned_nanodollars !== undefined){var valid3 = false;validate363.errors = [{instancePath:instancePath+"/returned_nanodollars",schemaPath:"#/allOf/0/else/properties/returned_nanodollars/false schema",keyword:"false schema",params:{},message:"boolean schema is false"}];return false;}else {var valid3 = true;}if(valid3){if(data.create_fee_nanodollars !== undefined){var valid3 = false;validate363.errors = [{instancePath:instancePath+"/create_fee_nanodollars",schemaPath:"#/allOf/0/else/properties/create_fee_nanodollars/false schema",keyword:"false schema",params:{},message:"boolean schema is false"}];return false;}else {var valid3 = true;}if(valid3){if(data.basis !== undefined){var valid3 = false;validate363.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/allOf/0/else/properties/basis/false schema",keyword:"false schema",params:{},message:"boolean schema is false"}];return false;}else {var valid3 = true;}if(valid3){if(data.settled_at !== undefined){var valid3 = false;validate363.errors = [{instancePath:instancePath+"/settled_at",schemaPath:"#/allOf/0/else/properties/settled_at/false schema",keyword:"false schema",params:{},message:"boolean schema is false"}];return false;}else {var valid3 = true;}if(valid3){if(data.corrections !== undefined){var valid3 = false;validate363.errors = [{instancePath:instancePath+"/corrections",schemaPath:"#/allOf/0/else/properties/corrections/false schema",keyword:"false schema",params:{},message:"boolean schema is false"}];return false;}else {var valid3 = true;}}}}}}}}var _valid0 = _errs6 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.first_charged_nanodollars = true;props0.amount_nanodollars = true;props0.returned_nanodollars = true;props0.create_fee_nanodollars = true;props0.basis = true;props0.settled_at = true;props0.corrections = true;props0.status = true;}ifClause0 = "else";}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate363.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.status === undefined) && (missing2 = "status")) || ((data.reserved_nanodollars === undefined) && (missing2 = "reserved_nanodollars"))) || ((data.held_nanodollars === undefined) && (missing2 = "held_nanodollars"))) || ((data.lifetime_seconds === undefined) && (missing2 = "lifetime_seconds"))){validate363.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.status = true;props0.reserved_nanodollars = true;props0.held_nanodollars = true;props0.lifetime_seconds = true;props0.funding = true;props0.first_charged_nanodollars = true;props0.amount_nanodollars = true;props0.returned_nanodollars = true;props0.create_fee_nanodollars = true;props0.basis = true;props0.settled_at = true;props0.corrections = true;}if(data.status !== undefined){const _errs7 = errors;if(typeof data.status !== "string"){validate363.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs7 === errors;}else {var valid4 = true;}if(valid4){if(data.reserved_nanodollars !== undefined){let data9 = data.reserved_nanodollars;const _errs9 = errors;if(errors === _errs9){if(typeof data9 === "string"){if(func1(data9) > 19){validate363.errors = [{instancePath:instancePath+"/reserved_nanodollars",schemaPath:"#/properties/reserved_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data9)){validate363.errors = [{instancePath:instancePath+"/reserved_nanodollars",schemaPath:"#/properties/reserved_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate363.errors = [{instancePath:instancePath+"/reserved_nanodollars",schemaPath:"#/properties/reserved_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs9 === errors;}else {var valid4 = true;}if(valid4){if(data.held_nanodollars !== undefined){let data10 = data.held_nanodollars;const _errs11 = errors;if(errors === _errs11){if(typeof data10 === "string"){if(func1(data10) > 19){validate363.errors = [{instancePath:instancePath+"/held_nanodollars",schemaPath:"#/properties/held_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data10)){validate363.errors = [{instancePath:instancePath+"/held_nanodollars",schemaPath:"#/properties/held_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate363.errors = [{instancePath:instancePath+"/held_nanodollars",schemaPath:"#/properties/held_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs11 === errors;}else {var valid4 = true;}if(valid4){if(data.lifetime_seconds !== undefined){let data11 = data.lifetime_seconds;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid6 = false;const _errs16 = errors;if((!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))) && (data11 !== null)){const err3 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema437.properties.lifetime_seconds.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs16 === errors;valid6 = valid6 || _valid1;const _errs18 = errors;if(typeof data11 !== "bigint"){const err4 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs18 === errors;valid6 = valid6 || _valid1;if(!valid6){const err5 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate363.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid5 = _errs14 === errors;if(valid5){if(typeof data11 === "bigint"){if(data11 < 1){validate363.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data11 == "number") && (isFinite(data11))){if(data11 < 1 || isNaN(data11)){validate363.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid4 = _errs13 === errors;}else {var valid4 = true;}if(valid4){if(data.funding !== undefined){const _errs19 = errors;if(typeof data.funding !== "string"){validate363.errors = [{instancePath:instancePath+"/funding",schemaPath:"#/properties/funding/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data.first_charged_nanodollars !== undefined){let data13 = data.first_charged_nanodollars;const _errs21 = errors;if(errors === _errs21){if(typeof data13 === "string"){if(func1(data13) > 19){validate363.errors = [{instancePath:instancePath+"/first_charged_nanodollars",schemaPath:"#/properties/first_charged_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data13)){validate363.errors = [{instancePath:instancePath+"/first_charged_nanodollars",schemaPath:"#/properties/first_charged_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate363.errors = [{instancePath:instancePath+"/first_charged_nanodollars",schemaPath:"#/properties/first_charged_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data.amount_nanodollars !== undefined){let data14 = data.amount_nanodollars;const _errs23 = errors;if(errors === _errs23){if(typeof data14 === "string"){if(func1(data14) > 19){validate363.errors = [{instancePath:instancePath+"/amount_nanodollars",schemaPath:"#/properties/amount_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data14)){validate363.errors = [{instancePath:instancePath+"/amount_nanodollars",schemaPath:"#/properties/amount_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate363.errors = [{instancePath:instancePath+"/amount_nanodollars",schemaPath:"#/properties/amount_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs23 === errors;}else {var valid4 = true;}if(valid4){if(data.returned_nanodollars !== undefined){let data15 = data.returned_nanodollars;const _errs25 = errors;if(errors === _errs25){if(typeof data15 === "string"){if(func1(data15) > 19){validate363.errors = [{instancePath:instancePath+"/returned_nanodollars",schemaPath:"#/properties/returned_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data15)){validate363.errors = [{instancePath:instancePath+"/returned_nanodollars",schemaPath:"#/properties/returned_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate363.errors = [{instancePath:instancePath+"/returned_nanodollars",schemaPath:"#/properties/returned_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data.create_fee_nanodollars !== undefined){let data16 = data.create_fee_nanodollars;const _errs27 = errors;if(errors === _errs27){if(typeof data16 === "string"){if(func1(data16) > 19){validate363.errors = [{instancePath:instancePath+"/create_fee_nanodollars",schemaPath:"#/properties/create_fee_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data16)){validate363.errors = [{instancePath:instancePath+"/create_fee_nanodollars",schemaPath:"#/properties/create_fee_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate363.errors = [{instancePath:instancePath+"/create_fee_nanodollars",schemaPath:"#/properties/create_fee_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.basis !== undefined){let data17 = data.basis;const _errs29 = errors;if((typeof data17 !== "string") && (data17 !== null)){validate363.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/type",keyword:"type",params:{type: schema437.properties.basis.type},message:"must be string,null"}];return false;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.settled_at !== undefined){let data18 = data.settled_at;const _errs31 = errors;if(errors === _errs31){if(errors === _errs31){if(typeof data18 === "string"){if(!(formats0.validate(data18))){validate363.errors = [{instancePath:instancePath+"/settled_at",schemaPath:"#/properties/settled_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate363.errors = [{instancePath:instancePath+"/settled_at",schemaPath:"#/properties/settled_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.corrections !== undefined){let data19 = data.corrections;const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data19)){if(data19.length > 1000){validate363.errors = [{instancePath:instancePath+"/corrections",schemaPath:"#/properties/corrections/maxItems",keyword:"maxItems",params:{limit: 1000},message:"must NOT have more than 1000 items"}];return false;}else {var valid7 = true;const len0 = data19.length;for(let i0=0; i0<len0; i0++){let data20 = data19[i0];const _errs35 = errors;const _errs36 = errors;if(errors === _errs36){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){let missing3;if((((data20.at === undefined) && (missing3 = "at")) || ((data20.delta_nanodollars === undefined) && (missing3 = "delta_nanodollars"))) || ((data20.reason === undefined) && (missing3 = "reason"))){validate363.errors = [{instancePath:instancePath+"/corrections/" + i0,schemaPath:"#/components/schemas/SandboxChargeCorrection/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data20.at !== undefined){let data21 = data20.at;const _errs38 = errors;if(errors === _errs38){if(errors === _errs38){if(typeof data21 === "string"){if(!(formats0.validate(data21))){validate363.errors = [{instancePath:instancePath+"/corrections/" + i0+"/at",schemaPath:"#/components/schemas/SandboxChargeCorrection/properties/at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate363.errors = [{instancePath:instancePath+"/corrections/" + i0+"/at",schemaPath:"#/components/schemas/SandboxChargeCorrection/properties/at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid9 = _errs38 === errors;}else {var valid9 = true;}if(valid9){if(data20.delta_nanodollars !== undefined){let data22 = data20.delta_nanodollars;const _errs40 = errors;if(errors === _errs40){if(typeof data22 === "string"){if(func1(data22) > 20){validate363.errors = [{instancePath:instancePath+"/corrections/" + i0+"/delta_nanodollars",schemaPath:"#/components/schemas/SandboxChargeCorrection/properties/delta_nanodollars/maxLength",keyword:"maxLength",params:{limit: 20},message:"must NOT have more than 20 characters"}];return false;}else {if(!pattern188.test(data22)){validate363.errors = [{instancePath:instancePath+"/corrections/" + i0+"/delta_nanodollars",schemaPath:"#/components/schemas/SandboxChargeCorrection/properties/delta_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(-?[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(-?[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate363.errors = [{instancePath:instancePath+"/corrections/" + i0+"/delta_nanodollars",schemaPath:"#/components/schemas/SandboxChargeCorrection/properties/delta_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs40 === errors;}else {var valid9 = true;}if(valid9){if(data20.reason !== undefined){const _errs42 = errors;if(typeof data20.reason !== "string"){validate363.errors = [{instancePath:instancePath+"/corrections/" + i0+"/reason",schemaPath:"#/components/schemas/SandboxChargeCorrection/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid9 = _errs42 === errors;}else {var valid9 = true;}}}}}else {validate363.errors = [{instancePath:instancePath+"/corrections/" + i0,schemaPath:"#/components/schemas/SandboxChargeCorrection/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs35 === errors;if(!valid7){break;}}}}else {validate363.errors = [{instancePath:instancePath+"/corrections",schemaPath:"#/properties/corrections/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid4 = _errs33 === errors;}else {var valid4 = true;}}}}}}}}}}}}}}else {validate363.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate363.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate363.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema439 = {"type":"object","required":["provider","class","adapter_version","selection"],"description":"The adapter that made this sandbox. Support questions start at adapter_version. A sandbox\nwith no recorded contract still names its provider and account; its class and\nadapter_version are null.\n","properties":{"id":{"type":["string","null"]},"provider":{"type":"string"},"class":{"type":["string","null"],"description":"The declaration's class, such as a provider's VM class; null when the adapter publishes one declaration."},"adapter_version":{"type":["string","null"]},"account_id":{"type":["string","null"]},"supply":{"type":["string","null"]},"region":{"type":["string","null"]},"native_id":{"type":["string","null"],"description":"Provider-owned sandbox identifier; null when unavailable."},"selection":{"anyOf":[{"$ref":"#/components/schemas/SandboxRouteSelection"},{"type":"null"}],"description":"Null in listings, which look at no route."}}};const schema440 = {"type":"object","required":["considered","eligible","ranked_by","excluded","attempts"],"description":"Which routes were considered, how they were ranked and why each other one was excluded.","properties":{"considered":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"eligible":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"ranked_by":{"type":["string","null"],"enum":["price","time","providers","order",null],"x-boxrouter-choices":{"price":{"label":"Price","line":"Lowest hourly price first.","measure":"price","better":"lower"},"time":{"label":"Time","line":"Shortest run time measured on reference workloads first.","measure":"time","better":"lower"},"providers":{"label":"Providers","line":"The hard list order."},"order":{"label":"Order","line":"A soft provider preference."}},"description":"The sort used; providers for the hard list order; order for a soft provider preference; or null for the router's default."},"excluded":{"type":"array","items":{"$ref":"#/components/schemas/ExcludedRoute"}},"preparation_skips":{"type":"array","description":"Routes skipped after eligibility because image or provider preparation failed.","items":{"$ref":"#/components/schemas/CreationPreparationSkip"}},"attempts":{"type":"array","description":"Adapters that refused this create before the one that made it, in dispatch order. Only\ndispatches appear; routes skipped before dispatch are in `excluded`. Normally empty:\nBoxRouter tries the next eligible adapter once when a refusal is definite.\n","items":{"type":"object","required":["provider","native_code","native_status"],"properties":{"provider":{"type":"string"},"native_code":{"type":["string","null"]},"native_status":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"route_id":{"type":["string","null"],"maxLength":128,"description":"The route this dispatch used."},"account_id":{"type":["string","null"],"maxLength":128,"description":"The connected account this dispatch used."},"supply":{"type":["string","null"],"maxLength":32,"description":"The funding authority of this dispatch: byok or managed."},"cause":{"$ref":"#/components/schemas/CreationRouteCause"}}}},"fallbacks_allowed":{"type":"boolean","description":"The effective allow_fallbacks after inheritance. Absent when the create predates this field."},"stopped_reason":{"$ref":"#/components/schemas/CreationStoppedReason"},"funding_group":{"$ref":"#/components/schemas/FundingGroup","description":"Frozen payer group of the selected route. Absent on older responses; definite pre-create fallback stays in this group after dispatch."},"workspace_mode":{"type":"string","x-boxrouter-open-enum":true,"x-boxrouter-choices":{"automatic":{"label":"Auto","line":"A random draw weighted toward lower hourly price."},"cheapest":{"label":"Cheapest","line":"Lowest hourly price first.","measure":"price","better":"lower"},"fastest":{"label":"Fastest","line":"Shortest run time measured on reference workloads first.","measure":"time","better":"lower"},"custom":{"label":"Custom","line":"Your exact provider order, top to bottom."}},"description":"Effective workspace mode at admission; absent on older responses."}}};const schema176 = {"type":"string","minLength":1,"maxLength":64,"x-boxrouter-open-enum":true,"description":"Why one route did not create the sandbox, in a bounded word: `key_rejected` (the provider\nrefused the saved key), `plan_unbuildable` (the route matched but its create could not be\nbuilt), `privacy_denied` (the workspace's privacy settings refused the route),\n`not_ready` (the route's provider session was not ready in time), `not_dispatched`\n(refused locally before any provider call) and `provider_create_failed` (the provider was\nasked and the create failed). Clients must tolerate values they do not know.\n"};const schema171 = {"type":["string","null"],"x-boxrouter-open-enum":true,"description":"Why creation stopped dispatching further routes: `fallbacks_disabled` (allow_fallbacks was\nfalse and the one permitted dispatch was refused), `no_eligible_route` (every remaining\nroute was excluded), `uncertain_outcome` (a dispatch may have allocated; never retried, reconcile\nwith the operation), `authority_changed` (account, funding or privacy authority no longer\npermits the next route), `deadline_reached` and `cancelled`. Null when a route created the\nsandbox. Clients must tolerate values they do not know.\n"};const schema172 = {"type":"string","x-boxrouter-open-enum":true,"description":"The frozen payer group; no cross-group retry after a dispatch refusal at launch."};const schema441 = {"type":"object","required":["provider","class","account_id","failed"],"description":"One candidate that was not eligible, with every check it failed.","properties":{"provider":{"type":"string"},"class":{"type":["string","null"]},"account_id":{"type":["string","null"]},"failed":{"type":"array","items":{"$ref":"#/components/schemas/FailedCheck"}}}};const schema442 = {"type":"object","required":["reason"],"description":"One failed check, in the order they are made: baseline, then the gates in the spec's\norder with extras last, then conflicts, resources and basis.\n","properties":{"reason":{"type":"string","description":"gate_not_listed, gate_unsupported, gate_unavailable, knob_mismatch, knob_unknown,\nconflict, resource_mismatch, resource_unknown, not_proven, limit_exceeded,\nbound_elsewhere, extra_mismatch, declaration_unusable, variant_unusable,\nbaseline_failed, account_unchecked, account_unhealthy, standard_image_unavailable,\nnot_allowed, `not connected`, `not enabled`, price_unknown, insufficient_credit,\nspend_limit_exceeded, outside_funding_authority, unfunded or class_not_selected.\n`standard_image_unavailable` means the account has no verified copy of the standard image\nfor the route's exact region, image version and digest; its `fix` field gives the setup fix.\nIt is distinct from `baseline_failed`, which means the provider cannot meet the requested\ncontract. `price_unknown` means the payer's price is unknown; `insufficient_credit` means\nthe payer has fewer credits than required; `spend_limit_exceeded` means the applicable\nspend limit prevents the request. These typed funding refusals apply only when a payer\nexists. `unfunded` means no provider key and no credits, not merely zero available credits.\n`outside_funding_authority` means the matched route is outside the funding ceiling selected\nfor this request. `not connected` means the provider is served by this deployment but no\naccount is connected to this workspace; `not enabled` means the provider is not served by\nthis deployment. `class_not_selected` means a matched sibling class lost the\none-class-per-route selection while its route remains inside the authority ceiling; it\nexcludes the class, not the route. Clients must tolerate reasons they do not know.\n"},"gate":{"type":"string"},"knob":{"type":"string"},"resource":{"type":"string"},"extra":{"type":"string"},"limit":{"type":"string"},"detail":{"type":["string","null"]},"details":{"type":"object","description":"Structured facts for the refusal, such as available and required credits or the applicable\nspend limit.\n","additionalProperties":true},"fix":{"type":["string","null"],"description":"Setup action for this failed check, when one is available."},"asked":{"description":"What the request asked for, in the request's own form."},"offered":{"description":"What the declaration offers, in the declaration's own form."},"narrowed_by":{"type":["string","null"],"enum":["account",null]},"between":{"type":"array","items":{"type":"string"}},"value":{"description":"The one value that caused the failure, when one did."}}};function validate369(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate369.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.reason === undefined) && (missing0 = "reason")){validate369.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.reason !== undefined){const _errs1 = errors;if(typeof data.reason !== "string"){validate369.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.gate !== undefined){const _errs3 = errors;if(typeof data.gate !== "string"){validate369.errors = [{instancePath:instancePath+"/gate",schemaPath:"#/properties/gate/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.knob !== undefined){const _errs5 = errors;if(typeof data.knob !== "string"){validate369.errors = [{instancePath:instancePath+"/knob",schemaPath:"#/properties/knob/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.resource !== undefined){const _errs7 = errors;if(typeof data.resource !== "string"){validate369.errors = [{instancePath:instancePath+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.extra !== undefined){const _errs9 = errors;if(typeof data.extra !== "string"){validate369.errors = [{instancePath:instancePath+"/extra",schemaPath:"#/properties/extra/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.limit !== undefined){const _errs11 = errors;if(typeof data.limit !== "string"){validate369.errors = [{instancePath:instancePath+"/limit",schemaPath:"#/properties/limit/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.detail !== undefined){let data6 = data.detail;const _errs13 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate369.errors = [{instancePath:instancePath+"/detail",schemaPath:"#/properties/detail/type",keyword:"type",params:{type: schema442.properties.detail.type},message:"must be string,null"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.details !== undefined){let data7 = data.details;const _errs15 = errors;if(errors === _errs15){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){}else {validate369.errors = [{instancePath:instancePath+"/details",schemaPath:"#/properties/details/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.fix !== undefined){let data8 = data.fix;const _errs18 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate369.errors = [{instancePath:instancePath+"/fix",schemaPath:"#/properties/fix/type",keyword:"type",params:{type: schema442.properties.fix.type},message:"must be string,null"}];return false;}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.narrowed_by !== undefined){let data9 = data.narrowed_by;const _errs20 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate369.errors = [{instancePath:instancePath+"/narrowed_by",schemaPath:"#/properties/narrowed_by/type",keyword:"type",params:{type: schema442.properties.narrowed_by.type},message:"must be string,null"}];return false;}if(!((data9 === "account") || (data9 === null))){validate369.errors = [{instancePath:instancePath+"/narrowed_by",schemaPath:"#/properties/narrowed_by/enum",keyword:"enum",params:{allowedValues: schema442.properties.narrowed_by.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.between !== undefined){let data10 = data.between;const _errs22 = errors;if(errors === _errs22){if(Array.isArray(data10)){var valid1 = true;const len0 = data10.length;for(let i0=0; i0<len0; i0++){const _errs24 = errors;if(typeof data10[i0] !== "string"){validate369.errors = [{instancePath:instancePath+"/between/" + i0,schemaPath:"#/properties/between/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs24 === errors;if(!valid1){break;}}}else {validate369.errors = [{instancePath:instancePath+"/between",schemaPath:"#/properties/between/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}}}}}}else {validate369.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate369.errors = vErrors;return errors === 0;}validate369.evaluated = {"props":{"reason":true,"gate":true,"knob":true,"resource":true,"extra":true,"limit":true,"detail":true,"details":true,"fix":true,"asked":true,"offered":true,"narrowed_by":true,"between":true,"value":true},"dynamicProps":false,"dynamicItems":false};function validate368(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate368.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.provider === undefined) && (missing0 = "provider")) || ((data.class === undefined) && (missing0 = "class"))) || ((data.account_id === undefined) && (missing0 = "account_id"))) || ((data.failed === undefined) && (missing0 = "failed"))){validate368.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.provider !== undefined){const _errs1 = errors;if(typeof data.provider !== "string"){validate368.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.class !== undefined){let data1 = data.class;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate368.errors = [{instancePath:instancePath+"/class",schemaPath:"#/properties/class/type",keyword:"type",params:{type: schema441.properties.class.type},message:"must be string,null"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.account_id !== undefined){let data2 = data.account_id;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate368.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema441.properties.account_id.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.failed !== undefined){let data3 = data.failed;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){var valid1 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(!(validate369(data3[i0], {instancePath:instancePath+"/failed/" + i0,parentData:data3,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate369.errors : vErrors.concat(validate369.errors);errors = vErrors.length;}var valid1 = _errs9 === errors;if(!valid1){break;}}}else {validate368.errors = [{instancePath:instancePath+"/failed",schemaPath:"#/properties/failed/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate368.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate368.errors = vErrors;return errors === 0;}validate368.evaluated = {"props":{"provider":true,"class":true,"account_id":true,"failed":true},"dynamicProps":false,"dynamicItems":false};const schema237 = {"type":"object","required":["provider","reason_code"],"description":"A route skipped locally before any provider dispatch. It is not an attempt.","properties":{"provider":{"type":"string","minLength":1},"route_id":{"type":["string","null"],"maxLength":128,"description":"The route that was skipped."},"account_id":{"type":["string","null"],"maxLength":128,"description":"The connected account of the skipped route."},"reason_code":{"type":"string","minLength":1},"cause":{"$ref":"#/components/schemas/CreationRouteCause"}}};function validate229(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate229.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.provider === undefined) && (missing0 = "provider")) || ((data.reason_code === undefined) && (missing0 = "reason_code"))){validate229.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.provider !== undefined){let data0 = data.provider;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate229.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate229.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.route_id !== undefined){let data1 = data.route_id;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate229.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema237.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate229.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.account_id !== undefined){let data2 = data.account_id;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate229.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema237.properties.account_id.type},message:"must be string,null"}];return false;}if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate229.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data3 = data.reason_code;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) < 1){validate229.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate229.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.cause !== undefined){let data4 = data.cause;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data4 === "string"){if(func1(data4) > 64){validate229.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data4) < 1){validate229.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate229.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}}}else {validate229.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate229.errors = vErrors;return errors === 0;}validate229.evaluated = {"props":{"provider":true,"route_id":true,"account_id":true,"reason_code":true,"cause":true},"dynamicProps":false,"dynamicItems":false};function validate367(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate367.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.considered === undefined) && (missing0 = "considered")) || ((data.eligible === undefined) && (missing0 = "eligible"))) || ((data.ranked_by === undefined) && (missing0 = "ranked_by"))) || ((data.excluded === undefined) && (missing0 = "excluded"))) || ((data.attempts === undefined) && (missing0 = "attempts"))){validate367.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.considered !== undefined){let data0 = data.considered;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate367.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate367.errors = [{instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate367.errors = [{instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.eligible !== undefined){let data1 = data.eligible;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/eligible",schemaPath:"#/properties/eligible/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/eligible",schemaPath:"#/properties/eligible/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/eligible",schemaPath:"#/properties/eligible/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate367.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 0){validate367.errors = [{instancePath:instancePath+"/eligible",schemaPath:"#/properties/eligible/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate367.errors = [{instancePath:instancePath+"/eligible",schemaPath:"#/properties/eligible/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.ranked_by !== undefined){let data2 = data.ranked_by;const _errs13 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate367.errors = [{instancePath:instancePath+"/ranked_by",schemaPath:"#/properties/ranked_by/type",keyword:"type",params:{type: schema440.properties.ranked_by.type},message:"must be string,null"}];return false;}if(!(((((data2 === "price") || (data2 === "time")) || (data2 === "providers")) || (data2 === "order")) || (data2 === null))){validate367.errors = [{instancePath:instancePath+"/ranked_by",schemaPath:"#/properties/ranked_by/enum",keyword:"enum",params:{allowedValues: schema440.properties.ranked_by.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.excluded !== undefined){let data3 = data.excluded;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data3)){var valid5 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){const _errs17 = errors;if(!(validate368(data3[i0], {instancePath:instancePath+"/excluded/" + i0,parentData:data3,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate368.errors : vErrors.concat(validate368.errors);errors = vErrors.length;}var valid5 = _errs17 === errors;if(!valid5){break;}}}else {validate367.errors = [{instancePath:instancePath+"/excluded",schemaPath:"#/properties/excluded/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.preparation_skips !== undefined){let data5 = data.preparation_skips;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data5)){var valid6 = true;const len1 = data5.length;for(let i1=0; i1<len1; i1++){const _errs20 = errors;if(!(validate229(data5[i1], {instancePath:instancePath+"/preparation_skips/" + i1,parentData:data5,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate229.errors : vErrors.concat(validate229.errors);errors = vErrors.length;}var valid6 = _errs20 === errors;if(!valid6){break;}}}else {validate367.errors = [{instancePath:instancePath+"/preparation_skips",schemaPath:"#/properties/preparation_skips/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.attempts !== undefined){let data7 = data.attempts;const _errs21 = errors;if(errors === _errs21){if(Array.isArray(data7)){var valid7 = true;const len2 = data7.length;for(let i2=0; i2<len2; i2++){let data8 = data7[i2];const _errs23 = errors;if(errors === _errs23){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing1;if((((data8.provider === undefined) && (missing1 = "provider")) || ((data8.native_code === undefined) && (missing1 = "native_code"))) || ((data8.native_status === undefined) && (missing1 = "native_status"))){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2,schemaPath:"#/properties/attempts/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data8.provider !== undefined){const _errs25 = errors;if(typeof data8.provider !== "string"){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/provider",schemaPath:"#/properties/attempts/items/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs25 === errors;}else {var valid8 = true;}if(valid8){if(data8.native_code !== undefined){let data10 = data8.native_code;const _errs27 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/native_code",schemaPath:"#/properties/attempts/items/properties/native_code/type",keyword:"type",params:{type: schema440.properties.attempts.items.properties.native_code.type},message:"must be string,null"}];return false;}var valid8 = _errs27 === errors;}else {var valid8 = true;}if(valid8){if(data8.native_status !== undefined){let data11 = data8.native_status;const _errs29 = errors;const _errs31 = errors;let valid10 = false;const _errs32 = errors;if((!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))) && (data11 !== null)){const err6 = {instancePath:instancePath+"/attempts/" + i2+"/native_status",schemaPath:"#/properties/attempts/items/properties/native_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema440.properties.attempts.items.properties.native_status.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs32 === errors;valid10 = valid10 || _valid2;const _errs34 = errors;if(typeof data11 !== "bigint"){const err7 = {instancePath:instancePath+"/attempts/" + i2+"/native_status",schemaPath:"#/properties/attempts/items/properties/native_status/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs34 === errors;valid10 = valid10 || _valid2;if(!valid10){const err8 = {instancePath:instancePath+"/attempts/" + i2+"/native_status",schemaPath:"#/properties/attempts/items/properties/native_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate367.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid8 = _errs29 === errors;}else {var valid8 = true;}if(valid8){if(data8.route_id !== undefined){let data12 = data8.route_id;const _errs35 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/route_id",schemaPath:"#/properties/attempts/items/properties/route_id/type",keyword:"type",params:{type: schema440.properties.attempts.items.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs35){if(typeof data12 === "string"){if(func1(data12) > 128){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/route_id",schemaPath:"#/properties/attempts/items/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid8 = _errs35 === errors;}else {var valid8 = true;}if(valid8){if(data8.account_id !== undefined){let data13 = data8.account_id;const _errs37 = errors;if((typeof data13 !== "string") && (data13 !== null)){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/account_id",schemaPath:"#/properties/attempts/items/properties/account_id/type",keyword:"type",params:{type: schema440.properties.attempts.items.properties.account_id.type},message:"must be string,null"}];return false;}if(errors === _errs37){if(typeof data13 === "string"){if(func1(data13) > 128){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/account_id",schemaPath:"#/properties/attempts/items/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid8 = _errs37 === errors;}else {var valid8 = true;}if(valid8){if(data8.supply !== undefined){let data14 = data8.supply;const _errs39 = errors;if((typeof data14 !== "string") && (data14 !== null)){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/supply",schemaPath:"#/properties/attempts/items/properties/supply/type",keyword:"type",params:{type: schema440.properties.attempts.items.properties.supply.type},message:"must be string,null"}];return false;}if(errors === _errs39){if(typeof data14 === "string"){if(func1(data14) > 32){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/supply",schemaPath:"#/properties/attempts/items/properties/supply/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"}];return false;}}}var valid8 = _errs39 === errors;}else {var valid8 = true;}if(valid8){if(data8.cause !== undefined){let data15 = data8.cause;const _errs41 = errors;const _errs42 = errors;if(errors === _errs42){if(typeof data15 === "string"){if(func1(data15) > 64){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data15) < 1){validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate367.errors = [{instancePath:instancePath+"/attempts/" + i2+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs41 === errors;}else {var valid8 = true;}}}}}}}}}else {validate367.errors = [{instancePath:instancePath+"/attempts/" + i2,schemaPath:"#/properties/attempts/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs23 === errors;if(!valid7){break;}}}else {validate367.errors = [{instancePath:instancePath+"/attempts",schemaPath:"#/properties/attempts/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.fallbacks_allowed !== undefined){const _errs44 = errors;if(typeof data.fallbacks_allowed !== "boolean"){validate367.errors = [{instancePath:instancePath+"/fallbacks_allowed",schemaPath:"#/properties/fallbacks_allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs44 === errors;}else {var valid0 = true;}if(valid0){if(data.stopped_reason !== undefined){let data17 = data.stopped_reason;const _errs46 = errors;if((typeof data17 !== "string") && (data17 !== null)){validate367.errors = [{instancePath:instancePath+"/stopped_reason",schemaPath:"#/components/schemas/CreationStoppedReason/type",keyword:"type",params:{type: schema171.type},message:"must be string,null"}];return false;}var valid0 = _errs46 === errors;}else {var valid0 = true;}if(valid0){if(data.funding_group !== undefined){const _errs49 = errors;if(typeof data.funding_group !== "string"){validate367.errors = [{instancePath:instancePath+"/funding_group",schemaPath:"#/components/schemas/FundingGroup/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs49 === errors;}else {var valid0 = true;}if(valid0){if(data.workspace_mode !== undefined){const _errs52 = errors;if(typeof data.workspace_mode !== "string"){validate367.errors = [{instancePath:instancePath+"/workspace_mode",schemaPath:"#/properties/workspace_mode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs52 === errors;}else {var valid0 = true;}}}}}}}}}}}}else {validate367.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate367.errors = vErrors;return errors === 0;}validate367.evaluated = {"props":{"considered":true,"eligible":true,"ranked_by":true,"excluded":true,"preparation_skips":true,"attempts":true,"fallbacks_allowed":true,"stopped_reason":true,"funding_group":true,"workspace_mode":true},"dynamicProps":false,"dynamicItems":false};function validate366(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate366.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.provider === undefined) && (missing0 = "provider")) || ((data.class === undefined) && (missing0 = "class"))) || ((data.adapter_version === undefined) && (missing0 = "adapter_version"))) || ((data.selection === undefined) && (missing0 = "selection"))){validate366.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if((typeof data0 !== "string") && (data0 !== null)){validate366.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: schema439.properties.id.type},message:"must be string,null"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){const _errs3 = errors;if(typeof data.provider !== "string"){validate366.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.class !== undefined){let data2 = data.class;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate366.errors = [{instancePath:instancePath+"/class",schemaPath:"#/properties/class/type",keyword:"type",params:{type: schema439.properties.class.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.adapter_version !== undefined){let data3 = data.adapter_version;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate366.errors = [{instancePath:instancePath+"/adapter_version",schemaPath:"#/properties/adapter_version/type",keyword:"type",params:{type: schema439.properties.adapter_version.type},message:"must be string,null"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.account_id !== undefined){let data4 = data.account_id;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate366.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema439.properties.account_id.type},message:"must be string,null"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.supply !== undefined){let data5 = data.supply;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate366.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: schema439.properties.supply.type},message:"must be string,null"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.region !== undefined){let data6 = data.region;const _errs13 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate366.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: schema439.properties.region.type},message:"must be string,null"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.native_id !== undefined){let data7 = data.native_id;const _errs15 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate366.errors = [{instancePath:instancePath+"/native_id",schemaPath:"#/properties/native_id/type",keyword:"type",params:{type: schema439.properties.native_id.type},message:"must be string,null"}];return false;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.selection !== undefined){let data8 = data.selection;const _errs17 = errors;const _errs18 = errors;let valid1 = false;const _errs19 = errors;if(!(validate367(data8, {instancePath:instancePath+"/selection",parentData:data,parentDataProperty:"selection",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate367.errors : vErrors.concat(validate367.errors);errors = vErrors.length;}var _valid0 = _errs19 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.considered = true;props0.eligible = true;props0.ranked_by = true;props0.excluded = true;props0.preparation_skips = true;props0.attempts = true;props0.fallbacks_allowed = true;props0.stopped_reason = true;props0.funding_group = true;props0.workspace_mode = true;}const _errs20 = errors;if(data8 !== null){const err0 = {instancePath:instancePath+"/selection",schemaPath:"#/properties/selection/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs20 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/selection",schemaPath:"#/properties/selection/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate366.errors = vErrors;return false;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate366.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate366.errors = vErrors;return errors === 0;}validate366.evaluated = {"props":{"id":true,"provider":true,"class":true,"adapter_version":true,"account_id":true,"supply":true,"region":true,"native_id":true,"selection":true},"dynamicProps":false,"dynamicItems":false};const schema446 = {"type":"object","required":["spec_version","gates","resources","attested"],"description":"What this sandbox may use, fixed at creation. No gate is ever added to a running sandbox.","properties":{"spec_version":{"type":"string","pattern":"^(boxspec|sandbox-provider-spec)/[0-9]+\\.[0-9]+(-draft(\\.[0-9]+)?)?$"},"gates":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/GrantedGate"}},"resources":{"type":"object","additionalProperties":true,"description":"What was provisioned, plus the adapter's answers for long_running and extendable_lifetime. A value may be \"unknown\" or null."},"attested":{"type":"object","description":"Which resource values rest on a dated citation rather than on adapter code.","additionalProperties":{"type":"object","required":["source","read"],"properties":{"source":{"type":"string"},"read":{"type":"string","format":"date"}}}}}};const pattern253 = new RegExp("^(boxspec|sandbox-provider-spec)/[0-9]+\\.[0-9]+(-draft(\\.[0-9]+)?)?$", "u");const schema447 = {"type":"object","required":["variant","basis","granted","also","settings","unavailable"],"description":"One gate as granted to this sandbox.","properties":{"variant":{"minimum":0,"description":"Index into the declaration of route.adapter_version. Only meaningful with that version.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"basis":{"type":"string","enum":["implemented","proven"],"description":"The weakest basis among the granted values; for a gate granted with no named knob, the variant's own."},"granted":{"type":"object","additionalProperties":true,"description":"One entry per knob the request named: the granted values for a pick-one knob, the\nstring \"any\" where the request said so, the boolean for a yes/no knob, the declared\nnumber for a number knob. This is what the code may rely on.\n"},"also":{"type":"object","additionalProperties":true,"description":"The variant's other answers, including declared limits, for information. Calls that depend on them are refused."},"settings":{"type":"object","additionalProperties":true},"unavailable":{"type":["string","null"],"description":"Set when the account has since lost the gate; that gate's calls then answer gate_unavailable."}}};function validate376(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate376.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((data.variant === undefined) && (missing0 = "variant")) || ((data.basis === undefined) && (missing0 = "basis"))) || ((data.granted === undefined) && (missing0 = "granted"))) || ((data.also === undefined) && (missing0 = "also"))) || ((data.settings === undefined) && (missing0 = "settings"))) || ((data.unavailable === undefined) && (missing0 = "unavailable"))){validate376.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.variant !== undefined){let data0 = data.variant;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate376.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate376.errors = [{instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate376.errors = [{instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.basis !== undefined){let data1 = data.basis;const _errs7 = errors;if(typeof data1 !== "string"){validate376.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "implemented") || (data1 === "proven"))){validate376.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/enum",keyword:"enum",params:{allowedValues: schema447.properties.basis.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.granted !== undefined){let data2 = data.granted;const _errs9 = errors;if(errors === _errs9){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){}else {validate376.errors = [{instancePath:instancePath+"/granted",schemaPath:"#/properties/granted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.also !== undefined){let data3 = data.also;const _errs12 = errors;if(errors === _errs12){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){}else {validate376.errors = [{instancePath:instancePath+"/also",schemaPath:"#/properties/also/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined){let data4 = data.settings;const _errs15 = errors;if(errors === _errs15){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){}else {validate376.errors = [{instancePath:instancePath+"/settings",schemaPath:"#/properties/settings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.unavailable !== undefined){let data5 = data.unavailable;const _errs18 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate376.errors = [{instancePath:instancePath+"/unavailable",schemaPath:"#/properties/unavailable/type",keyword:"type",params:{type: schema447.properties.unavailable.type},message:"must be string,null"}];return false;}var valid0 = _errs18 === errors;}else {var valid0 = true;}}}}}}}}else {validate376.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate376.errors = vErrors;return errors === 0;}validate376.evaluated = {"props":{"variant":true,"basis":true,"granted":true,"also":true,"settings":true,"unavailable":true},"dynamicProps":false,"dynamicItems":false};function validate375(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate375.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.spec_version === undefined) && (missing0 = "spec_version")) || ((data.gates === undefined) && (missing0 = "gates"))) || ((data.resources === undefined) && (missing0 = "resources"))) || ((data.attested === undefined) && (missing0 = "attested"))){validate375.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.spec_version !== undefined){let data0 = data.spec_version;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(!pattern253.test(data0)){validate375.errors = [{instancePath:instancePath+"/spec_version",schemaPath:"#/properties/spec_version/pattern",keyword:"pattern",params:{pattern: "^(boxspec|sandbox-provider-spec)/[0-9]+\\.[0-9]+(-draft(\\.[0-9]+)?)?$"},message:"must match pattern \""+"^(boxspec|sandbox-provider-spec)/[0-9]+\\.[0-9]+(-draft(\\.[0-9]+)?)?$"+"\""}];return false;}}else {validate375.errors = [{instancePath:instancePath+"/spec_version",schemaPath:"#/properties/spec_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.gates !== undefined){let data1 = data.gates;const _errs3 = errors;if(errors === _errs3){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){for(const key0 in data1){const _errs6 = errors;if(!(validate376(data1[key0], {instancePath:instancePath+"/gates/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data1,parentDataProperty:key0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate376.errors : vErrors.concat(validate376.errors);errors = vErrors.length;}var valid1 = _errs6 === errors;if(!valid1){break;}}}else {validate375.errors = [{instancePath:instancePath+"/gates",schemaPath:"#/properties/gates/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.resources !== undefined){let data3 = data.resources;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){}else {validate375.errors = [{instancePath:instancePath+"/resources",schemaPath:"#/properties/resources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.attested !== undefined){let data4 = data.attested;const _errs10 = errors;if(errors === _errs10){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key1 in data4){let data5 = data4[key1];const _errs13 = errors;if(errors === _errs13){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if(((data5.source === undefined) && (missing1 = "source")) || ((data5.read === undefined) && (missing1 = "read"))){validate375.errors = [{instancePath:instancePath+"/attested/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/attested/additionalProperties/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data5.source !== undefined){const _errs15 = errors;if(typeof data5.source !== "string"){validate375.errors = [{instancePath:instancePath+"/attested/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/source",schemaPath:"#/properties/attested/additionalProperties/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data5.read !== undefined){const _errs17 = errors;if(errors === _errs17){if(errors === _errs17){if(!(typeof data5.read === "string")){validate375.errors = [{instancePath:instancePath+"/attested/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/read",schemaPath:"#/properties/attested/additionalProperties/properties/read/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid3 = _errs17 === errors;}else {var valid3 = true;}}}}else {validate375.errors = [{instancePath:instancePath+"/attested/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/attested/additionalProperties/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs13 === errors;if(!valid2){break;}}}else {validate375.errors = [{instancePath:instancePath+"/attested",schemaPath:"#/properties/attested/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}}}}}}else {validate375.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate375.errors = vErrors;return errors === 0;}validate375.evaluated = {"props":{"spec_version":true,"gates":true,"resources":true,"attested":true},"dynamicProps":false,"dynamicItems":false};const schema450 = {"type":"object","required":["placeholder","hosts"],"properties":{"placeholder":{"type":"string","minLength":1,"description":"The safe token to place where this secret should be used."},"hosts":{"type":"array","uniqueItems":true,"items":{"allOf":[{"$ref":"#/components/schemas/SandboxProviderSpecHostname"},{"type":"string"}]},"description":"Hosts to which the adapter sends this secret."}}};const schema65 = {"type":"string","anyOf":[{"pattern":"^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},{"pattern":"^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"}]};const func0 = require("ajv/dist/runtime/equal").default;const pattern27 = new RegExp("^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])", "u");const pattern28 = new RegExp("^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])", "u");function validate379(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate379.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.placeholder === undefined) && (missing0 = "placeholder")) || ((data.hosts === undefined) && (missing0 = "hosts"))){validate379.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.placeholder !== undefined){let data0 = data.placeholder;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate379.errors = [{instancePath:instancePath+"/placeholder",schemaPath:"#/properties/placeholder/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate379.errors = [{instancePath:instancePath+"/placeholder",schemaPath:"#/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.hosts !== undefined){let data1 = data.hosts;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs5 = errors;const _errs6 = errors;if(typeof data2 !== "string"){validate379.errors = [{instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(typeof data2 === "string"){if(!pattern27.test(data2)){const err0 = {instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},message:"must match pattern \""+"^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"+"\""};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs10 === errors;valid4 = valid4 || _valid0;const _errs11 = errors;if(typeof data2 === "string"){if(!pattern28.test(data2)){const err1 = {instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},message:"must match pattern \""+"^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"+"\""};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs11 === errors;valid4 = valid4 || _valid0;if(!valid4){const err2 = {instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate379.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid2 = _errs6 === errors;if(valid2){const _errs12 = errors;if(typeof data2 !== "string"){validate379.errors = [{instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/properties/hosts/items/allOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs12 === errors;}var valid1 = _errs5 === errors;if(!valid1){break;}}if(valid1){let i1 = data1.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data1[i1], data1[j0])){validate379.errors = [{instancePath:instancePath+"/hosts",schemaPath:"#/properties/hosts/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}else {validate379.errors = [{instancePath:instancePath+"/hosts",schemaPath:"#/properties/hosts/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate379.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate379.errors = vErrors;return errors === 0;}validate379.evaluated = {"props":{"placeholder":true,"hosts":true},"dynamicProps":false,"dynamicItems":false};const schema453 = {"type":"object","properties":{"buffered_output_bytes":{"minimum":1,"description":"Maximum combined stdout/stderr for the buffered command endpoint.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"file_transfer_bytes":{"minimum":1,"default":1048576,"description":"Maximum file size of `readFile` and `writeFile` on this route.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"upload_max_bytes":{"minimum":0,"description":"Per route, the largest file `createSandboxUpload` accepts.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"download_max_bytes":{"minimum":0,"description":"Per route, the largest file `createSandboxDownload` accepts.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"inline_transfer_max_bytes":{"minimum":1,"description":"Largest file this route serves inline in one createSandboxDownload (send\n`inline_below`) or relays for upload, cheaper than its transfer link;\nabsent when the route has none.\n","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}};function validate381(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate381.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.buffered_output_bytes !== undefined){let data0 = data.buffered_output_bytes;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/buffered_output_bytes",schemaPath:"#/properties/buffered_output_bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/buffered_output_bytes",schemaPath:"#/properties/buffered_output_bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/buffered_output_bytes",schemaPath:"#/properties/buffered_output_bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate381.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 1){validate381.errors = [{instancePath:instancePath+"/buffered_output_bytes",schemaPath:"#/properties/buffered_output_bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 1 || isNaN(data0)){validate381.errors = [{instancePath:instancePath+"/buffered_output_bytes",schemaPath:"#/properties/buffered_output_bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.file_transfer_bytes !== undefined){let data1 = data.file_transfer_bytes;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/file_transfer_bytes",schemaPath:"#/properties/file_transfer_bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/file_transfer_bytes",schemaPath:"#/properties/file_transfer_bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/file_transfer_bytes",schemaPath:"#/properties/file_transfer_bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate381.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 1){validate381.errors = [{instancePath:instancePath+"/file_transfer_bytes",schemaPath:"#/properties/file_transfer_bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){validate381.errors = [{instancePath:instancePath+"/file_transfer_bytes",schemaPath:"#/properties/file_transfer_bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.upload_max_bytes !== undefined){let data2 = data.upload_max_bytes;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid6 = false;const _errs16 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/upload_max_bytes",schemaPath:"#/properties/upload_max_bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs16 === errors;valid6 = valid6 || _valid2;const _errs18 = errors;if(typeof data2 !== "bigint"){const err7 = {instancePath:instancePath+"/upload_max_bytes",schemaPath:"#/properties/upload_max_bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs18 === errors;valid6 = valid6 || _valid2;if(!valid6){const err8 = {instancePath:instancePath+"/upload_max_bytes",schemaPath:"#/properties/upload_max_bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate381.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid5 = _errs14 === errors;if(valid5){if(typeof data2 === "bigint"){if(data2 < 0){validate381.errors = [{instancePath:instancePath+"/upload_max_bytes",schemaPath:"#/properties/upload_max_bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){validate381.errors = [{instancePath:instancePath+"/upload_max_bytes",schemaPath:"#/properties/upload_max_bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.download_max_bytes !== undefined){let data3 = data.download_max_bytes;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid8 = false;const _errs22 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err9 = {instancePath:instancePath+"/download_max_bytes",schemaPath:"#/properties/download_max_bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs22 === errors;valid8 = valid8 || _valid3;const _errs24 = errors;if(typeof data3 !== "bigint"){const err10 = {instancePath:instancePath+"/download_max_bytes",schemaPath:"#/properties/download_max_bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs24 === errors;valid8 = valid8 || _valid3;if(!valid8){const err11 = {instancePath:instancePath+"/download_max_bytes",schemaPath:"#/properties/download_max_bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate381.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid7 = _errs20 === errors;if(valid7){if(typeof data3 === "bigint"){if(data3 < 0){validate381.errors = [{instancePath:instancePath+"/download_max_bytes",schemaPath:"#/properties/download_max_bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs19){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate381.errors = [{instancePath:instancePath+"/download_max_bytes",schemaPath:"#/properties/download_max_bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.inline_transfer_max_bytes !== undefined){let data4 = data.inline_transfer_max_bytes;const _errs25 = errors;const _errs26 = errors;const _errs27 = errors;let valid10 = false;const _errs28 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err12 = {instancePath:instancePath+"/inline_transfer_max_bytes",schemaPath:"#/properties/inline_transfer_max_bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid4 = _errs28 === errors;valid10 = valid10 || _valid4;const _errs30 = errors;if(typeof data4 !== "bigint"){const err13 = {instancePath:instancePath+"/inline_transfer_max_bytes",schemaPath:"#/properties/inline_transfer_max_bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs30 === errors;valid10 = valid10 || _valid4;if(!valid10){const err14 = {instancePath:instancePath+"/inline_transfer_max_bytes",schemaPath:"#/properties/inline_transfer_max_bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate381.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid9 = _errs26 === errors;if(valid9){if(typeof data4 === "bigint"){if(data4 < 1){validate381.errors = [{instancePath:instancePath+"/inline_transfer_max_bytes",schemaPath:"#/properties/inline_transfer_max_bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs25){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 1 || isNaN(data4)){validate381.errors = [{instancePath:instancePath+"/inline_transfer_max_bytes",schemaPath:"#/properties/inline_transfer_max_bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}}}}}}else {validate381.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate381.errors = vErrors;return errors === 0;}validate381.evaluated = {"props":{"buffered_output_bytes":true,"file_transfer_bytes":true,"upload_max_bytes":true,"download_max_bytes":true,"inline_transfer_max_bytes":true},"dynamicProps":false,"dynamicItems":false};const schema454 = {"type":"object","required":["id","path","access","restored_checkpoint","restore_duration_ms"],"properties":{"id":{"$ref":"#/components/schemas/VolumeId"},"path":{"type":"string"},"access":{"type":"string","enum":["write","read","shared","branch"]},"restored_checkpoint":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"restore_duration_ms":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};const schema58 = {"type":"string","pattern":"^vol_[0-9a-f]{32}$","description":"BoxRouter-managed Volume ID. Provider-native volume requirements are not accepted."};const pattern23 = new RegExp("^vol_[0-9a-f]{32}$", "u");function validate383(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate383.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.id === undefined) && (missing0 = "id")) || ((data.path === undefined) && (missing0 = "path"))) || ((data.access === undefined) && (missing0 = "access"))) || ((data.restored_checkpoint === undefined) && (missing0 = "restored_checkpoint"))) || ((data.restore_duration_ms === undefined) && (missing0 = "restore_duration_ms"))){validate383.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(!pattern23.test(data0)){validate383.errors = [{instancePath:instancePath+"/id",schemaPath:"#/components/schemas/VolumeId/pattern",keyword:"pattern",params:{pattern: "^vol_[0-9a-f]{32}$"},message:"must match pattern \""+"^vol_[0-9a-f]{32}$"+"\""}];return false;}}else {validate383.errors = [{instancePath:instancePath+"/id",schemaPath:"#/components/schemas/VolumeId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.path !== undefined){const _errs4 = errors;if(typeof data.path !== "string"){validate383.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.access !== undefined){let data2 = data.access;const _errs6 = errors;if(typeof data2 !== "string"){validate383.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data2 === "write") || (data2 === "read")) || (data2 === "shared")) || (data2 === "branch"))){validate383.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/enum",keyword:"enum",params:{allowedValues: schema454.properties.access.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.restored_checkpoint !== undefined){let data3 = data.restored_checkpoint;const _errs8 = errors;const _errs9 = errors;const _errs10 = errors;let valid3 = false;const _errs11 = errors;if((!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) && (data3 !== null)){const err0 = {instancePath:instancePath+"/restored_checkpoint",schemaPath:"#/properties/restored_checkpoint/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema454.properties.restored_checkpoint.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs11 === errors;valid3 = valid3 || _valid0;const _errs13 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/restored_checkpoint",schemaPath:"#/properties/restored_checkpoint/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs13 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/restored_checkpoint",schemaPath:"#/properties/restored_checkpoint/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate383.errors = vErrors;return false;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var valid2 = _errs9 === errors;if(valid2){if(typeof data3 === "bigint"){if(data3 < 1){validate383.errors = [{instancePath:instancePath+"/restored_checkpoint",schemaPath:"#/properties/restored_checkpoint/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs8){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate383.errors = [{instancePath:instancePath+"/restored_checkpoint",schemaPath:"#/properties/restored_checkpoint/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.restore_duration_ms !== undefined){let data4 = data.restore_duration_ms;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid5 = false;const _errs17 = errors;if((!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) && (data4 !== null)){const err3 = {instancePath:instancePath+"/restore_duration_ms",schemaPath:"#/properties/restore_duration_ms/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema454.properties.restore_duration_ms.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs17 === errors;valid5 = valid5 || _valid1;const _errs19 = errors;if(typeof data4 !== "bigint"){const err4 = {instancePath:instancePath+"/restore_duration_ms",schemaPath:"#/properties/restore_duration_ms/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs19 === errors;valid5 = valid5 || _valid1;if(!valid5){const err5 = {instancePath:instancePath+"/restore_duration_ms",schemaPath:"#/properties/restore_duration_ms/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate383.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid4 = _errs15 === errors;if(valid4){if(typeof data4 === "bigint"){if(data4 < 0){validate383.errors = [{instancePath:instancePath+"/restore_duration_ms",schemaPath:"#/properties/restore_duration_ms/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate383.errors = [{instancePath:instancePath+"/restore_duration_ms",schemaPath:"#/properties/restore_duration_ms/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}}}}}}}else {validate383.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate383.errors = vErrors;return errors === 0;}validate383.evaluated = {"props":{"id":true,"path":true,"access":true,"restored_checkpoint":true,"restore_duration_ms":true},"dynamicProps":false,"dynamicItems":false};function validate329(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate329.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((((((((((data.id === undefined) && (missing0 = "id")) || ((data.state === undefined) && (missing0 = "state"))) || ((data.state_reason === undefined) && (missing0 = "state_reason"))) || ((data.failure === undefined) && (missing0 = "failure"))) || ((data.native_state === undefined) && (missing0 = "native_state"))) || ((data.observed_at === undefined) && (missing0 = "observed_at"))) || ((data.state_recorded_at === undefined) && (missing0 = "state_recorded_at"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.ready_at === undefined) && (missing0 = "ready_at"))) || ((data.ended_at === undefined) && (missing0 = "ended_at"))) || ((data.labels === undefined) && (missing0 = "labels"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))) || ((data.route === undefined) && (missing0 = "route"))) || ((data.contract === undefined) && (missing0 = "contract"))) || ((data.request === undefined) && (missing0 = "request"))) || ((data.hidden_secrets === undefined) && (missing0 = "hidden_secrets"))) || ((data.tcp_ports === undefined) && (missing0 = "tcp_ports"))) || ((data.recorder === undefined) && (missing0 = "recorder"))) || ((data.limits === undefined) && (missing0 = "limits"))){validate329.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate329.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate329.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate329.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate329.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){const _errs3 = errors;if(typeof data.state !== "string"){validate329.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.state_reason !== undefined){let data2 = data.state_reason;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate329.errors = [{instancePath:instancePath+"/state_reason",schemaPath:"#/properties/state_reason/type",keyword:"type",params:{type: schema320.properties.state_reason.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data3 = data.failure;const _errs7 = errors;const _errs8 = errors;let valid1 = false;const _errs9 = errors;if(!(validate330(data3, {instancePath:instancePath+"/failure",parentData:data,parentDataProperty:"failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate330.errors : vErrors.concat(validate330.errors);errors = vErrors.length;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.summary = true;props0.provider_state = true;props0.native_code = true;props0.native_message = true;props0.observed_at = true;}const _errs10 = errors;if(data3 !== null){const err0 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.native_state !== undefined){let data4 = data.native_state;const _errs12 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate329.errors = [{instancePath:instancePath+"/native_state",schemaPath:"#/properties/native_state/type",keyword:"type",params:{type: schema320.properties.native_state.type},message:"must be string,null"}];return false;}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs14 = errors;if(errors === _errs14){if(errors === _errs14){if(typeof data5 === "string"){if(!(formats0.validate(data5))){validate329.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate329.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.state_recorded_at !== undefined){let data6 = data.state_recorded_at;const _errs16 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate329.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/type",keyword:"type",params:{type: schema320.properties.state_recorded_at.type},message:"must be string,null"}];return false;}if(errors === _errs16){if(errors === _errs16){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate329.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data7 = data.created_at;const _errs18 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate329.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: schema320.properties.created_at.type},message:"must be string,null"}];return false;}if(errors === _errs18){if(errors === _errs18){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate329.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data8 = data.expires_at;const _errs20 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate329.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: schema320.properties.expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs20){if(errors === _errs20){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate329.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at !== undefined){let data9 = data.ready_at;const _errs22 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate329.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/type",keyword:"type",params:{type: schema320.properties.ready_at.type},message:"must be string,null"}];return false;}if(errors === _errs22){if(errors === _errs22){if(typeof data9 === "string"){if(!(formats0.validate(data9))){validate329.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at !== undefined){let data10 = data.ended_at;const _errs24 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate329.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/type",keyword:"type",params:{type: schema320.properties.ended_at.type},message:"must be string,null"}];return false;}if(errors === _errs24){if(errors === _errs24){if(typeof data10 === "string"){if(!(formats0.validate(data10))){validate329.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs24 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_source !== undefined){let data11 = data.created_at_source;const _errs26 = errors;const _errs27 = errors;let valid2 = false;const _errs28 = errors;if(typeof data11 !== "string"){const err2 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!((((((data11 === "provider") || (data11 === "published")) || (data11 === "measured")) || (data11 === "recorded")) || (data11 === "calculated")) || (data11 === "unknown"))){const err3 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs28 === errors;valid2 = valid2 || _valid1;const _errs31 = errors;if(data11 !== null){const err4 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs31 === errors;valid2 = valid2 || _valid1;if(!valid2){const err5 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid0 = _errs26 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_how !== undefined){let data12 = data.created_at_how;const _errs33 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate329.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/type",keyword:"type",params:{type: schema320.properties.created_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs33){if(typeof data12 === "string"){if(func1(data12) < 1){validate329.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_step !== undefined){let data13 = data.created_at_step;const _errs35 = errors;const _errs36 = errors;const _errs37 = errors;let valid5 = false;const _errs38 = errors;if((!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))) && (data13 !== null)){const err6 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.created_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs38 === errors;valid5 = valid5 || _valid2;const _errs40 = errors;if(typeof data13 !== "bigint"){const err7 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs40 === errors;valid5 = valid5 || _valid2;if(!valid5){const err8 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid4 = _errs36 === errors;if(valid4){if(typeof data13 === "bigint"){if(data13 < 1){validate329.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs35){if((typeof data13 == "number") && (isFinite(data13))){if(data13 < 1 || isNaN(data13)){validate329.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_source !== undefined){let data14 = data.ready_at_source;const _errs41 = errors;const _errs42 = errors;let valid6 = false;const _errs43 = errors;if(typeof data14 !== "string"){const err9 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!((((((data14 === "provider") || (data14 === "published")) || (data14 === "measured")) || (data14 === "recorded")) || (data14 === "calculated")) || (data14 === "unknown"))){const err10 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs43 === errors;valid6 = valid6 || _valid3;const _errs46 = errors;if(data14 !== null){const err11 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs46 === errors;valid6 = valid6 || _valid3;if(!valid6){const err12 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_how !== undefined){let data15 = data.ready_at_how;const _errs48 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate329.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/type",keyword:"type",params:{type: schema320.properties.ready_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs48){if(typeof data15 === "string"){if(func1(data15) < 1){validate329.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs48 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_step !== undefined){let data16 = data.ready_at_step;const _errs50 = errors;const _errs51 = errors;const _errs52 = errors;let valid9 = false;const _errs53 = errors;if((!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))) && (data16 !== null)){const err13 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ready_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs53 === errors;valid9 = valid9 || _valid4;const _errs55 = errors;if(typeof data16 !== "bigint"){const err14 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid4 = _errs55 === errors;valid9 = valid9 || _valid4;if(!valid9){const err15 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid8 = _errs51 === errors;if(valid8){if(typeof data16 === "bigint"){if(data16 < 1){validate329.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs50){if((typeof data16 == "number") && (isFinite(data16))){if(data16 < 1 || isNaN(data16)){validate329.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs50 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_source !== undefined){let data17 = data.ended_at_source;const _errs56 = errors;const _errs57 = errors;let valid10 = false;const _errs58 = errors;if(typeof data17 !== "string"){const err16 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(!((((((data17 === "provider") || (data17 === "published")) || (data17 === "measured")) || (data17 === "recorded")) || (data17 === "calculated")) || (data17 === "unknown"))){const err17 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs58 === errors;valid10 = valid10 || _valid5;const _errs61 = errors;if(data17 !== null){const err18 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid5 = _errs61 === errors;valid10 = valid10 || _valid5;if(!valid10){const err19 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs57;if(vErrors !== null){if(_errs57){vErrors.length = _errs57;}else {vErrors = null;}}}var valid0 = _errs56 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_how !== undefined){let data18 = data.ended_at_how;const _errs63 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate329.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/type",keyword:"type",params:{type: schema320.properties.ended_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs63){if(typeof data18 === "string"){if(func1(data18) < 1){validate329.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs63 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_step !== undefined){let data19 = data.ended_at_step;const _errs65 = errors;const _errs66 = errors;const _errs67 = errors;let valid13 = false;const _errs68 = errors;if((!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))) && (data19 !== null)){const err20 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ended_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid6 = _errs68 === errors;valid13 = valid13 || _valid6;const _errs70 = errors;if(typeof data19 !== "bigint"){const err21 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid6 = _errs70 === errors;valid13 = valid13 || _valid6;if(!valid13){const err22 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}}var valid12 = _errs66 === errors;if(valid12){if(typeof data19 === "bigint"){if(data19 < 1){validate329.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs65){if((typeof data19 == "number") && (isFinite(data19))){if(data19 < 1 || isNaN(data19)){validate329.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs65 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_source !== undefined){let data20 = data.cost_source;const _errs71 = errors;const _errs72 = errors;let valid14 = false;const _errs73 = errors;if(typeof data20 !== "string"){const err23 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!((((((data20 === "provider") || (data20 === "published")) || (data20 === "measured")) || (data20 === "recorded")) || (data20 === "calculated")) || (data20 === "unknown"))){const err24 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid7 = _errs73 === errors;valid14 = valid14 || _valid7;const _errs76 = errors;if(data20 !== null){const err25 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid7 = _errs76 === errors;valid14 = valid14 || _valid7;if(!valid14){const err26 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}var valid0 = _errs71 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_how !== undefined){let data21 = data.cost_how;const _errs78 = errors;if((typeof data21 !== "string") && (data21 !== null)){validate329.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/type",keyword:"type",params:{type: schema320.properties.cost_how.type},message:"must be string,null"}];return false;}if(errors === _errs78){if(typeof data21 === "string"){if(func1(data21) < 1){validate329.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs78 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_step !== undefined){let data22 = data.cost_step;const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;let valid17 = false;const _errs83 = errors;if((!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) && (data22 !== null)){const err27 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.cost_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid8 = _errs83 === errors;valid17 = valid17 || _valid8;const _errs85 = errors;if(typeof data22 !== "bigint"){const err28 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid8 = _errs85 === errors;valid17 = valid17 || _valid8;if(!valid17){const err29 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var valid16 = _errs81 === errors;if(valid16){if(typeof data22 === "bigint"){if(data22 < 1){validate329.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs80){if((typeof data22 == "number") && (isFinite(data22))){if(data22 < 1 || isNaN(data22)){validate329.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs80 === errors;}else {var valid0 = true;}if(valid0){if(data.origin !== undefined){let data23 = data.origin;const _errs86 = errors;const _errs87 = errors;let valid18 = false;const _errs88 = errors;if(!(validate332(data23, {instancePath:instancePath+"/origin",parentData:data,parentDataProperty:"origin",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate332.errors : vErrors.concat(validate332.errors);errors = vErrors.length;}var _valid9 = _errs88 === errors;valid18 = valid18 || _valid9;const _errs89 = errors;if(data23 !== null){const err30 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid9 = _errs89 === errors;valid18 = valid18 || _valid9;if(!valid18){const err31 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var valid0 = _errs86 === errors;}else {var valid0 = true;}if(valid0){if(data.labels !== undefined){let data24 = data.labels;const _errs91 = errors;if(errors === _errs91){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){for(const key0 in data24){const _errs94 = errors;if(typeof data24[key0] !== "string"){validate329.errors = [{instancePath:instancePath+"/labels/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid19 = _errs94 === errors;if(!valid19){break;}}}else {validate329.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs91 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){let data26 = data.name;const _errs96 = errors;if((typeof data26 !== "string") && (data26 !== null)){validate329.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: schema320.properties.name.type},message:"must be string,null"}];return false;}var valid0 = _errs96 === errors;}else {var valid0 = true;}if(valid0){if(data.resources !== undefined){let data27 = data.resources;const _errs98 = errors;if(errors === _errs98){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.cpu !== undefined){let data28 = data27.cpu;const _errs100 = errors;const _errs101 = errors;const _errs102 = errors;let valid22 = false;const _errs103 = errors;if((!((typeof data28 == "number") && (isFinite(data28)))) && (data28 !== null)){const err32 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.cpu.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid10 = _errs103 === errors;valid22 = valid22 || _valid10;const _errs105 = errors;if(typeof data28 !== "bigint"){const err33 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid10 = _errs105 === errors;valid22 = valid22 || _valid10;if(!valid22){const err34 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}var valid21 = _errs101 === errors;if(valid21){if(typeof data28 === "bigint"){if(data28 <= 0){validate329.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs100){if((typeof data28 == "number") && (isFinite(data28))){if(data28 <= 0 || isNaN(data28)){validate329.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid20 = _errs100 === errors;}else {var valid20 = true;}if(valid20){if(data27.memory_mib !== undefined){let data29 = data27.memory_mib;const _errs106 = errors;const _errs107 = errors;const _errs108 = errors;let valid24 = false;const _errs109 = errors;if((!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))) && (data29 !== null)){const err35 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.memory_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid11 = _errs109 === errors;valid24 = valid24 || _valid11;const _errs111 = errors;if(typeof data29 !== "bigint"){const err36 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid11 = _errs111 === errors;valid24 = valid24 || _valid11;if(!valid24){const err37 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs108;if(vErrors !== null){if(_errs108){vErrors.length = _errs108;}else {vErrors = null;}}}var valid23 = _errs107 === errors;if(valid23){if(typeof data29 === "bigint"){if(data29 < 1){validate329.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs106){if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 1 || isNaN(data29)){validate329.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs106 === errors;}else {var valid20 = true;}if(valid20){if(data27.disk_mib !== undefined){let data30 = data27.disk_mib;const _errs112 = errors;const _errs113 = errors;const _errs114 = errors;let valid26 = false;const _errs115 = errors;if((!(((typeof data30 == "number") && (!(data30 % 1) && !isNaN(data30))) && (isFinite(data30)))) && (data30 !== null)){const err38 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.disk_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid12 = _errs115 === errors;valid26 = valid26 || _valid12;const _errs117 = errors;if(typeof data30 !== "bigint"){const err39 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid12 = _errs117 === errors;valid26 = valid26 || _valid12;if(!valid26){const err40 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}}var valid25 = _errs113 === errors;if(valid25){if(typeof data30 === "bigint"){if(data30 < 1){validate329.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs112){if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 1 || isNaN(data30)){validate329.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs112 === errors;}else {var valid20 = true;}}}}else {validate329.errors = [{instancePath:instancePath+"/resources",schemaPath:"#/properties/resources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs98 === errors;}else {var valid0 = true;}if(valid0){if(data.image !== undefined){let data31 = data.image;const _errs118 = errors;const _errs119 = errors;let valid27 = false;const _errs120 = errors;if(!(validate338(data31, {instancePath:instancePath+"/image",parentData:data,parentDataProperty:"image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate338.errors : vErrors.concat(validate338.errors);errors = vErrors.length;}var _valid13 = _errs120 === errors;valid27 = valid27 || _valid13;if(_valid13){var props2 = {};props2.value = true;props2.source = true;}const _errs121 = errors;if(data31 !== null){const err41 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid13 = _errs121 === errors;valid27 = valid27 || _valid13;if(!valid27){const err42 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}var valid0 = _errs118 === errors;}else {var valid0 = true;}if(valid0){if(data.image_setup !== undefined){let data32 = data.image_setup;const _errs123 = errors;const _errs124 = errors;if(errors === _errs124){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){let missing1;if(((data32.provider === undefined) && (missing1 = "provider")) || ((data32.duration_ms === undefined) && (missing1 = "duration_ms"))){validate329.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data32.provider !== undefined){let data33 = data32.provider;const _errs126 = errors;if(errors === _errs126){if(typeof data33 === "string"){if(func1(data33) < 1){validate329.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate329.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid29 = _errs126 === errors;}else {var valid29 = true;}if(valid29){if(data32.duration_ms !== undefined){let data34 = data32.duration_ms;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;let valid31 = false;const _errs131 = errors;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err43 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid14 = _errs131 === errors;valid31 = valid31 || _valid14;const _errs133 = errors;if(typeof data34 !== "bigint"){const err44 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid14 = _errs133 === errors;valid31 = valid31 || _valid14;if(!valid31){const err45 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}var valid30 = _errs129 === errors;if(valid30){if(typeof data34 === "bigint"){if(data34 < 0){validate329.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs128){if((typeof data34 == "number") && (isFinite(data34))){if(data34 < 0 || isNaN(data34)){validate329.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid29 = _errs128 === errors;}else {var valid29 = true;}}}}else {validate329.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs123 === errors;}else {var valid0 = true;}if(valid0){if(data.usage !== undefined){let data35 = data.usage;const _errs134 = errors;const _errs135 = errors;let valid32 = false;const _errs136 = errors;if(errors === _errs136){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing2;if(((((((data35.provider === undefined) && (missing2 = "provider")) || ((data35.started === undefined) && (missing2 = "started"))) || ((data35.region === undefined) && (missing2 = "region"))) || ((data35.size === undefined) && (missing2 = "size"))) || ((data35.intervals === undefined) && (missing2 = "intervals"))) || ((data35.creations === undefined) && (missing2 = "creations"))){const err46 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {const _errs138 = errors;for(const key1 in data35){if(!(func237.call(schema320.properties.usage.anyOf[0].properties, key1))){const err47 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;break;}}if(_errs138 === errors){if(data35.provider !== undefined){let data36 = data35.provider;const _errs139 = errors;if(errors === _errs139){if(typeof data36 === "string"){if(!pattern42.test(data36)){const err48 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}var valid33 = _errs139 === errors;}else {var valid33 = true;}if(valid33){if(data35.class !== undefined){let data37 = data35.class;const _errs141 = errors;const _errs143 = errors;let valid34 = true;const _errs144 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing3;if((data37.source === undefined) && (missing3 = "source")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data37.source !== undefined){if("unknown" !== data37.source){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}var _valid16 = _errs144 === errors;errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}let ifClause0;if(_valid16){const _errs147 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(data37.name !== null){const err52 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid16 = _errs147 === errors;valid34 = _valid16;if(valid34){var props3 = {};props3.name = true;props3.source = true;}ifClause0 = "then";}else {const _errs150 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(typeof data37.name !== "string"){const err53 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}var _valid16 = _errs150 === errors;valid34 = _valid16;if(valid34){if(props3 !== true){props3 = props3 || {};props3.name = true;}}ifClause0 = "else";}if(!valid34){const err54 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(errors === _errs141){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing4;if(((((data37.name === undefined) && (missing4 = "name")) || ((data37.source === undefined) && (missing4 = "source"))) || ((data37.observed_at === undefined) && (missing4 = "observed_at"))) || ((data37.how === undefined) && (missing4 = "how"))){const err55 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(props3 !== true){props3 = props3 || {};props3.name = true;props3.source = true;props3.observed_at = true;props3.how = true;}if(data37.name !== undefined){let data41 = data37.name;const _errs153 = errors;if((typeof data41 !== "string") && (data41 !== null)){const err56 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.class.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors === _errs153){if(typeof data41 === "string"){if(func1(data41) < 1){const err57 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var valid39 = _errs153 === errors;}else {var valid39 = true;}if(valid39){if(data37.source !== undefined){let data42 = data37.source;const _errs155 = errors;if(typeof data42 !== "string"){const err58 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(!((((((data42 === "provider") || (data42 === "published")) || (data42 === "measured")) || (data42 === "recorded")) || (data42 === "calculated")) || (data42 === "unknown"))){const err59 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid39 = _errs155 === errors;}else {var valid39 = true;}if(valid39){if(data37.observed_at !== undefined){let data43 = data37.observed_at;const _errs158 = errors;const _errs159 = errors;if(errors === _errs159){if(errors === _errs159){if(typeof data43 === "string"){if(!pattern78.test(data43)){const err60 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(!(formats0.validate(data43))){const err61 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var valid39 = _errs158 === errors;}else {var valid39 = true;}if(valid39){if(data37.how !== undefined){let data44 = data37.how;const _errs161 = errors;const _errs162 = errors;if(errors === _errs162){if(typeof data44 === "string"){if(func1(data44) < 1){const err63 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}var valid39 = _errs161 === errors;}else {var valid39 = true;}}}}}}else {const err65 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid33 = _errs141 === errors;}else {var valid33 = true;}if(valid33){if(data35.started !== undefined){let data45 = data35.started;const _errs164 = errors;const _errs166 = errors;let valid43 = true;const _errs167 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing5;if((data45.source === undefined) && (missing5 = "source")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data45.source !== undefined){if("unknown" !== data45.source){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}var _valid17 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}let ifClause1;if(_valid17){const _errs170 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){if(data45.at !== null){const err68 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/then/properties/at/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid17 = _errs170 === errors;valid43 = _valid17;if(valid43){var props4 = {};props4.at = true;props4.source = true;}ifClause1 = "then";}else {const _errs173 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){let data48 = data45.at;const _errs175 = errors;if(errors === _errs175){if(errors === _errs175){if(typeof data48 === "string"){if(!pattern78.test(data48)){const err69 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(!(formats0.validate(data48))){const err70 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}var _valid17 = _errs173 === errors;valid43 = _valid17;if(valid43){if(props4 !== true){props4 = props4 || {};props4.at = true;}}ifClause1 = "else";}if(!valid43){const err72 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors === _errs164){if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing6;if(((((data45.at === undefined) && (missing6 = "at")) || ((data45.source === undefined) && (missing6 = "source"))) || ((data45.observed_at === undefined) && (missing6 = "observed_at"))) || ((data45.how === undefined) && (missing6 = "how"))){const err73 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(props4 !== true){props4 = props4 || {};props4.at = true;props4.source = true;props4.observed_at = true;props4.how = true;}if(data45.at !== undefined){let data49 = data45.at;const _errs177 = errors;if((typeof data49 !== "string") && (data49 !== null)){const err74 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/properties/at/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.started.properties.at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid49 = _errs177 === errors;}else {var valid49 = true;}if(valid49){if(data45.source !== undefined){let data50 = data45.source;const _errs179 = errors;if(typeof data50 !== "string"){const err75 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(!((((((data50 === "provider") || (data50 === "published")) || (data50 === "measured")) || (data50 === "recorded")) || (data50 === "calculated")) || (data50 === "unknown"))){const err76 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var valid49 = _errs179 === errors;}else {var valid49 = true;}if(valid49){if(data45.observed_at !== undefined){let data51 = data45.observed_at;const _errs182 = errors;const _errs183 = errors;if(errors === _errs183){if(errors === _errs183){if(typeof data51 === "string"){if(!pattern78.test(data51)){const err77 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(!(formats0.validate(data51))){const err78 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var valid49 = _errs182 === errors;}else {var valid49 = true;}if(valid49){if(data45.how !== undefined){let data52 = data45.how;const _errs185 = errors;const _errs186 = errors;if(errors === _errs186){if(typeof data52 === "string"){if(func1(data52) < 1){const err80 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var valid49 = _errs185 === errors;}else {var valid49 = true;}}}}}}else {const err82 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid33 = _errs164 === errors;}else {var valid33 = true;}if(valid33){if(data35.region !== undefined){let data53 = data35.region;const _errs188 = errors;const _errs190 = errors;let valid53 = true;const _errs191 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing7;if((data53.source === undefined) && (missing7 = "source")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data53.source !== undefined){if("unknown" !== data53.source){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}}var _valid18 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}let ifClause2;if(_valid18){const _errs194 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(data53.name !== null){const err85 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}var _valid18 = _errs194 === errors;valid53 = _valid18;if(valid53){var props5 = {};props5.name = true;props5.source = true;}ifClause2 = "then";}else {const _errs197 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(typeof data53.name !== "string"){const err86 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}var _valid18 = _errs197 === errors;valid53 = _valid18;if(valid53){if(props5 !== true){props5 = props5 || {};props5.name = true;}}ifClause2 = "else";}if(!valid53){const err87 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(errors === _errs188){if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing8;if(((((data53.name === undefined) && (missing8 = "name")) || ((data53.source === undefined) && (missing8 = "source"))) || ((data53.observed_at === undefined) && (missing8 = "observed_at"))) || ((data53.how === undefined) && (missing8 = "how"))){const err88 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(props5 !== true){props5 = props5 || {};props5.name = true;props5.source = true;props5.observed_at = true;props5.how = true;}if(data53.name !== undefined){let data57 = data53.name;const _errs200 = errors;if((typeof data57 !== "string") && (data57 !== null)){const err89 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.region.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(errors === _errs200){if(typeof data57 === "string"){if(func1(data57) < 1){const err90 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}var valid58 = _errs200 === errors;}else {var valid58 = true;}if(valid58){if(data53.source !== undefined){let data58 = data53.source;const _errs202 = errors;if(typeof data58 !== "string"){const err91 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(!((((((data58 === "provider") || (data58 === "published")) || (data58 === "measured")) || (data58 === "recorded")) || (data58 === "calculated")) || (data58 === "unknown"))){const err92 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid58 = _errs202 === errors;}else {var valid58 = true;}if(valid58){if(data53.observed_at !== undefined){let data59 = data53.observed_at;const _errs205 = errors;const _errs206 = errors;if(errors === _errs206){if(errors === _errs206){if(typeof data59 === "string"){if(!pattern78.test(data59)){const err93 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(!(formats0.validate(data59))){const err94 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}var valid58 = _errs205 === errors;}else {var valid58 = true;}if(valid58){if(data53.how !== undefined){let data60 = data53.how;const _errs208 = errors;const _errs209 = errors;if(errors === _errs209){if(typeof data60 === "string"){if(func1(data60) < 1){const err96 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var valid58 = _errs208 === errors;}else {var valid58 = true;}}}}}}else {const err98 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var valid33 = _errs188 === errors;}else {var valid33 = true;}if(valid33){if(data35.size !== undefined){let data61 = data35.size;const _errs211 = errors;const _errs213 = errors;const _errs214 = errors;let valid63 = true;const _errs215 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing9;if((data61.gpu === undefined) && (missing9 = "gpu")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}var _valid19 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid19){const _errs216 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing10;if((data61.gpu_model === undefined) && (missing10 = "gpu_model")){const err100 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}var _valid19 = _errs216 === errors;valid63 = _valid19;}if(!valid63){const err101 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid62 = _errs213 === errors;if(valid62){const _errs217 = errors;const _errs218 = errors;let valid64 = true;const _errs219 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing11;if((data61.gpu_model === undefined) && (missing11 = "gpu_model")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}var _valid20 = _errs219 === errors;errors = _errs218;if(vErrors !== null){if(_errs218){vErrors.length = _errs218;}else {vErrors = null;}}if(_valid20){const _errs220 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing12;if((data61.gpu === undefined) && (missing12 = "gpu")){const err103 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var _valid20 = _errs220 === errors;valid64 = _valid20;}if(!valid64){const err104 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid62 = _errs217 === errors;if(valid62){const _errs221 = errors;let valid65 = true;const _errs222 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing13;if((data61.source === undefined) && (missing13 = "source")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data61.source !== undefined){if("unknown" !== data61.source){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}}var _valid21 = _errs222 === errors;errors = _errs221;if(vErrors !== null){if(_errs221){vErrors.length = _errs221;}else {vErrors = null;}}let ifClause3;if(_valid21){const _errs225 = errors;const _errs226 = errors;const _errs227 = errors;const _errs228 = errors;let valid69 = false;const _errs229 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing14;if((data61.cpu === undefined) && (missing14 = "cpu")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}var _valid22 = _errs229 === errors;valid69 = valid69 || _valid22;const _errs230 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing15;if((data61.memory_mib === undefined) && (missing15 = "memory_mib")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}var _valid22 = _errs230 === errors;valid69 = valid69 || _valid22;const _errs231 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing16;if((data61.disk_mib === undefined) && (missing16 = "disk_mib")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid22 = _errs231 === errors;valid69 = valid69 || _valid22;const _errs232 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing17;if((data61.gpu === undefined) && (missing17 = "gpu")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid22 = _errs232 === errors;valid69 = valid69 || _valid22;const _errs233 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing18;if((data61.gpu_model === undefined) && (missing18 = "gpu_model")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}var _valid22 = _errs233 === errors;valid69 = valid69 || _valid22;if(!valid69){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}}var valid68 = _errs227 === errors;if(valid68){const err113 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}}var _valid21 = _errs225 === errors;valid65 = _valid21;ifClause3 = "then";}else {const _errs234 = errors;const _errs235 = errors;let valid70 = false;const _errs236 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing19;if((data61.cpu === undefined) && (missing19 = "cpu")){const err114 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing19},message:"must have required property '"+missing19+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid23 = _errs236 === errors;valid70 = valid70 || _valid23;const _errs237 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing20;if((data61.memory_mib === undefined) && (missing20 = "memory_mib")){const err115 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing20},message:"must have required property '"+missing20+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var _valid23 = _errs237 === errors;valid70 = valid70 || _valid23;const _errs238 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing21;if((data61.disk_mib === undefined) && (missing21 = "disk_mib")){const err116 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing21},message:"must have required property '"+missing21+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var _valid23 = _errs238 === errors;valid70 = valid70 || _valid23;const _errs239 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing22;if((data61.gpu === undefined) && (missing22 = "gpu")){const err117 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing22},message:"must have required property '"+missing22+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var _valid23 = _errs239 === errors;valid70 = valid70 || _valid23;if(!valid70){const err118 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs235;if(vErrors !== null){if(_errs235){vErrors.length = _errs235;}else {vErrors = null;}}}var _valid21 = _errs234 === errors;valid65 = _valid21;ifClause3 = "else";}if(!valid65){const err119 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}if(errors === _errs211){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing23;if((((data61.source === undefined) && (missing23 = "source")) || ((data61.observed_at === undefined) && (missing23 = "observed_at"))) || ((data61.how === undefined) && (missing23 = "how"))){const err120 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/required",keyword:"required",params:{missingProperty: missing23},message:"must have required property '"+missing23+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data61.cpu !== undefined){let data63 = data61.cpu;const _errs240 = errors;const _errs241 = errors;const _errs242 = errors;let valid73 = false;const _errs243 = errors;if(!((typeof data63 == "number") && (isFinite(data63)))){const err121 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid24 = _errs243 === errors;valid73 = valid73 || _valid24;const _errs245 = errors;if(typeof data63 !== "bigint"){const err122 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var _valid24 = _errs245 === errors;valid73 = valid73 || _valid24;if(!valid73){const err123 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {errors = _errs242;if(vErrors !== null){if(_errs242){vErrors.length = _errs242;}else {vErrors = null;}}}var valid72 = _errs241 === errors;if(valid72){if(typeof data63 === "bigint"){if(data63 <= 0){const err124 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}if(errors === _errs240){if((typeof data63 == "number") && (isFinite(data63))){if(data63 <= 0 || isNaN(data63)){const err125 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}var valid71 = _errs240 === errors;}else {var valid71 = true;}if(valid71){if(data61.memory_mib !== undefined){let data64 = data61.memory_mib;const _errs246 = errors;const _errs247 = errors;const _errs248 = errors;let valid75 = false;const _errs249 = errors;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){const err126 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid25 = _errs249 === errors;valid75 = valid75 || _valid25;const _errs251 = errors;if(typeof data64 !== "bigint"){const err127 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}var _valid25 = _errs251 === errors;valid75 = valid75 || _valid25;if(!valid75){const err128 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs248;if(vErrors !== null){if(_errs248){vErrors.length = _errs248;}else {vErrors = null;}}}var valid74 = _errs247 === errors;if(valid74){if(typeof data64 === "bigint"){if(data64 < 1){const err129 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}if(errors === _errs246){if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 1 || isNaN(data64)){const err130 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}var valid71 = _errs246 === errors;}else {var valid71 = true;}if(valid71){if(data61.disk_mib !== undefined){let data65 = data61.disk_mib;const _errs252 = errors;const _errs253 = errors;const _errs254 = errors;let valid77 = false;const _errs255 = errors;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){const err131 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid26 = _errs255 === errors;valid77 = valid77 || _valid26;const _errs257 = errors;if(typeof data65 !== "bigint"){const err132 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid26 = _errs257 === errors;valid77 = valid77 || _valid26;if(!valid77){const err133 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs254;if(vErrors !== null){if(_errs254){vErrors.length = _errs254;}else {vErrors = null;}}}var valid76 = _errs253 === errors;if(valid76){if(typeof data65 === "bigint"){if(data65 < 1){const err134 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}if(errors === _errs252){if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 1 || isNaN(data65)){const err135 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}var valid71 = _errs252 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu !== undefined){let data66 = data61.gpu;const _errs258 = errors;const _errs259 = errors;const _errs260 = errors;let valid79 = false;const _errs261 = errors;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){const err136 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid27 = _errs261 === errors;valid79 = valid79 || _valid27;const _errs263 = errors;if(typeof data66 !== "bigint"){const err137 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var _valid27 = _errs263 === errors;valid79 = valid79 || _valid27;if(!valid79){const err138 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}var valid78 = _errs259 === errors;if(valid78){if(typeof data66 === "bigint"){if(data66 < 1){const err139 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}if(errors === _errs258){if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 1 || isNaN(data66)){const err140 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}var valid71 = _errs258 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu_model !== undefined){let data67 = data61.gpu_model;const _errs264 = errors;if(errors === _errs264){if(typeof data67 === "string"){if(!pattern219.test(data67)){const err141 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}else {const err142 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid71 = _errs264 === errors;}else {var valid71 = true;}if(valid71){if(data61.source !== undefined){let data68 = data61.source;const _errs266 = errors;if(typeof data68 !== "string"){const err143 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(!((((((data68 === "provider") || (data68 === "published")) || (data68 === "measured")) || (data68 === "recorded")) || (data68 === "calculated")) || (data68 === "unknown"))){const err144 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid71 = _errs266 === errors;}else {var valid71 = true;}if(valid71){if(data61.observed_at !== undefined){let data69 = data61.observed_at;const _errs269 = errors;const _errs270 = errors;if(errors === _errs270){if(errors === _errs270){if(typeof data69 === "string"){if(!pattern78.test(data69)){const err145 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(!(formats0.validate(data69))){const err146 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}var valid71 = _errs269 === errors;}else {var valid71 = true;}if(valid71){if(data61.how !== undefined){let data70 = data61.how;const _errs272 = errors;const _errs273 = errors;if(errors === _errs273){if(typeof data70 === "string"){if(func1(data70) < 1){const err148 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}else {const err149 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}var valid71 = _errs272 === errors;}else {var valid71 = true;}}}}}}}}}}else {const err150 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid33 = _errs211 === errors;}else {var valid33 = true;}if(valid33){if(data35.intervals !== undefined){let data71 = data35.intervals;const _errs275 = errors;if(errors === _errs275){if(Array.isArray(data71)){if(data71.length < 1){const err151 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {var valid83 = true;const len0 = data71.length;for(let i0=0; i0<len0; i0++){let data72 = data71[i0];const _errs277 = errors;const _errs279 = errors;let valid84 = true;const _errs280 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing24;if((data72.source === undefined) && (missing24 = "source")){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {if(data72.source !== undefined){if("unknown" !== data72.source){const err153 = {};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}}var _valid28 = _errs280 === errors;errors = _errs279;if(vErrors !== null){if(_errs279){vErrors.length = _errs279;}else {vErrors = null;}}let ifClause4;if(_valid28){const _errs283 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){if(data72.seconds !== null){const err154 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}var _valid28 = _errs283 === errors;valid84 = _valid28;if(valid84){var props6 = {};props6.seconds = true;props6.source = true;}ifClause4 = "then";}else {const _errs286 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){let data75 = data72.seconds;const _errs289 = errors;let valid90 = false;const _errs290 = errors;if((!((typeof data75 == "number") && (isFinite(data75)))) && (!(data75 && typeof data75 == "object" && !Array.isArray(data75)))){const err155 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.intervals.items.else.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid29 = _errs290 === errors;valid90 = valid90 || _valid29;const _errs292 = errors;if(typeof data75 !== "bigint"){const err156 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid29 = _errs292 === errors;valid90 = valid90 || _valid29;if(!valid90){const err157 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs289;if(vErrors !== null){if(_errs289){vErrors.length = _errs289;}else {vErrors = null;}}}}}var _valid28 = _errs286 === errors;valid84 = _valid28;if(valid84){if(props6 !== true){props6 = props6 || {};props6.seconds = true;}}ifClause4 = "else";}if(!valid84){const err158 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(errors === _errs277){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing25;if((((((data72.state === undefined) && (missing25 = "state")) || ((data72.seconds === undefined) && (missing25 = "seconds"))) || ((data72.source === undefined) && (missing25 = "source"))) || ((data72.observed_at === undefined) && (missing25 = "observed_at"))) || ((data72.how === undefined) && (missing25 = "how"))){const err159 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/required",keyword:"required",params:{missingProperty: missing25},message:"must have required property '"+missing25+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(props6 !== true){props6 = props6 || {};props6.size = true;props6.snapshot_storage = true;props6.state = true;props6.seconds = true;props6.source = true;props6.observed_at = true;props6.how = true;}if(data72.size !== undefined){const _errs293 = errors;if(!(validate340(data72.size, {instancePath:instancePath+"/usage/intervals/" + i0+"/size",parentData:data72,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate340.errors : vErrors.concat(validate340.errors);errors = vErrors.length;}var valid91 = _errs293 === errors;}else {var valid91 = true;}if(valid91){if(data72.snapshot_storage !== undefined){const _errs294 = errors;if(!(validate342(data72.snapshot_storage, {instancePath:instancePath+"/usage/intervals/" + i0+"/snapshot_storage",parentData:data72,parentDataProperty:"snapshot_storage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate342.errors : vErrors.concat(validate342.errors);errors = vErrors.length;}var valid91 = _errs294 === errors;}else {var valid91 = true;}if(valid91){if(data72.state !== undefined){let data78 = data72.state;const _errs295 = errors;if(!(((data78 === "running") || (data78 === "paused")) || (data78 === "stopped"))){const err160 = {instancePath:instancePath+"/usage/intervals/" + i0+"/state",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/state/enum",keyword:"enum",params:{allowedValues: schema320.properties.usage.anyOf[0].properties.intervals.items.properties.state.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var valid91 = _errs295 === errors;}else {var valid91 = true;}if(valid91){if(data72.seconds !== undefined){let data79 = data72.seconds;const _errs296 = errors;const _errs297 = errors;let valid92 = false;const _errs298 = errors;const _errs299 = errors;const _errs300 = errors;let valid94 = false;const _errs301 = errors;if(!((typeof data79 == "number") && (isFinite(data79)))){const err161 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}var _valid31 = _errs301 === errors;valid94 = valid94 || _valid31;const _errs303 = errors;if(typeof data79 !== "bigint"){const err162 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var _valid31 = _errs303 === errors;valid94 = valid94 || _valid31;if(!valid94){const err163 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}var valid93 = _errs299 === errors;if(valid93){if(typeof data79 === "bigint"){if(data79 < 0){const err164 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}if(errors === _errs298){if((typeof data79 == "number") && (isFinite(data79))){if(data79 < 0 || isNaN(data79)){const err165 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}var _valid30 = _errs298 === errors;valid92 = valid92 || _valid30;const _errs304 = errors;const _errs305 = errors;if(errors === _errs305){if(data79 && typeof data79 == "object" && !Array.isArray(data79)){let missing26;if(((data79.low === undefined) && (missing26 = "low")) || ((data79.high === undefined) && (missing26 = "high"))){const err166 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/required",keyword:"required",params:{missingProperty: missing26},message:"must have required property '"+missing26+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {if(data79.low !== undefined){let data80 = data79.low;const _errs307 = errors;const _errs308 = errors;const _errs309 = errors;let valid98 = false;const _errs310 = errors;if(!((typeof data80 == "number") && (isFinite(data80)))){const err167 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}var _valid32 = _errs310 === errors;valid98 = valid98 || _valid32;const _errs312 = errors;if(typeof data80 !== "bigint"){const err168 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid32 = _errs312 === errors;valid98 = valid98 || _valid32;if(!valid98){const err169 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var valid97 = _errs308 === errors;if(valid97){if(typeof data80 === "bigint"){if(data80 < 0){const err170 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}if(errors === _errs307){if((typeof data80 == "number") && (isFinite(data80))){if(data80 < 0 || isNaN(data80)){const err171 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}var valid96 = _errs307 === errors;}else {var valid96 = true;}if(valid96){if(data79.high !== undefined){let data81 = data79.high;const _errs313 = errors;const _errs314 = errors;const _errs315 = errors;let valid100 = false;const _errs316 = errors;if(!((typeof data81 == "number") && (isFinite(data81)))){const err172 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var _valid33 = _errs316 === errors;valid100 = valid100 || _valid33;const _errs318 = errors;if(typeof data81 !== "bigint"){const err173 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var _valid33 = _errs318 === errors;valid100 = valid100 || _valid33;if(!valid100){const err174 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs315;if(vErrors !== null){if(_errs315){vErrors.length = _errs315;}else {vErrors = null;}}}var valid99 = _errs314 === errors;if(valid99){if(typeof data81 === "bigint"){if(data81 < 0){const err175 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}if(errors === _errs313){if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err176 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}var valid96 = _errs313 === errors;}else {var valid96 = true;}}}}else {const err177 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}var _valid30 = _errs304 === errors;valid92 = valid92 || _valid30;if(_valid30){var props8 = {};props8.low = true;props8.high = true;}const _errs319 = errors;if(data79 !== null){const err178 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var _valid30 = _errs319 === errors;valid92 = valid92 || _valid30;if(!valid92){const err179 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs297;if(vErrors !== null){if(_errs297){vErrors.length = _errs297;}else {vErrors = null;}}}var valid91 = _errs296 === errors;}else {var valid91 = true;}if(valid91){if(data72.source !== undefined){let data82 = data72.source;const _errs321 = errors;if(typeof data82 !== "string"){const err180 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(!((((((data82 === "provider") || (data82 === "published")) || (data82 === "measured")) || (data82 === "recorded")) || (data82 === "calculated")) || (data82 === "unknown"))){const err181 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var valid91 = _errs321 === errors;}else {var valid91 = true;}if(valid91){if(data72.observed_at !== undefined){let data83 = data72.observed_at;const _errs324 = errors;const _errs325 = errors;if(errors === _errs325){if(errors === _errs325){if(typeof data83 === "string"){if(!pattern78.test(data83)){const err182 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {if(!(formats0.validate(data83))){const err183 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}var valid91 = _errs324 === errors;}else {var valid91 = true;}if(valid91){if(data72.how !== undefined){let data84 = data72.how;const _errs327 = errors;const _errs328 = errors;if(errors === _errs328){if(typeof data84 === "string"){if(func1(data84) < 1){const err185 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}var valid91 = _errs327 === errors;}else {var valid91 = true;}}}}}}}}}else {const err187 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}var valid83 = _errs277 === errors;if(!valid83){break;}}}}else {const err188 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}var valid33 = _errs275 === errors;}else {var valid33 = true;}if(valid33){if(data35.creations !== undefined){let data85 = data35.creations;const _errs330 = errors;const _errs332 = errors;let valid104 = true;const _errs333 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing27;if((data85.source === undefined) && (missing27 = "source")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {if(data85.source !== undefined){if("unknown" !== data85.source){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}}var _valid34 = _errs333 === errors;errors = _errs332;if(vErrors !== null){if(_errs332){vErrors.length = _errs332;}else {vErrors = null;}}let ifClause5;if(_valid34){const _errs336 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){if(data85.count !== null){const err191 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/then/properties/count/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}var _valid34 = _errs336 === errors;valid104 = _valid34;if(valid104){var props9 = {};props9.count = true;props9.source = true;}ifClause5 = "then";}else {const _errs339 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){let data88 = data85.count;const _errs342 = errors;let valid110 = false;const _errs343 = errors;if(!(((typeof data88 == "number") && (!(data88 % 1) && !isNaN(data88))) && (isFinite(data88)))){const err192 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid35 = _errs343 === errors;valid110 = valid110 || _valid35;const _errs345 = errors;if(typeof data88 !== "bigint"){const err193 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid35 = _errs345 === errors;valid110 = valid110 || _valid35;if(!valid110){const err194 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs342;if(vErrors !== null){if(_errs342){vErrors.length = _errs342;}else {vErrors = null;}}}}}var _valid34 = _errs339 === errors;valid104 = _valid34;if(valid104){if(props9 !== true){props9 = props9 || {};props9.count = true;}}ifClause5 = "else";}if(!valid104){const err195 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(errors === _errs330){if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing28;if(((((data85.count === undefined) && (missing28 = "count")) || ((data85.source === undefined) && (missing28 = "source"))) || ((data85.observed_at === undefined) && (missing28 = "observed_at"))) || ((data85.how === undefined) && (missing28 = "how"))){const err196 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/required",keyword:"required",params:{missingProperty: missing28},message:"must have required property '"+missing28+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(props9 !== true){props9 = props9 || {};props9.count = true;props9.source = true;props9.observed_at = true;props9.how = true;}if(data85.count !== undefined){let data89 = data85.count;const _errs346 = errors;const _errs347 = errors;const _errs348 = errors;let valid113 = false;const _errs349 = errors;if((!(((typeof data89 == "number") && (!(data89 % 1) && !isNaN(data89))) && (isFinite(data89)))) && (data89 !== null)){const err197 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.creations.properties.count.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var _valid36 = _errs349 === errors;valid113 = valid113 || _valid36;const _errs351 = errors;if(typeof data89 !== "bigint"){const err198 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var _valid36 = _errs351 === errors;valid113 = valid113 || _valid36;if(!valid113){const err199 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}else {errors = _errs348;if(vErrors !== null){if(_errs348){vErrors.length = _errs348;}else {vErrors = null;}}}var valid112 = _errs347 === errors;if(valid112){if(typeof data89 === "bigint"){if(data89 < 0){const err200 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}if(errors === _errs346){if((typeof data89 == "number") && (isFinite(data89))){if(data89 < 0 || isNaN(data89)){const err201 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}var valid111 = _errs346 === errors;}else {var valid111 = true;}if(valid111){if(data85.source !== undefined){let data90 = data85.source;const _errs352 = errors;if(typeof data90 !== "string"){const err202 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(!((((((data90 === "provider") || (data90 === "published")) || (data90 === "measured")) || (data90 === "recorded")) || (data90 === "calculated")) || (data90 === "unknown"))){const err203 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var valid111 = _errs352 === errors;}else {var valid111 = true;}if(valid111){if(data85.observed_at !== undefined){let data91 = data85.observed_at;const _errs355 = errors;const _errs356 = errors;if(errors === _errs356){if(errors === _errs356){if(typeof data91 === "string"){if(!pattern78.test(data91)){const err204 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(!(formats0.validate(data91))){const err205 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}}else {const err206 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}var valid111 = _errs355 === errors;}else {var valid111 = true;}if(valid111){if(data85.how !== undefined){let data92 = data85.how;const _errs358 = errors;const _errs359 = errors;if(errors === _errs359){if(typeof data92 === "string"){if(func1(data92) < 1){const err207 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}else {const err208 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var valid111 = _errs358 === errors;}else {var valid111 = true;}}}}}}else {const err209 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}var valid33 = _errs330 === errors;}else {var valid33 = true;}if(valid33){if(data35.active_cpu !== undefined){let data93 = data35.active_cpu;const _errs361 = errors;const _errs363 = errors;let valid117 = true;const _errs364 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing29;if((data93.source === undefined) && (missing29 = "source")){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(data93.source !== undefined){if("unknown" !== data93.source){const err211 = {};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}}var _valid37 = _errs364 === errors;errors = _errs363;if(vErrors !== null){if(_errs363){vErrors.length = _errs363;}else {vErrors = null;}}let ifClause6;if(_valid37){const _errs367 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){if(data93.seconds !== null){const err212 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}var _valid37 = _errs367 === errors;valid117 = _valid37;if(valid117){var props10 = {};props10.seconds = true;props10.source = true;}ifClause6 = "then";}else {const _errs370 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){let data96 = data93.seconds;const _errs373 = errors;let valid123 = false;const _errs374 = errors;if(!((typeof data96 == "number") && (isFinite(data96)))){const err213 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid38 = _errs374 === errors;valid123 = valid123 || _valid38;const _errs376 = errors;if(typeof data96 !== "bigint"){const err214 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var _valid38 = _errs376 === errors;valid123 = valid123 || _valid38;if(!valid123){const err215 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}else {errors = _errs373;if(vErrors !== null){if(_errs373){vErrors.length = _errs373;}else {vErrors = null;}}}}}var _valid37 = _errs370 === errors;valid117 = _valid37;if(valid117){if(props10 !== true){props10 = props10 || {};props10.seconds = true;}}ifClause6 = "else";}if(!valid117){const err216 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(errors === _errs361){if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing30;if(((((data93.seconds === undefined) && (missing30 = "seconds")) || ((data93.source === undefined) && (missing30 = "source"))) || ((data93.observed_at === undefined) && (missing30 = "observed_at"))) || ((data93.how === undefined) && (missing30 = "how"))){const err217 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/required",keyword:"required",params:{missingProperty: missing30},message:"must have required property '"+missing30+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {if(props10 !== true){props10 = props10 || {};props10.seconds = true;props10.source = true;props10.observed_at = true;props10.how = true;}if(data93.seconds !== undefined){let data97 = data93.seconds;const _errs377 = errors;const _errs378 = errors;const _errs379 = errors;let valid126 = false;const _errs380 = errors;if((!((typeof data97 == "number") && (isFinite(data97)))) && (data97 !== null)){const err218 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.active_cpu.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var _valid39 = _errs380 === errors;valid126 = valid126 || _valid39;const _errs382 = errors;if(typeof data97 !== "bigint"){const err219 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}var _valid39 = _errs382 === errors;valid126 = valid126 || _valid39;if(!valid126){const err220 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}var valid125 = _errs378 === errors;if(valid125){if(typeof data97 === "bigint"){if(data97 < 0){const err221 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}if(errors === _errs377){if((typeof data97 == "number") && (isFinite(data97))){if(data97 < 0 || isNaN(data97)){const err222 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}var valid124 = _errs377 === errors;}else {var valid124 = true;}if(valid124){if(data93.source !== undefined){let data98 = data93.source;const _errs383 = errors;if(typeof data98 !== "string"){const err223 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if(!((((((data98 === "provider") || (data98 === "published")) || (data98 === "measured")) || (data98 === "recorded")) || (data98 === "calculated")) || (data98 === "unknown"))){const err224 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}var valid124 = _errs383 === errors;}else {var valid124 = true;}if(valid124){if(data93.observed_at !== undefined){let data99 = data93.observed_at;const _errs386 = errors;const _errs387 = errors;if(errors === _errs387){if(errors === _errs387){if(typeof data99 === "string"){if(!pattern78.test(data99)){const err225 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(!(formats0.validate(data99))){const err226 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}else {const err227 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}var valid124 = _errs386 === errors;}else {var valid124 = true;}if(valid124){if(data93.how !== undefined){let data100 = data93.how;const _errs389 = errors;const _errs390 = errors;if(errors === _errs390){if(typeof data100 === "string"){if(func1(data100) < 1){const err228 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}var valid124 = _errs389 === errors;}else {var valid124 = true;}}}}}}else {const err230 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}var valid33 = _errs361 === errors;}else {var valid33 = true;}if(valid33){if(data35.egress !== undefined){let data101 = data35.egress;const _errs392 = errors;const _errs394 = errors;let valid130 = true;const _errs395 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing31;if((data101.source === undefined) && (missing31 = "source")){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}else {if(data101.source !== undefined){if("unknown" !== data101.source){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}}var _valid40 = _errs395 === errors;errors = _errs394;if(vErrors !== null){if(_errs394){vErrors.length = _errs394;}else {vErrors = null;}}let ifClause7;if(_valid40){const _errs398 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){if(data101.bytes !== null){const err233 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/then/properties/bytes/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}var _valid40 = _errs398 === errors;valid130 = _valid40;if(valid130){var props11 = {};props11.bytes = true;props11.source = true;}ifClause7 = "then";}else {const _errs401 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){let data104 = data101.bytes;const _errs404 = errors;let valid136 = false;const _errs405 = errors;if(!(((typeof data104 == "number") && (!(data104 % 1) && !isNaN(data104))) && (isFinite(data104)))){const err234 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var _valid41 = _errs405 === errors;valid136 = valid136 || _valid41;const _errs407 = errors;if(typeof data104 !== "bigint"){const err235 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}var _valid41 = _errs407 === errors;valid136 = valid136 || _valid41;if(!valid136){const err236 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {errors = _errs404;if(vErrors !== null){if(_errs404){vErrors.length = _errs404;}else {vErrors = null;}}}}}var _valid40 = _errs401 === errors;valid130 = _valid40;if(valid130){if(props11 !== true){props11 = props11 || {};props11.bytes = true;}}ifClause7 = "else";}if(!valid130){const err237 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(errors === _errs392){if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing32;if(((((data101.bytes === undefined) && (missing32 = "bytes")) || ((data101.source === undefined) && (missing32 = "source"))) || ((data101.observed_at === undefined) && (missing32 = "observed_at"))) || ((data101.how === undefined) && (missing32 = "how"))){const err238 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/required",keyword:"required",params:{missingProperty: missing32},message:"must have required property '"+missing32+"'"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(props11 !== true){props11 = props11 || {};props11.bytes = true;props11.source = true;props11.observed_at = true;props11.how = true;}if(data101.bytes !== undefined){let data105 = data101.bytes;const _errs408 = errors;const _errs409 = errors;const _errs410 = errors;let valid139 = false;const _errs411 = errors;if((!(((typeof data105 == "number") && (!(data105 % 1) && !isNaN(data105))) && (isFinite(data105)))) && (data105 !== null)){const err239 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.egress.properties.bytes.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}var _valid42 = _errs411 === errors;valid139 = valid139 || _valid42;const _errs413 = errors;if(typeof data105 !== "bigint"){const err240 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid42 = _errs413 === errors;valid139 = valid139 || _valid42;if(!valid139){const err241 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {errors = _errs410;if(vErrors !== null){if(_errs410){vErrors.length = _errs410;}else {vErrors = null;}}}var valid138 = _errs409 === errors;if(valid138){if(typeof data105 === "bigint"){if(data105 < 0){const err242 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}if(errors === _errs408){if((typeof data105 == "number") && (isFinite(data105))){if(data105 < 0 || isNaN(data105)){const err243 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}var valid137 = _errs408 === errors;}else {var valid137 = true;}if(valid137){if(data101.source !== undefined){let data106 = data101.source;const _errs414 = errors;if(typeof data106 !== "string"){const err244 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}if(!((((((data106 === "provider") || (data106 === "published")) || (data106 === "measured")) || (data106 === "recorded")) || (data106 === "calculated")) || (data106 === "unknown"))){const err245 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}var valid137 = _errs414 === errors;}else {var valid137 = true;}if(valid137){if(data101.observed_at !== undefined){let data107 = data101.observed_at;const _errs417 = errors;const _errs418 = errors;if(errors === _errs418){if(errors === _errs418){if(typeof data107 === "string"){if(!pattern78.test(data107)){const err246 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {if(!(formats0.validate(data107))){const err247 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}var valid137 = _errs417 === errors;}else {var valid137 = true;}if(valid137){if(data101.how !== undefined){let data108 = data101.how;const _errs420 = errors;const _errs421 = errors;if(errors === _errs421){if(typeof data108 === "string"){if(func1(data108) < 1){const err249 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}else {const err250 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}var valid137 = _errs420 === errors;}else {var valid137 = true;}}}}}}else {const err251 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}var valid33 = _errs392 === errors;}else {var valid33 = true;}if(valid33){if(data35.snapshot_storage !== undefined){let data109 = data35.snapshot_storage;const _errs423 = errors;const _errs425 = errors;let valid143 = true;const _errs426 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing33;if((data109.source === undefined) && (missing33 = "source")){const err252 = {};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}else {if(data109.source !== undefined){if("unknown" !== data109.source){const err253 = {};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}}var _valid43 = _errs426 === errors;errors = _errs425;if(vErrors !== null){if(_errs425){vErrors.length = _errs425;}else {vErrors = null;}}let ifClause8;if(_valid43){const _errs429 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(data109.gb !== undefined){if(data109.gb !== null){const err254 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/then/properties/gb/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}}var _valid43 = _errs429 === errors;valid143 = _valid43;if(valid143){var props12 = {};props12.gb = true;props12.source = true;}ifClause8 = "then";}else {const _errs432 = errors;const _errs433 = errors;let valid147 = false;const _errs434 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing34;if((data109.gb === undefined) && (missing34 = "gb")){const err255 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing34},message:"must have required property '"+missing34+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}else {if(data109.gb !== undefined){let data112 = data109.gb;const _errs437 = errors;let valid150 = false;const _errs438 = errors;if(!((typeof data112 == "number") && (isFinite(data112)))){const err256 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}var _valid45 = _errs438 === errors;valid150 = valid150 || _valid45;const _errs440 = errors;if(typeof data112 !== "bigint"){const err257 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}var _valid45 = _errs440 === errors;valid150 = valid150 || _valid45;if(!valid150){const err258 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}}}}}var _valid44 = _errs434 === errors;valid147 = valid147 || _valid44;if(_valid44){var props13 = {};props13.gb = true;}const _errs441 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing35;if((data109.bytes === undefined) && (missing35 = "bytes")){const err259 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing35},message:"must have required property '"+missing35+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}var _valid44 = _errs441 === errors;valid147 = valid147 || _valid44;if(!valid147){const err260 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {errors = _errs433;if(vErrors !== null){if(_errs433){vErrors.length = _errs433;}else {vErrors = null;}}}var _valid43 = _errs432 === errors;valid143 = _valid43;if(valid143){if(props12 !== true && props13 !== undefined){if(props13 === true){props12 = true;}else {props12 = props12 || {};Object.assign(props12, props13);}}}ifClause8 = "else";}if(!valid143){const err261 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/if",keyword:"if",params:{failingKeyword: ifClause8},message:"must match \""+ifClause8+"\" schema"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(errors === _errs423){if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing36;if((((data109.source === undefined) && (missing36 = "source")) || ((data109.observed_at === undefined) && (missing36 = "observed_at"))) || ((data109.how === undefined) && (missing36 = "how"))){const err262 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/required",keyword:"required",params:{missingProperty: missing36},message:"must have required property '"+missing36+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}else {if(props12 !== true){props12 = props12 || {};props12.gb = true;props12.max_gb = true;props12.source = true;props12.observed_at = true;props12.how = true;props12.bytes = true;}if(data109.gb !== undefined){let data113 = data109.gb;const _errs442 = errors;const _errs443 = errors;const _errs444 = errors;let valid153 = false;const _errs445 = errors;if((!((typeof data113 == "number") && (isFinite(data113)))) && (data113 !== null)){const err263 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid46 = _errs445 === errors;valid153 = valid153 || _valid46;const _errs447 = errors;if(typeof data113 !== "bigint"){const err264 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}var _valid46 = _errs447 === errors;valid153 = valid153 || _valid46;if(!valid153){const err265 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}else {errors = _errs444;if(vErrors !== null){if(_errs444){vErrors.length = _errs444;}else {vErrors = null;}}}var valid152 = _errs443 === errors;if(valid152){if(typeof data113 === "bigint"){if(data113 < 0){const err266 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}if(errors === _errs442){if((typeof data113 == "number") && (isFinite(data113))){if(data113 < 0 || isNaN(data113)){const err267 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}}var valid151 = _errs442 === errors;}else {var valid151 = true;}if(valid151){if(data109.max_gb !== undefined){let data114 = data109.max_gb;const _errs448 = errors;const _errs449 = errors;const _errs450 = errors;let valid155 = false;const _errs451 = errors;if((!((typeof data114 == "number") && (isFinite(data114)))) && (data114 !== null)){const err268 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.max_gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}var _valid47 = _errs451 === errors;valid155 = valid155 || _valid47;const _errs453 = errors;if(typeof data114 !== "bigint"){const err269 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}var _valid47 = _errs453 === errors;valid155 = valid155 || _valid47;if(!valid155){const err270 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {errors = _errs450;if(vErrors !== null){if(_errs450){vErrors.length = _errs450;}else {vErrors = null;}}}var valid154 = _errs449 === errors;if(valid154){if(typeof data114 === "bigint"){if(data114 < 0){const err271 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}}if(errors === _errs448){if((typeof data114 == "number") && (isFinite(data114))){if(data114 < 0 || isNaN(data114)){const err272 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}var valid151 = _errs448 === errors;}else {var valid151 = true;}if(valid151){if(data109.source !== undefined){let data115 = data109.source;const _errs454 = errors;if(typeof data115 !== "string"){const err273 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}if(!((((((data115 === "provider") || (data115 === "published")) || (data115 === "measured")) || (data115 === "recorded")) || (data115 === "calculated")) || (data115 === "unknown"))){const err274 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}var valid151 = _errs454 === errors;}else {var valid151 = true;}if(valid151){if(data109.observed_at !== undefined){let data116 = data109.observed_at;const _errs457 = errors;const _errs458 = errors;if(errors === _errs458){if(errors === _errs458){if(typeof data116 === "string"){if(!pattern78.test(data116)){const err275 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {if(!(formats0.validate(data116))){const err276 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}var valid151 = _errs457 === errors;}else {var valid151 = true;}if(valid151){if(data109.how !== undefined){let data117 = data109.how;const _errs460 = errors;const _errs461 = errors;if(errors === _errs461){if(typeof data117 === "string"){if(func1(data117) < 1){const err278 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}else {const err279 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}var valid151 = _errs460 === errors;}else {var valid151 = true;}if(valid151){if(data109.bytes !== undefined){let data118 = data109.bytes;const _errs463 = errors;const _errs464 = errors;const _errs465 = errors;let valid160 = false;const _errs466 = errors;if(!(((typeof data118 == "number") && (!(data118 % 1) && !isNaN(data118))) && (isFinite(data118)))){const err280 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}var _valid48 = _errs466 === errors;valid160 = valid160 || _valid48;const _errs468 = errors;if(typeof data118 !== "bigint"){const err281 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}var _valid48 = _errs468 === errors;valid160 = valid160 || _valid48;if(!valid160){const err282 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}else {errors = _errs465;if(vErrors !== null){if(_errs465){vErrors.length = _errs465;}else {vErrors = null;}}}var valid159 = _errs464 === errors;if(valid159){if(typeof data118 === "bigint"){if(data118 < 0){const err283 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}}if(errors === _errs463){if((typeof data118 == "number") && (isFinite(data118))){if(data118 < 0 || isNaN(data118)){const err284 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}var valid151 = _errs463 === errors;}else {var valid151 = true;}}}}}}}}else {const err285 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}var valid33 = _errs423 === errors;}else {var valid33 = true;}}}}}}}}}}}}}else {const err286 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}var _valid15 = _errs136 === errors;valid32 = valid32 || _valid15;if(_valid15){var props14 = true;}const _errs469 = errors;if(errors === _errs469){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing37;if(((((((data35.provider === undefined) && (missing37 = "provider")) || ((data35.started === undefined) && (missing37 = "started"))) || ((data35.region === undefined) && (missing37 = "region"))) || ((data35.size === undefined) && (missing37 = "size"))) || ((data35.intervals === undefined) && (missing37 = "intervals"))) || ((data35.creations === undefined) && (missing37 = "creations"))){const err287 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/required",keyword:"required",params:{missingProperty: missing37},message:"must have required property '"+missing37+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}else {const _errs471 = errors;for(const key2 in data35){if(!(func237.call(schema320.properties.usage.anyOf[1].properties, key2))){const err288 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;break;}}if(_errs471 === errors){if(data35.provider !== undefined){let data119 = data35.provider;const _errs472 = errors;const _errs473 = errors;if(errors === _errs473){if(typeof data119 === "string"){if(!pattern42.test(data119)){const err289 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}var valid161 = _errs472 === errors;}else {var valid161 = true;}if(valid161){if(data35.class !== undefined){const _errs475 = errors;if(!(validate344(data35.class, {instancePath:instancePath+"/usage/class",parentData:data35,parentDataProperty:"class",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate344.errors : vErrors.concat(validate344.errors);errors = vErrors.length;}var valid161 = _errs475 === errors;}else {var valid161 = true;}if(valid161){if(data35.started !== undefined){const _errs476 = errors;if(!(validate346(data35.started, {instancePath:instancePath+"/usage/started",parentData:data35,parentDataProperty:"started",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate346.errors : vErrors.concat(validate346.errors);errors = vErrors.length;}var valid161 = _errs476 === errors;}else {var valid161 = true;}if(valid161){if(data35.region !== undefined){const _errs477 = errors;if(!(validate348(data35.region, {instancePath:instancePath+"/usage/region",parentData:data35,parentDataProperty:"region",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate348.errors : vErrors.concat(validate348.errors);errors = vErrors.length;}var valid161 = _errs477 === errors;}else {var valid161 = true;}if(valid161){if(data35.size !== undefined){let data123 = data35.size;const _errs478 = errors;const _errs480 = errors;const _errs481 = errors;let valid164 = true;const _errs482 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing38;if((data123.gpu === undefined) && (missing38 = "gpu")){const err291 = {};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}var _valid49 = _errs482 === errors;errors = _errs481;if(vErrors !== null){if(_errs481){vErrors.length = _errs481;}else {vErrors = null;}}if(_valid49){const _errs483 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing39;if((data123.gpu_model === undefined) && (missing39 = "gpu_model")){const err292 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing39},message:"must have required property '"+missing39+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}var _valid49 = _errs483 === errors;valid164 = _valid49;}if(!valid164){const err293 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var valid163 = _errs480 === errors;if(valid163){const _errs484 = errors;const _errs485 = errors;let valid165 = true;const _errs486 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing40;if((data123.gpu_model === undefined) && (missing40 = "gpu_model")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}var _valid50 = _errs486 === errors;errors = _errs485;if(vErrors !== null){if(_errs485){vErrors.length = _errs485;}else {vErrors = null;}}if(_valid50){const _errs487 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing41;if((data123.gpu === undefined) && (missing41 = "gpu")){const err295 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing41},message:"must have required property '"+missing41+"'"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}var _valid50 = _errs487 === errors;valid165 = _valid50;}if(!valid165){const err296 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var valid163 = _errs484 === errors;if(valid163){const _errs488 = errors;let valid166 = true;const _errs489 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing42;if((data123.source === undefined) && (missing42 = "source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data123.source !== undefined){if("unknown" !== data123.source){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}}var _valid51 = _errs489 === errors;errors = _errs488;if(vErrors !== null){if(_errs488){vErrors.length = _errs488;}else {vErrors = null;}}let ifClause9;if(_valid51){const _errs492 = errors;const _errs494 = errors;const _errs495 = errors;const _errs496 = errors;let valid171 = false;const _errs497 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing43;if((data123.cpu === undefined) && (missing43 = "cpu")){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}var _valid52 = _errs497 === errors;valid171 = valid171 || _valid52;const _errs498 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing44;if((data123.memory_mib === undefined) && (missing44 = "memory_mib")){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}var _valid52 = _errs498 === errors;valid171 = valid171 || _valid52;const _errs499 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing45;if((data123.disk_mib === undefined) && (missing45 = "disk_mib")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}var _valid52 = _errs499 === errors;valid171 = valid171 || _valid52;const _errs500 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing46;if((data123.gpu === undefined) && (missing46 = "gpu")){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}var _valid52 = _errs500 === errors;valid171 = valid171 || _valid52;const _errs501 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing47;if((data123.gpu_model === undefined) && (missing47 = "gpu_model")){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid52 = _errs501 === errors;valid171 = valid171 || _valid52;if(!valid171){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}var valid170 = _errs495 === errors;if(valid170){const err305 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}var _valid51 = _errs492 === errors;valid166 = _valid51;ifClause9 = "then";}else {const _errs502 = errors;const _errs504 = errors;let valid173 = false;const _errs505 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing48;if((data123.cpu === undefined) && (missing48 = "cpu")){const err306 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing48},message:"must have required property '"+missing48+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}var _valid53 = _errs505 === errors;valid173 = valid173 || _valid53;const _errs506 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing49;if((data123.memory_mib === undefined) && (missing49 = "memory_mib")){const err307 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing49},message:"must have required property '"+missing49+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}}var _valid53 = _errs506 === errors;valid173 = valid173 || _valid53;const _errs507 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing50;if((data123.disk_mib === undefined) && (missing50 = "disk_mib")){const err308 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing50},message:"must have required property '"+missing50+"'"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid53 = _errs507 === errors;valid173 = valid173 || _valid53;const _errs508 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing51;if((data123.gpu === undefined) && (missing51 = "gpu")){const err309 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing51},message:"must have required property '"+missing51+"'"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}var _valid53 = _errs508 === errors;valid173 = valid173 || _valid53;if(!valid173){const err310 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {errors = _errs504;if(vErrors !== null){if(_errs504){vErrors.length = _errs504;}else {vErrors = null;}}}var _valid51 = _errs502 === errors;valid166 = _valid51;ifClause9 = "else";}if(!valid166){const err311 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/if",keyword:"if",params:{failingKeyword: ifClause9},message:"must match \""+ifClause9+"\" schema"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}if(errors === _errs478){if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing52;if((((data123.source === undefined) && (missing52 = "source")) || ((data123.observed_at === undefined) && (missing52 = "observed_at"))) || ((data123.how === undefined) && (missing52 = "how"))){const err312 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/required",keyword:"required",params:{missingProperty: missing52},message:"must have required property '"+missing52+"'"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}else {if(data123.cpu !== undefined){let data125 = data123.cpu;const _errs509 = errors;const _errs510 = errors;const _errs511 = errors;const _errs512 = errors;let valid177 = false;const _errs513 = errors;if(!((typeof data125 == "number") && (isFinite(data125)))){const err313 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid54 = _errs513 === errors;valid177 = valid177 || _valid54;const _errs515 = errors;if(typeof data125 !== "bigint"){const err314 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}var _valid54 = _errs515 === errors;valid177 = valid177 || _valid54;if(!valid177){const err315 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}else {errors = _errs512;if(vErrors !== null){if(_errs512){vErrors.length = _errs512;}else {vErrors = null;}}}var valid176 = _errs511 === errors;if(valid176){if(typeof data125 === "bigint"){if(data125 <= 0){const err316 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}}if(errors === _errs510){if((typeof data125 == "number") && (isFinite(data125))){if(data125 <= 0 || isNaN(data125)){const err317 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}}var valid174 = _errs509 === errors;}else {var valid174 = true;}if(valid174){if(data123.memory_mib !== undefined){let data126 = data123.memory_mib;const _errs516 = errors;const _errs517 = errors;const _errs518 = errors;const _errs519 = errors;let valid180 = false;const _errs520 = errors;if(!(((typeof data126 == "number") && (!(data126 % 1) && !isNaN(data126))) && (isFinite(data126)))){const err318 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}var _valid55 = _errs520 === errors;valid180 = valid180 || _valid55;const _errs522 = errors;if(typeof data126 !== "bigint"){const err319 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid55 = _errs522 === errors;valid180 = valid180 || _valid55;if(!valid180){const err320 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs519;if(vErrors !== null){if(_errs519){vErrors.length = _errs519;}else {vErrors = null;}}}var valid179 = _errs518 === errors;if(valid179){if(typeof data126 === "bigint"){if(data126 < 1){const err321 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}}}if(errors === _errs517){if((typeof data126 == "number") && (isFinite(data126))){if(data126 < 1 || isNaN(data126)){const err322 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}}var valid174 = _errs516 === errors;}else {var valid174 = true;}if(valid174){if(data123.disk_mib !== undefined){let data127 = data123.disk_mib;const _errs523 = errors;const _errs524 = errors;const _errs525 = errors;const _errs526 = errors;let valid183 = false;const _errs527 = errors;if(!(((typeof data127 == "number") && (!(data127 % 1) && !isNaN(data127))) && (isFinite(data127)))){const err323 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}var _valid56 = _errs527 === errors;valid183 = valid183 || _valid56;const _errs529 = errors;if(typeof data127 !== "bigint"){const err324 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}var _valid56 = _errs529 === errors;valid183 = valid183 || _valid56;if(!valid183){const err325 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}}var valid182 = _errs525 === errors;if(valid182){if(typeof data127 === "bigint"){if(data127 < 1){const err326 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}if(errors === _errs524){if((typeof data127 == "number") && (isFinite(data127))){if(data127 < 1 || isNaN(data127)){const err327 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}}var valid174 = _errs523 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu !== undefined){const _errs530 = errors;if(0 !== data123.gpu){const err328 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/1/properties/size/properties/gpu/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}var valid174 = _errs530 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu_model !== undefined){let data129 = data123.gpu_model;const _errs531 = errors;const _errs532 = errors;if(errors === _errs532){if(typeof data129 === "string"){if(!pattern219.test(data129)){const err329 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}else {const err330 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}var valid174 = _errs531 === errors;}else {var valid174 = true;}if(valid174){if(data123.source !== undefined){let data130 = data123.source;const _errs534 = errors;if(typeof data130 !== "string"){const err331 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(!((((((data130 === "provider") || (data130 === "published")) || (data130 === "measured")) || (data130 === "recorded")) || (data130 === "calculated")) || (data130 === "unknown"))){const err332 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}var valid174 = _errs534 === errors;}else {var valid174 = true;}if(valid174){if(data123.observed_at !== undefined){let data131 = data123.observed_at;const _errs537 = errors;const _errs538 = errors;if(errors === _errs538){if(errors === _errs538){if(typeof data131 === "string"){if(!pattern78.test(data131)){const err333 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}else {if(!(formats0.validate(data131))){const err334 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}var valid174 = _errs537 === errors;}else {var valid174 = true;}if(valid174){if(data123.how !== undefined){let data132 = data123.how;const _errs540 = errors;const _errs541 = errors;if(errors === _errs541){if(typeof data132 === "string"){if(func1(data132) < 1){const err336 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}else {const err337 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}var valid174 = _errs540 === errors;}else {var valid174 = true;}}}}}}}}}}else {const err338 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}var valid161 = _errs478 === errors;}else {var valid161 = true;}if(valid161){if(data35.intervals !== undefined){const _errs543 = errors;if(!(validate350(data35.intervals, {instancePath:instancePath+"/usage/intervals",parentData:data35,parentDataProperty:"intervals",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate350.errors : vErrors.concat(validate350.errors);errors = vErrors.length;}var valid161 = _errs543 === errors;}else {var valid161 = true;}if(valid161){if(data35.creations !== undefined){const _errs544 = errors;if(!(validate354(data35.creations, {instancePath:instancePath+"/usage/creations",parentData:data35,parentDataProperty:"creations",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate354.errors : vErrors.concat(validate354.errors);errors = vErrors.length;}var valid161 = _errs544 === errors;}else {var valid161 = true;}if(valid161){if(data35.active_cpu !== undefined){const _errs545 = errors;if(!(validate356(data35.active_cpu, {instancePath:instancePath+"/usage/active_cpu",parentData:data35,parentDataProperty:"active_cpu",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate356.errors : vErrors.concat(validate356.errors);errors = vErrors.length;}var valid161 = _errs545 === errors;}else {var valid161 = true;}if(valid161){if(data35.egress !== undefined){const _errs546 = errors;if(!(validate358(data35.egress, {instancePath:instancePath+"/usage/egress",parentData:data35,parentDataProperty:"egress",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate358.errors : vErrors.concat(validate358.errors);errors = vErrors.length;}var valid161 = _errs546 === errors;}else {var valid161 = true;}}}}}}}}}}}}else {const err339 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}var _valid15 = _errs469 === errors;valid32 = valid32 || _valid15;if(_valid15){if(props14 !== true){props14 = true;}}const _errs547 = errors;if(data35 !== null){const err340 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}var _valid15 = _errs547 === errors;valid32 = valid32 || _valid15;if(!valid32){const err341 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}var valid0 = _errs134 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data137 = data.cost;const _errs549 = errors;const _errs550 = errors;let valid188 = false;const _errs551 = errors;const _errs553 = errors;const _errs554 = errors;let valid190 = true;const _errs555 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing53;if((data137.label === undefined) && (missing53 = "label")){const err342 = {};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err343 = {};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}}var _valid58 = _errs555 === errors;errors = _errs554;if(vErrors !== null){if(_errs554){vErrors.length = _errs554;}else {vErrors = null;}}let ifClause10;if(_valid58){const _errs557 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err344 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}}var _valid58 = _errs557 === errors;valid190 = _valid58;if(valid190){var props21 = {};props21.total = true;props21.label = true;}ifClause10 = "then";}else {const _errs560 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data140 = data137.total;if(!(data140 && typeof data140 == "object" && !Array.isArray(data140))){const err345 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}}var _valid58 = _errs560 === errors;valid190 = _valid58;if(valid190){if(props21 !== true){props21 = props21 || {};props21.total = true;}}ifClause10 = "else";}if(!valid190){const err346 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause10},message:"must match \""+ifClause10+"\" schema"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}var valid189 = _errs553 === errors;if(valid189){const _errs563 = errors;const _errs564 = errors;let valid194 = true;const _errs565 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing54;if((data137.label === undefined) && (missing54 = "label")){const err347 = {};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}else {if(data137.label !== undefined){if("reported" !== data137.label){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}}var _valid59 = _errs565 === errors;errors = _errs564;if(vErrors !== null){if(_errs564){vErrors.length = _errs564;}else {vErrors = null;}}let ifClause11;if(_valid59){const _errs567 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing55;if((data137.reported_figure === undefined) && (missing55 = "reported_figure")){const err349 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: missing55},message:"must have required property '"+missing55+"'"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}var _valid59 = _errs567 === errors;valid194 = _valid59;ifClause11 = "then";}else {const _errs568 = errors;const _errs569 = errors;const _errs570 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing56;if((data137.reported_figure === undefined) && (missing56 = "reported_figure")){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}var valid196 = _errs570 === errors;if(valid196){const err351 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}else {errors = _errs569;if(vErrors !== null){if(_errs569){vErrors.length = _errs569;}else {vErrors = null;}}}var _valid59 = _errs568 === errors;valid194 = _valid59;ifClause11 = "else";}if(!valid194){const err352 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause11},message:"must match \""+ifClause11+"\" schema"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid189 = _errs563 === errors;if(valid189){if(props21 !== true){props21 = props21 || {};props21.label = true;}}}if(errors === _errs551){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing57;if((((((((data137.label === undefined) && (missing57 = "label")) || ((data137.total === undefined) && (missing57 = "total"))) || ((data137.lines === undefined) && (missing57 = "lines"))) || ((data137.held_back_by === undefined) && (missing57 = "held_back_by"))) || ((data137.exclusions === undefined) && (missing57 = "exclusions"))) || ((data137.price_version === undefined) && (missing57 = "price_version"))) || ((data137.as_of === undefined) && (missing57 = "as_of"))){const err353 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/required",keyword:"required",params:{missingProperty: missing57},message:"must have required property '"+missing57+"'"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {const _errs571 = errors;for(const key3 in data137){if(!(func237.call(schema320.properties.cost.anyOf[0].properties, key3))){const err354 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;break;}}if(_errs571 === errors){if(data137.label !== undefined){let data142 = data137.label;const _errs572 = errors;if(!(((data142 === "reported") || (data142 === "calculated")) || (data142 === "unknown"))){const err355 = {instancePath:instancePath+"/cost/label",schemaPath:"#/properties/cost/anyOf/0/properties/label/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.label.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}var valid197 = _errs572 === errors;}else {var valid197 = true;}if(valid197){if(data137.total !== undefined){let data143 = data137.total;const _errs573 = errors;const _errs574 = errors;let valid198 = false;const _errs575 = errors;if(!(validate118(data143, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);errors = vErrors.length;}var _valid60 = _errs575 === errors;valid198 = valid198 || _valid60;if(_valid60){var props22 = {};props22.low = true;props22.high = true;}const _errs576 = errors;if(data143 !== null){const err356 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid60 = _errs576 === errors;valid198 = valid198 || _valid60;if(!valid198){const err357 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}else {errors = _errs574;if(vErrors !== null){if(_errs574){vErrors.length = _errs574;}else {vErrors = null;}}}var valid197 = _errs573 === errors;}else {var valid197 = true;}if(valid197){if(data137.lines !== undefined){let data144 = data137.lines;const _errs578 = errors;if(errors === _errs578){if(Array.isArray(data144)){var valid199 = true;const len1 = data144.length;for(let i1=0; i1<len1; i1++){let data145 = data144[i1];const _errs580 = errors;if(errors === _errs580){if(data145 && typeof data145 == "object" && !Array.isArray(data145)){let missing58;if(((((((data145.what === undefined) && (missing58 = "what")) || ((data145.quantity === undefined) && (missing58 = "quantity"))) || ((data145.unit === undefined) && (missing58 = "unit"))) || ((data145.rate === undefined) && (missing58 = "rate"))) || ((data145.amount === undefined) && (missing58 = "amount"))) || ((data145.quantity_source === undefined) && (missing58 = "quantity_source"))){const err358 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/required",keyword:"required",params:{missingProperty: missing58},message:"must have required property '"+missing58+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}else {if(data145.what !== undefined){let data146 = data145.what;const _errs582 = errors;if(!((((((((data146 === "cpu") || (data146 === "memory")) || (data146 === "disk")) || (data146 === "gpu")) || (data146 === "machine")) || (data146 === "creation")) || (data146 === "egress")) || (data146 === "snapshot_storage"))){const err359 = {instancePath:instancePath+"/cost/lines/" + i1+"/what",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/what/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.lines.items.properties.what.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}var valid200 = _errs582 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity !== undefined){let data147 = data145.quantity;const _errs583 = errors;const _errs584 = errors;if(errors === _errs584){if(typeof data147 === "string"){if(!pattern50.test(data147)){const err360 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}else {const err361 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}var valid200 = _errs583 === errors;}else {var valid200 = true;}if(valid200){if(data145.unit !== undefined){let data148 = data145.unit;const _errs586 = errors;if(errors === _errs586){if(typeof data148 === "string"){if(func1(data148) < 1){const err362 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}else {const err363 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}var valid200 = _errs586 === errors;}else {var valid200 = true;}if(valid200){if(data145.rate !== undefined){let data149 = data145.rate;const _errs588 = errors;const _errs589 = errors;if(errors === _errs589){if(typeof data149 === "string"){if(!pattern50.test(data149)){const err364 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}else {const err365 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}var valid200 = _errs588 === errors;}else {var valid200 = true;}if(valid200){if(data145.amount !== undefined){let data150 = data145.amount;const _errs591 = errors;const _errs592 = errors;if(errors === _errs592){if(typeof data150 === "string"){if(!pattern50.test(data150)){const err366 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}else {const err367 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}var valid200 = _errs591 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity_source !== undefined){let data151 = data145.quantity_source;const _errs594 = errors;if(typeof data151 !== "string"){const err368 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(!((((((data151 === "provider") || (data151 === "published")) || (data151 === "measured")) || (data151 === "recorded")) || (data151 === "calculated")) || (data151 === "unknown"))){const err369 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}var valid200 = _errs594 === errors;}else {var valid200 = true;}if(valid200){if(data145.text !== undefined){let data152 = data145.text;const _errs597 = errors;if(errors === _errs597){if(typeof data152 === "string"){if(func1(data152) < 1){const err370 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}else {const err371 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}var valid200 = _errs597 === errors;}else {var valid200 = true;}if(valid200){if(data145.sources !== undefined){let data153 = data145.sources;const _errs599 = errors;if(errors === _errs599){if(data153 && typeof data153 == "object" && !Array.isArray(data153)){let missing59;if((data153.amount === undefined) && (missing59 = "amount")){const err372 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/required",keyword:"required",params:{missingProperty: missing59},message:"must have required property '"+missing59+"'"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {if(data153.quantity !== undefined){let data154 = data153.quantity;const _errs601 = errors;if(errors === _errs601){if(typeof data154 === "string"){if(func1(data154) < 1){const err373 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}var valid205 = _errs601 === errors;}else {var valid205 = true;}if(valid205){if(data153.rate !== undefined){let data155 = data153.rate;const _errs603 = errors;if(errors === _errs603){if(typeof data155 === "string"){if(func1(data155) < 1){const err375 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}}else {const err376 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}var valid205 = _errs603 === errors;}else {var valid205 = true;}if(valid205){if(data153.amount !== undefined){let data156 = data153.amount;const _errs605 = errors;if(errors === _errs605){if(typeof data156 === "string"){if(func1(data156) < 1){const err377 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}else {const err378 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}var valid205 = _errs605 === errors;}else {var valid205 = true;}}}}}else {const err379 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}}var valid200 = _errs599 === errors;}else {var valid200 = true;}}}}}}}}}}else {const err380 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}var valid199 = _errs580 === errors;if(!valid199){break;}}}else {const err381 = {instancePath:instancePath+"/cost/lines",schemaPath:"#/properties/cost/anyOf/0/properties/lines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}var valid197 = _errs578 === errors;}else {var valid197 = true;}if(valid197){if(data137.held_back_by !== undefined){let data157 = data137.held_back_by;const _errs607 = errors;if(errors === _errs607){if(Array.isArray(data157)){var valid206 = true;const len2 = data157.length;for(let i2=0; i2<len2; i2++){let data158 = data157[i2];const _errs609 = errors;if(errors === _errs609){if(typeof data158 === "string"){if(func1(data158) < 1){const err382 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}else {const err383 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}var valid206 = _errs609 === errors;if(!valid206){break;}}}else {const err384 = {instancePath:instancePath+"/cost/held_back_by",schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}var valid197 = _errs607 === errors;}else {var valid197 = true;}if(valid197){if(data137.exclusions !== undefined){let data159 = data137.exclusions;const _errs611 = errors;if(errors === _errs611){if(Array.isArray(data159)){var valid207 = true;const len3 = data159.length;for(let i3=0; i3<len3; i3++){let data160 = data159[i3];const _errs613 = errors;if(errors === _errs613){if(typeof data160 === "string"){if(func1(data160) < 1){const err385 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}else {const err386 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}}var valid207 = _errs613 === errors;if(!valid207){break;}}}else {const err387 = {instancePath:instancePath+"/cost/exclusions",schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}var valid197 = _errs611 === errors;}else {var valid197 = true;}if(valid197){if(data137.price_version !== undefined){let data161 = data137.price_version;const _errs615 = errors;if((typeof data161 !== "string") && (data161 !== null)){const err388 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/type",keyword:"type",params:{type: schema320.properties.cost.anyOf[0].properties.price_version.type},message:"must be string,null"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if(errors === _errs615){if(typeof data161 === "string"){if(!pattern77.test(data161)){const err389 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"+"\""};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}}}var valid197 = _errs615 === errors;}else {var valid197 = true;}if(valid197){if(data137.as_of !== undefined){let data162 = data137.as_of;const _errs617 = errors;const _errs618 = errors;if(errors === _errs618){if(errors === _errs618){if(typeof data162 === "string"){if(!pattern78.test(data162)){const err390 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(!(formats0.validate(data162))){const err391 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}}}else {const err392 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}}var valid197 = _errs617 === errors;}else {var valid197 = true;}if(valid197){if(data137.per_hour !== undefined){const _errs620 = errors;if(!(validate122(data137.per_hour, {instancePath:instancePath+"/cost/per_hour",parentData:data137,parentDataProperty:"per_hour",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);errors = vErrors.length;}var valid197 = _errs620 === errors;}else {var valid197 = true;}if(valid197){if(data137.reported_figure !== undefined){let data164 = data137.reported_figure;const _errs621 = errors;if(errors === _errs621){if(data164 && typeof data164 == "object" && !Array.isArray(data164)){let missing60;if((((data164.source === undefined) && (missing60 = "source")) || ((data164.observed_at === undefined) && (missing60 = "observed_at"))) || ((data164.how === undefined) && (missing60 = "how"))){const err393 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/required",keyword:"required",params:{missingProperty: missing60},message:"must have required property '"+missing60+"'"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}else {if(data164.source !== undefined){let data165 = data164.source;const _errs623 = errors;const _errs624 = errors;if(typeof data165 !== "string"){const err394 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if(!((((((data165 === "provider") || (data165 === "published")) || (data165 === "measured")) || (data165 === "recorded")) || (data165 === "calculated")) || (data165 === "unknown"))){const err395 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid210 = _errs624 === errors;if(valid210){if("provider" !== data165){const err396 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/source/const",keyword:"const",params:{allowedValue: "provider"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}var valid209 = _errs623 === errors;}else {var valid209 = true;}if(valid209){if(data164.observed_at !== undefined){let data166 = data164.observed_at;const _errs626 = errors;const _errs627 = errors;if(errors === _errs627){if(errors === _errs627){if(typeof data166 === "string"){if(!pattern78.test(data166)){const err397 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}else {if(!(formats0.validate(data166))){const err398 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}}}else {const err399 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}var valid209 = _errs626 === errors;}else {var valid209 = true;}if(valid209){if(data164.how !== undefined){let data167 = data164.how;const _errs629 = errors;if(errors === _errs629){if(typeof data167 === "string"){if(func1(data167) < 1){const err400 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}else {const err401 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}var valid209 = _errs629 === errors;}else {var valid209 = true;}}}}}else {const err402 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}var valid197 = _errs621 === errors;}else {var valid197 = true;}if(valid197){if(data137.summary !== undefined){let data168 = data137.summary;const _errs631 = errors;if(errors === _errs631){if(typeof data168 === "string"){if(func1(data168) < 1){const err403 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}}else {const err404 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}var valid197 = _errs631 === errors;}else {var valid197 = true;}}}}}}}}}}}}}else {const err405 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}}var _valid57 = _errs551 === errors;valid188 = valid188 || _valid57;if(_valid57){var props23 = true;}const _errs633 = errors;const _errs635 = errors;let valid212 = true;const _errs636 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing61;if((data137.label === undefined) && (missing61 = "label")){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}}}var _valid61 = _errs636 === errors;errors = _errs635;if(vErrors !== null){if(_errs635){vErrors.length = _errs635;}else {vErrors = null;}}let ifClause12;if(_valid61){const _errs638 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err408 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}}var _valid61 = _errs638 === errors;valid212 = _valid61;if(valid212){var props24 = {};props24.total = true;props24.label = true;}ifClause12 = "then";}else {const _errs641 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data171 = data137.total;if(!(data171 && typeof data171 == "object" && !Array.isArray(data171))){const err409 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}}var _valid61 = _errs641 === errors;valid212 = _valid61;if(valid212){if(props24 !== true){props24 = props24 || {};props24.total = true;}}ifClause12 = "else";}if(!valid212){const err410 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/if",keyword:"if",params:{failingKeyword: ifClause12},message:"must match \""+ifClause12+"\" schema"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}if(errors === _errs633){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing62;if(((data137.label === undefined) && (missing62 = "label")) || ((data137.total === undefined) && (missing62 = "total"))){const err411 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/required",keyword:"required",params:{missingProperty: missing62},message:"must have required property '"+missing62+"'"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}else {const _errs644 = errors;for(const key4 in data137){if(!(((key4 === "label") || (key4 === "total")) || (key4 === "summary"))){const err412 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;break;}}if(_errs644 === errors){if(data137.label !== undefined){let data172 = data137.label;const _errs645 = errors;if(!(((data172 === "reported") || (data172 === "calculated")) || (data172 === "unknown"))){const err413 = {instancePath:instancePath+"/cost/label",schemaPath:"#/components/schemas/CostLabel/enum",keyword:"enum",params:{allowedValues: schema119.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}var valid216 = _errs645 === errors;}else {var valid216 = true;}if(valid216){if(data137.total !== undefined){const _errs647 = errors;if(!(validate117(data137.total, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);errors = vErrors.length;}var valid216 = _errs647 === errors;}else {var valid216 = true;}if(valid216){if(data137.summary !== undefined){let data174 = data137.summary;const _errs648 = errors;const _errs649 = errors;if(errors === _errs649){if(typeof data174 === "string"){if(func1(data174) < 1){const err414 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}else {const err415 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}var valid216 = _errs648 === errors;}else {var valid216 = true;}}}}}}else {const err416 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}var _valid57 = _errs633 === errors;valid188 = valid188 || _valid57;if(_valid57){if(props23 !== true){props23 = true;}}const _errs651 = errors;if(data137 !== null){const err417 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid57 = _errs651 === errors;valid188 = valid188 || _valid57;if(!valid188){const err418 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs550;if(vErrors !== null){if(_errs550){vErrors.length = _errs550;}else {vErrors = null;}}}var valid0 = _errs549 === errors;}else {var valid0 = true;}if(valid0){if(data.charge !== undefined){let data175 = data.charge;const _errs653 = errors;const _errs654 = errors;let valid219 = false;const _errs655 = errors;if(!(validate363(data175, {instancePath:instancePath+"/charge",parentData:data,parentDataProperty:"charge",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate363.errors : vErrors.concat(validate363.errors);errors = vErrors.length;}var _valid62 = _errs655 === errors;valid219 = valid219 || _valid62;const _errs656 = errors;if(data175 !== null){const err419 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}var _valid62 = _errs656 === errors;valid219 = valid219 || _valid62;if(!valid219){const err420 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs654;if(vErrors !== null){if(_errs654){vErrors.length = _errs654;}else {vErrors = null;}}}var valid0 = _errs653 === errors;}else {var valid0 = true;}if(valid0){if(data.funded_until !== undefined){let data176 = data.funded_until;const _errs658 = errors;if((typeof data176 !== "string") && (data176 !== null)){validate329.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/type",keyword:"type",params:{type: schema320.properties.funded_until.type},message:"must be string,null"}];return false;}if(errors === _errs658){if(errors === _errs658){if(typeof data176 === "string"){if(!(formats0.validate(data176))){validate329.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs658 === errors;}else {var valid0 = true;}if(valid0){if(data.connectable !== undefined){const _errs660 = errors;if(typeof data.connectable !== "boolean"){validate329.errors = [{instancePath:instancePath+"/connectable",schemaPath:"#/properties/connectable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs660 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs662 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs662 === errors;}else {var valid0 = true;}if(valid0){if(data.route !== undefined){const _errs663 = errors;if(!(validate366(data.route, {instancePath:instancePath+"/route",parentData:data,parentDataProperty:"route",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate366.errors : vErrors.concat(validate366.errors);errors = vErrors.length;}var valid0 = _errs663 === errors;}else {var valid0 = true;}if(valid0){if(data.contract !== undefined){let data180 = data.contract;const _errs664 = errors;const _errs665 = errors;let valid220 = false;const _errs666 = errors;if(!(validate375(data180, {instancePath:instancePath+"/contract",parentData:data,parentDataProperty:"contract",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate375.errors : vErrors.concat(validate375.errors);errors = vErrors.length;}var _valid63 = _errs666 === errors;valid220 = valid220 || _valid63;if(_valid63){var props27 = {};props27.spec_version = true;props27.gates = true;props27.resources = true;props27.attested = true;}const _errs667 = errors;if(data180 !== null){const err421 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}var _valid63 = _errs667 === errors;valid220 = valid220 || _valid63;if(!valid220){const err422 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs665;if(vErrors !== null){if(_errs665){vErrors.length = _errs665;}else {vErrors = null;}}}var valid0 = _errs664 === errors;}else {var valid0 = true;}if(valid0){if(data.request !== undefined){let data181 = data.request;const _errs669 = errors;const _errs670 = errors;if(errors === _errs670){if(data181 && typeof data181 == "object" && !Array.isArray(data181)){}else {validate329.errors = [{instancePath:instancePath+"/request",schemaPath:"#/components/schemas/SandboxRequestSnapshot/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs669 === errors;}else {var valid0 = true;}if(valid0){if(data.hidden_secrets !== undefined){let data182 = data.hidden_secrets;const _errs673 = errors;if((!(data182 && typeof data182 == "object" && !Array.isArray(data182))) && (data182 !== null)){validate329.errors = [{instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/type",keyword:"type",params:{type: schema320.properties.hidden_secrets.type},message:"must be object,null"}];return false;}if(errors === _errs673){if(data182 && typeof data182 == "object" && !Array.isArray(data182)){for(const key5 in data182){const _errs675 = errors;const _errs676 = errors;if(errors === _errs676){if(typeof key5 === "string"){if(func1(key5) > 128){const err423 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters",propertyName:key5};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(func1(key5) < 1){const err424 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key5};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}else {if(!pattern5.test(key5)){const err425 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]{0,127}$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]{0,127}$"+"\"",propertyName:key5};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}}}}else {const err426 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key5};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}var valid222 = _errs675 === errors;if(!valid222){const err427 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/propertyNames",keyword:"propertyNames",params:{propertyName: key5},message:"property name must be valid"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;validate329.errors = vErrors;return false;break;}}if(valid222){for(const key6 in data182){const _errs679 = errors;if(!(validate379(data182[key6], {instancePath:instancePath+"/hidden_secrets/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data182,parentDataProperty:key6,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate379.errors : vErrors.concat(validate379.errors);errors = vErrors.length;}var valid224 = _errs679 === errors;if(!valid224){break;}}}}}var valid0 = _errs673 === errors;}else {var valid0 = true;}if(valid0){if(data.tcp_ports !== undefined){let data184 = data.tcp_ports;const _errs680 = errors;if((!(Array.isArray(data184))) && (data184 !== null)){validate329.errors = [{instancePath:instancePath+"/tcp_ports",schemaPath:"#/properties/tcp_ports/type",keyword:"type",params:{type: schema320.properties.tcp_ports.type},message:"must be array,null"}];return false;}if(errors === _errs680){if(Array.isArray(data184)){var valid225 = true;const len4 = data184.length;for(let i4=0; i4<len4; i4++){let data185 = data184[i4];const _errs682 = errors;const _errs683 = errors;if(errors === _errs683){if(data185 && typeof data185 == "object" && !Array.isArray(data185)){let missing63;if((((data185.host === undefined) && (missing63 = "host")) || ((data185.port === undefined) && (missing63 = "port"))) || ((data185.tls === undefined) && (missing63 = "tls"))){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/required",keyword:"required",params:{missingProperty: missing63},message:"must have required property '"+missing63+"'"}];return false;}else {if(data185.host !== undefined){let data186 = data185.host;const _errs685 = errors;if(errors === _errs685){if(typeof data186 === "string"){if(func1(data186) < 1){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid227 = _errs685 === errors;}else {var valid227 = true;}if(valid227){if(data185.port !== undefined){let data187 = data185.port;const _errs687 = errors;const _errs688 = errors;const _errs689 = errors;let valid229 = false;const _errs690 = errors;if(!(((typeof data187 == "number") && (!(data187 % 1) && !isNaN(data187))) && (isFinite(data187)))){const err428 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}var _valid64 = _errs690 === errors;valid229 = valid229 || _valid64;const _errs692 = errors;if(typeof data187 !== "bigint"){const err429 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}var _valid64 = _errs692 === errors;valid229 = valid229 || _valid64;if(!valid229){const err430 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs689;if(vErrors !== null){if(_errs689){vErrors.length = _errs689;}else {vErrors = null;}}}var valid228 = _errs688 === errors;if(valid228){if(typeof data187 === "bigint"){if(data187 < 1){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data187 > 65535){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs687){if((typeof data187 == "number") && (isFinite(data187))){if(data187 > 65535 || isNaN(data187)){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data187 < 1 || isNaN(data187)){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid227 = _errs687 === errors;}else {var valid227 = true;}if(valid227){if(data185.tls !== undefined){let data188 = data185.tls;const _errs693 = errors;if(typeof data188 !== "string"){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data188 === "none") || (data188 === "terminated"))){validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/enum",keyword:"enum",params:{allowedValues: schema452.properties.tls.enum},message:"must be equal to one of the allowed values"}];return false;}var valid227 = _errs693 === errors;}else {var valid227 = true;}}}}}else {validate329.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid225 = _errs682 === errors;if(!valid225){break;}}}}var valid0 = _errs680 === errors;}else {var valid0 = true;}if(valid0){if(data.recorder !== undefined){let data189 = data.recorder;const _errs695 = errors;if((!(data189 && typeof data189 == "object" && !Array.isArray(data189))) && (data189 !== null)){validate329.errors = [{instancePath:instancePath+"/recorder",schemaPath:"#/properties/recorder/type",keyword:"type",params:{type: schema320.properties.recorder.type},message:"must be object,null"}];return false;}var valid0 = _errs695 === errors;}else {var valid0 = true;}if(valid0){if(data.limits !== undefined){const _errs697 = errors;if(!(validate381(data.limits, {instancePath:instancePath+"/limits",parentData:data,parentDataProperty:"limits",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate381.errors : vErrors.concat(validate381.errors);errors = vErrors.length;}var valid0 = _errs697 === errors;}else {var valid0 = true;}if(valid0){if(data.volume !== undefined){let data191 = data.volume;const _errs698 = errors;const _errs699 = errors;let valid230 = false;const _errs700 = errors;if(!(validate383(data191, {instancePath:instancePath+"/volume",parentData:data,parentDataProperty:"volume",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate383.errors : vErrors.concat(validate383.errors);errors = vErrors.length;}var _valid65 = _errs700 === errors;valid230 = valid230 || _valid65;if(_valid65){var props28 = {};props28.id = true;props28.path = true;props28.access = true;props28.restored_checkpoint = true;props28.restore_duration_ms = true;}const _errs701 = errors;if(data191 !== null){const err431 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}var _valid65 = _errs701 === errors;valid230 = valid230 || _valid65;if(!valid230){const err432 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;validate329.errors = vErrors;return false;}else {errors = _errs699;if(vErrors !== null){if(_errs699){vErrors.length = _errs699;}else {vErrors = null;}}}var valid0 = _errs698 === errors;}else {var valid0 = true;}if(valid0){if(data.operation_id !== undefined){let data192 = data.operation_id;const _errs703 = errors;if((typeof data192 !== "string") && (data192 !== null)){validate329.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/type",keyword:"type",params:{type: schema320.properties.operation_id.type},message:"must be string,null"}];return false;}if(errors === _errs703){if(typeof data192 === "string"){if(func1(data192) < 1){validate329.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs703 === errors;}else {var valid0 = true;}if(valid0){if(data.account !== undefined){let data193 = data.account;const _errs705 = errors;if(errors === _errs705){if(data193 && typeof data193 == "object" && !Array.isArray(data193)){let missing64;if(((data193.healthy === undefined) && (missing64 = "healthy")) || ((data193.detail === undefined) && (missing64 = "detail"))){validate329.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/required",keyword:"required",params:{missingProperty: missing64},message:"must have required property '"+missing64+"'"}];return false;}else {if(data193.healthy !== undefined){const _errs707 = errors;if(typeof data193.healthy !== "boolean"){validate329.errors = [{instancePath:instancePath+"/account/healthy",schemaPath:"#/properties/account/properties/healthy/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid231 = _errs707 === errors;}else {var valid231 = true;}if(valid231){if(data193.detail !== undefined){let data195 = data193.detail;const _errs709 = errors;if((typeof data195 !== "string") && (data195 !== null)){validate329.errors = [{instancePath:instancePath+"/account/detail",schemaPath:"#/properties/account/properties/detail/type",keyword:"type",params:{type: schema320.properties.account.properties.detail.type},message:"must be string,null"}];return false;}var valid231 = _errs709 === errors;}else {var valid231 = true;}}}}else {validate329.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs705 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate329.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate329.errors = vErrors;return errors === 0;}validate329.evaluated = {"props":{"id":true,"state":true,"state_reason":true,"failure":true,"native_state":true,"observed_at":true,"state_recorded_at":true,"created_at":true,"expires_at":true,"ready_at":true,"ended_at":true,"created_at_source":true,"created_at_how":true,"created_at_step":true,"ready_at_source":true,"ready_at_how":true,"ready_at_step":true,"ended_at_source":true,"ended_at_how":true,"ended_at_step":true,"cost_source":true,"cost_how":true,"cost_step":true,"origin":true,"labels":true,"name":true,"resources":true,"image":true,"image_setup":true,"usage":true,"cost":true,"charge":true,"funded_until":true,"connectable":true,"lifetime":true,"route":true,"contract":true,"request":true,"hidden_secrets":true,"tcp_ports":true,"recorder":true,"limits":true,"volume":true,"operation_id":true,"account":true},"dynamicProps":false,"dynamicItems":false};exports.validate6 = validate385;const schema456 = {"type":"object","required":["data","next_cursor","counts"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Sandbox"}},"next_cursor":{"type":["string","null"]},"counts":{"$ref":"#/components/schemas/SandboxListCounts"}}};function validate386(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate386.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((((((((((data.id === undefined) && (missing0 = "id")) || ((data.state === undefined) && (missing0 = "state"))) || ((data.state_reason === undefined) && (missing0 = "state_reason"))) || ((data.failure === undefined) && (missing0 = "failure"))) || ((data.native_state === undefined) && (missing0 = "native_state"))) || ((data.observed_at === undefined) && (missing0 = "observed_at"))) || ((data.state_recorded_at === undefined) && (missing0 = "state_recorded_at"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.ready_at === undefined) && (missing0 = "ready_at"))) || ((data.ended_at === undefined) && (missing0 = "ended_at"))) || ((data.labels === undefined) && (missing0 = "labels"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))) || ((data.route === undefined) && (missing0 = "route"))) || ((data.contract === undefined) && (missing0 = "contract"))) || ((data.request === undefined) && (missing0 = "request"))) || ((data.hidden_secrets === undefined) && (missing0 = "hidden_secrets"))) || ((data.tcp_ports === undefined) && (missing0 = "tcp_ports"))) || ((data.recorder === undefined) && (missing0 = "recorder"))) || ((data.limits === undefined) && (missing0 = "limits"))){validate386.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate386.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate386.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate386.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate386.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){const _errs3 = errors;if(typeof data.state !== "string"){validate386.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.state_reason !== undefined){let data2 = data.state_reason;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate386.errors = [{instancePath:instancePath+"/state_reason",schemaPath:"#/properties/state_reason/type",keyword:"type",params:{type: schema320.properties.state_reason.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data3 = data.failure;const _errs7 = errors;const _errs8 = errors;let valid1 = false;const _errs9 = errors;if(!(validate330(data3, {instancePath:instancePath+"/failure",parentData:data,parentDataProperty:"failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate330.errors : vErrors.concat(validate330.errors);errors = vErrors.length;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.summary = true;props0.provider_state = true;props0.native_code = true;props0.native_message = true;props0.observed_at = true;}const _errs10 = errors;if(data3 !== null){const err0 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.native_state !== undefined){let data4 = data.native_state;const _errs12 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate386.errors = [{instancePath:instancePath+"/native_state",schemaPath:"#/properties/native_state/type",keyword:"type",params:{type: schema320.properties.native_state.type},message:"must be string,null"}];return false;}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs14 = errors;if(errors === _errs14){if(errors === _errs14){if(typeof data5 === "string"){if(!(formats0.validate(data5))){validate386.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate386.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.state_recorded_at !== undefined){let data6 = data.state_recorded_at;const _errs16 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate386.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/type",keyword:"type",params:{type: schema320.properties.state_recorded_at.type},message:"must be string,null"}];return false;}if(errors === _errs16){if(errors === _errs16){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate386.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data7 = data.created_at;const _errs18 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate386.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: schema320.properties.created_at.type},message:"must be string,null"}];return false;}if(errors === _errs18){if(errors === _errs18){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate386.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data8 = data.expires_at;const _errs20 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate386.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: schema320.properties.expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs20){if(errors === _errs20){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate386.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at !== undefined){let data9 = data.ready_at;const _errs22 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate386.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/type",keyword:"type",params:{type: schema320.properties.ready_at.type},message:"must be string,null"}];return false;}if(errors === _errs22){if(errors === _errs22){if(typeof data9 === "string"){if(!(formats0.validate(data9))){validate386.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at !== undefined){let data10 = data.ended_at;const _errs24 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate386.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/type",keyword:"type",params:{type: schema320.properties.ended_at.type},message:"must be string,null"}];return false;}if(errors === _errs24){if(errors === _errs24){if(typeof data10 === "string"){if(!(formats0.validate(data10))){validate386.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs24 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_source !== undefined){let data11 = data.created_at_source;const _errs26 = errors;const _errs27 = errors;let valid2 = false;const _errs28 = errors;if(typeof data11 !== "string"){const err2 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!((((((data11 === "provider") || (data11 === "published")) || (data11 === "measured")) || (data11 === "recorded")) || (data11 === "calculated")) || (data11 === "unknown"))){const err3 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs28 === errors;valid2 = valid2 || _valid1;const _errs31 = errors;if(data11 !== null){const err4 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs31 === errors;valid2 = valid2 || _valid1;if(!valid2){const err5 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid0 = _errs26 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_how !== undefined){let data12 = data.created_at_how;const _errs33 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate386.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/type",keyword:"type",params:{type: schema320.properties.created_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs33){if(typeof data12 === "string"){if(func1(data12) < 1){validate386.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_step !== undefined){let data13 = data.created_at_step;const _errs35 = errors;const _errs36 = errors;const _errs37 = errors;let valid5 = false;const _errs38 = errors;if((!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))) && (data13 !== null)){const err6 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.created_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs38 === errors;valid5 = valid5 || _valid2;const _errs40 = errors;if(typeof data13 !== "bigint"){const err7 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs40 === errors;valid5 = valid5 || _valid2;if(!valid5){const err8 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid4 = _errs36 === errors;if(valid4){if(typeof data13 === "bigint"){if(data13 < 1){validate386.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs35){if((typeof data13 == "number") && (isFinite(data13))){if(data13 < 1 || isNaN(data13)){validate386.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_source !== undefined){let data14 = data.ready_at_source;const _errs41 = errors;const _errs42 = errors;let valid6 = false;const _errs43 = errors;if(typeof data14 !== "string"){const err9 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!((((((data14 === "provider") || (data14 === "published")) || (data14 === "measured")) || (data14 === "recorded")) || (data14 === "calculated")) || (data14 === "unknown"))){const err10 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs43 === errors;valid6 = valid6 || _valid3;const _errs46 = errors;if(data14 !== null){const err11 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs46 === errors;valid6 = valid6 || _valid3;if(!valid6){const err12 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_how !== undefined){let data15 = data.ready_at_how;const _errs48 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate386.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/type",keyword:"type",params:{type: schema320.properties.ready_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs48){if(typeof data15 === "string"){if(func1(data15) < 1){validate386.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs48 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_step !== undefined){let data16 = data.ready_at_step;const _errs50 = errors;const _errs51 = errors;const _errs52 = errors;let valid9 = false;const _errs53 = errors;if((!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))) && (data16 !== null)){const err13 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ready_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs53 === errors;valid9 = valid9 || _valid4;const _errs55 = errors;if(typeof data16 !== "bigint"){const err14 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid4 = _errs55 === errors;valid9 = valid9 || _valid4;if(!valid9){const err15 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid8 = _errs51 === errors;if(valid8){if(typeof data16 === "bigint"){if(data16 < 1){validate386.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs50){if((typeof data16 == "number") && (isFinite(data16))){if(data16 < 1 || isNaN(data16)){validate386.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs50 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_source !== undefined){let data17 = data.ended_at_source;const _errs56 = errors;const _errs57 = errors;let valid10 = false;const _errs58 = errors;if(typeof data17 !== "string"){const err16 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(!((((((data17 === "provider") || (data17 === "published")) || (data17 === "measured")) || (data17 === "recorded")) || (data17 === "calculated")) || (data17 === "unknown"))){const err17 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs58 === errors;valid10 = valid10 || _valid5;const _errs61 = errors;if(data17 !== null){const err18 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid5 = _errs61 === errors;valid10 = valid10 || _valid5;if(!valid10){const err19 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs57;if(vErrors !== null){if(_errs57){vErrors.length = _errs57;}else {vErrors = null;}}}var valid0 = _errs56 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_how !== undefined){let data18 = data.ended_at_how;const _errs63 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate386.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/type",keyword:"type",params:{type: schema320.properties.ended_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs63){if(typeof data18 === "string"){if(func1(data18) < 1){validate386.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs63 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_step !== undefined){let data19 = data.ended_at_step;const _errs65 = errors;const _errs66 = errors;const _errs67 = errors;let valid13 = false;const _errs68 = errors;if((!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))) && (data19 !== null)){const err20 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ended_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid6 = _errs68 === errors;valid13 = valid13 || _valid6;const _errs70 = errors;if(typeof data19 !== "bigint"){const err21 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid6 = _errs70 === errors;valid13 = valid13 || _valid6;if(!valid13){const err22 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}}var valid12 = _errs66 === errors;if(valid12){if(typeof data19 === "bigint"){if(data19 < 1){validate386.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs65){if((typeof data19 == "number") && (isFinite(data19))){if(data19 < 1 || isNaN(data19)){validate386.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs65 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_source !== undefined){let data20 = data.cost_source;const _errs71 = errors;const _errs72 = errors;let valid14 = false;const _errs73 = errors;if(typeof data20 !== "string"){const err23 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!((((((data20 === "provider") || (data20 === "published")) || (data20 === "measured")) || (data20 === "recorded")) || (data20 === "calculated")) || (data20 === "unknown"))){const err24 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid7 = _errs73 === errors;valid14 = valid14 || _valid7;const _errs76 = errors;if(data20 !== null){const err25 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid7 = _errs76 === errors;valid14 = valid14 || _valid7;if(!valid14){const err26 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}var valid0 = _errs71 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_how !== undefined){let data21 = data.cost_how;const _errs78 = errors;if((typeof data21 !== "string") && (data21 !== null)){validate386.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/type",keyword:"type",params:{type: schema320.properties.cost_how.type},message:"must be string,null"}];return false;}if(errors === _errs78){if(typeof data21 === "string"){if(func1(data21) < 1){validate386.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs78 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_step !== undefined){let data22 = data.cost_step;const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;let valid17 = false;const _errs83 = errors;if((!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) && (data22 !== null)){const err27 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.cost_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid8 = _errs83 === errors;valid17 = valid17 || _valid8;const _errs85 = errors;if(typeof data22 !== "bigint"){const err28 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid8 = _errs85 === errors;valid17 = valid17 || _valid8;if(!valid17){const err29 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var valid16 = _errs81 === errors;if(valid16){if(typeof data22 === "bigint"){if(data22 < 1){validate386.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs80){if((typeof data22 == "number") && (isFinite(data22))){if(data22 < 1 || isNaN(data22)){validate386.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs80 === errors;}else {var valid0 = true;}if(valid0){if(data.origin !== undefined){let data23 = data.origin;const _errs86 = errors;const _errs87 = errors;let valid18 = false;const _errs88 = errors;if(!(validate332(data23, {instancePath:instancePath+"/origin",parentData:data,parentDataProperty:"origin",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate332.errors : vErrors.concat(validate332.errors);errors = vErrors.length;}var _valid9 = _errs88 === errors;valid18 = valid18 || _valid9;const _errs89 = errors;if(data23 !== null){const err30 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid9 = _errs89 === errors;valid18 = valid18 || _valid9;if(!valid18){const err31 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var valid0 = _errs86 === errors;}else {var valid0 = true;}if(valid0){if(data.labels !== undefined){let data24 = data.labels;const _errs91 = errors;if(errors === _errs91){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){for(const key0 in data24){const _errs94 = errors;if(typeof data24[key0] !== "string"){validate386.errors = [{instancePath:instancePath+"/labels/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid19 = _errs94 === errors;if(!valid19){break;}}}else {validate386.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs91 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){let data26 = data.name;const _errs96 = errors;if((typeof data26 !== "string") && (data26 !== null)){validate386.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: schema320.properties.name.type},message:"must be string,null"}];return false;}var valid0 = _errs96 === errors;}else {var valid0 = true;}if(valid0){if(data.resources !== undefined){let data27 = data.resources;const _errs98 = errors;if(errors === _errs98){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.cpu !== undefined){let data28 = data27.cpu;const _errs100 = errors;const _errs101 = errors;const _errs102 = errors;let valid22 = false;const _errs103 = errors;if((!((typeof data28 == "number") && (isFinite(data28)))) && (data28 !== null)){const err32 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.cpu.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid10 = _errs103 === errors;valid22 = valid22 || _valid10;const _errs105 = errors;if(typeof data28 !== "bigint"){const err33 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid10 = _errs105 === errors;valid22 = valid22 || _valid10;if(!valid22){const err34 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}var valid21 = _errs101 === errors;if(valid21){if(typeof data28 === "bigint"){if(data28 <= 0){validate386.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs100){if((typeof data28 == "number") && (isFinite(data28))){if(data28 <= 0 || isNaN(data28)){validate386.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid20 = _errs100 === errors;}else {var valid20 = true;}if(valid20){if(data27.memory_mib !== undefined){let data29 = data27.memory_mib;const _errs106 = errors;const _errs107 = errors;const _errs108 = errors;let valid24 = false;const _errs109 = errors;if((!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))) && (data29 !== null)){const err35 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.memory_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid11 = _errs109 === errors;valid24 = valid24 || _valid11;const _errs111 = errors;if(typeof data29 !== "bigint"){const err36 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid11 = _errs111 === errors;valid24 = valid24 || _valid11;if(!valid24){const err37 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs108;if(vErrors !== null){if(_errs108){vErrors.length = _errs108;}else {vErrors = null;}}}var valid23 = _errs107 === errors;if(valid23){if(typeof data29 === "bigint"){if(data29 < 1){validate386.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs106){if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 1 || isNaN(data29)){validate386.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs106 === errors;}else {var valid20 = true;}if(valid20){if(data27.disk_mib !== undefined){let data30 = data27.disk_mib;const _errs112 = errors;const _errs113 = errors;const _errs114 = errors;let valid26 = false;const _errs115 = errors;if((!(((typeof data30 == "number") && (!(data30 % 1) && !isNaN(data30))) && (isFinite(data30)))) && (data30 !== null)){const err38 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.disk_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid12 = _errs115 === errors;valid26 = valid26 || _valid12;const _errs117 = errors;if(typeof data30 !== "bigint"){const err39 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid12 = _errs117 === errors;valid26 = valid26 || _valid12;if(!valid26){const err40 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}}var valid25 = _errs113 === errors;if(valid25){if(typeof data30 === "bigint"){if(data30 < 1){validate386.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs112){if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 1 || isNaN(data30)){validate386.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs112 === errors;}else {var valid20 = true;}}}}else {validate386.errors = [{instancePath:instancePath+"/resources",schemaPath:"#/properties/resources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs98 === errors;}else {var valid0 = true;}if(valid0){if(data.image !== undefined){let data31 = data.image;const _errs118 = errors;const _errs119 = errors;let valid27 = false;const _errs120 = errors;if(!(validate338(data31, {instancePath:instancePath+"/image",parentData:data,parentDataProperty:"image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate338.errors : vErrors.concat(validate338.errors);errors = vErrors.length;}var _valid13 = _errs120 === errors;valid27 = valid27 || _valid13;if(_valid13){var props2 = {};props2.value = true;props2.source = true;}const _errs121 = errors;if(data31 !== null){const err41 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid13 = _errs121 === errors;valid27 = valid27 || _valid13;if(!valid27){const err42 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}var valid0 = _errs118 === errors;}else {var valid0 = true;}if(valid0){if(data.image_setup !== undefined){let data32 = data.image_setup;const _errs123 = errors;const _errs124 = errors;if(errors === _errs124){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){let missing1;if(((data32.provider === undefined) && (missing1 = "provider")) || ((data32.duration_ms === undefined) && (missing1 = "duration_ms"))){validate386.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data32.provider !== undefined){let data33 = data32.provider;const _errs126 = errors;if(errors === _errs126){if(typeof data33 === "string"){if(func1(data33) < 1){validate386.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate386.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid29 = _errs126 === errors;}else {var valid29 = true;}if(valid29){if(data32.duration_ms !== undefined){let data34 = data32.duration_ms;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;let valid31 = false;const _errs131 = errors;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err43 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid14 = _errs131 === errors;valid31 = valid31 || _valid14;const _errs133 = errors;if(typeof data34 !== "bigint"){const err44 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid14 = _errs133 === errors;valid31 = valid31 || _valid14;if(!valid31){const err45 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}var valid30 = _errs129 === errors;if(valid30){if(typeof data34 === "bigint"){if(data34 < 0){validate386.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs128){if((typeof data34 == "number") && (isFinite(data34))){if(data34 < 0 || isNaN(data34)){validate386.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid29 = _errs128 === errors;}else {var valid29 = true;}}}}else {validate386.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs123 === errors;}else {var valid0 = true;}if(valid0){if(data.usage !== undefined){let data35 = data.usage;const _errs134 = errors;const _errs135 = errors;let valid32 = false;const _errs136 = errors;if(errors === _errs136){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing2;if(((((((data35.provider === undefined) && (missing2 = "provider")) || ((data35.started === undefined) && (missing2 = "started"))) || ((data35.region === undefined) && (missing2 = "region"))) || ((data35.size === undefined) && (missing2 = "size"))) || ((data35.intervals === undefined) && (missing2 = "intervals"))) || ((data35.creations === undefined) && (missing2 = "creations"))){const err46 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {const _errs138 = errors;for(const key1 in data35){if(!(func237.call(schema320.properties.usage.anyOf[0].properties, key1))){const err47 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;break;}}if(_errs138 === errors){if(data35.provider !== undefined){let data36 = data35.provider;const _errs139 = errors;if(errors === _errs139){if(typeof data36 === "string"){if(!pattern42.test(data36)){const err48 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}var valid33 = _errs139 === errors;}else {var valid33 = true;}if(valid33){if(data35.class !== undefined){let data37 = data35.class;const _errs141 = errors;const _errs143 = errors;let valid34 = true;const _errs144 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing3;if((data37.source === undefined) && (missing3 = "source")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data37.source !== undefined){if("unknown" !== data37.source){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}var _valid16 = _errs144 === errors;errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}let ifClause0;if(_valid16){const _errs147 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(data37.name !== null){const err52 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid16 = _errs147 === errors;valid34 = _valid16;if(valid34){var props3 = {};props3.name = true;props3.source = true;}ifClause0 = "then";}else {const _errs150 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(typeof data37.name !== "string"){const err53 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}var _valid16 = _errs150 === errors;valid34 = _valid16;if(valid34){if(props3 !== true){props3 = props3 || {};props3.name = true;}}ifClause0 = "else";}if(!valid34){const err54 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(errors === _errs141){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing4;if(((((data37.name === undefined) && (missing4 = "name")) || ((data37.source === undefined) && (missing4 = "source"))) || ((data37.observed_at === undefined) && (missing4 = "observed_at"))) || ((data37.how === undefined) && (missing4 = "how"))){const err55 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(props3 !== true){props3 = props3 || {};props3.name = true;props3.source = true;props3.observed_at = true;props3.how = true;}if(data37.name !== undefined){let data41 = data37.name;const _errs153 = errors;if((typeof data41 !== "string") && (data41 !== null)){const err56 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.class.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors === _errs153){if(typeof data41 === "string"){if(func1(data41) < 1){const err57 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var valid39 = _errs153 === errors;}else {var valid39 = true;}if(valid39){if(data37.source !== undefined){let data42 = data37.source;const _errs155 = errors;if(typeof data42 !== "string"){const err58 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(!((((((data42 === "provider") || (data42 === "published")) || (data42 === "measured")) || (data42 === "recorded")) || (data42 === "calculated")) || (data42 === "unknown"))){const err59 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid39 = _errs155 === errors;}else {var valid39 = true;}if(valid39){if(data37.observed_at !== undefined){let data43 = data37.observed_at;const _errs158 = errors;const _errs159 = errors;if(errors === _errs159){if(errors === _errs159){if(typeof data43 === "string"){if(!pattern78.test(data43)){const err60 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(!(formats0.validate(data43))){const err61 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var valid39 = _errs158 === errors;}else {var valid39 = true;}if(valid39){if(data37.how !== undefined){let data44 = data37.how;const _errs161 = errors;const _errs162 = errors;if(errors === _errs162){if(typeof data44 === "string"){if(func1(data44) < 1){const err63 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}var valid39 = _errs161 === errors;}else {var valid39 = true;}}}}}}else {const err65 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid33 = _errs141 === errors;}else {var valid33 = true;}if(valid33){if(data35.started !== undefined){let data45 = data35.started;const _errs164 = errors;const _errs166 = errors;let valid43 = true;const _errs167 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing5;if((data45.source === undefined) && (missing5 = "source")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data45.source !== undefined){if("unknown" !== data45.source){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}var _valid17 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}let ifClause1;if(_valid17){const _errs170 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){if(data45.at !== null){const err68 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/then/properties/at/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid17 = _errs170 === errors;valid43 = _valid17;if(valid43){var props4 = {};props4.at = true;props4.source = true;}ifClause1 = "then";}else {const _errs173 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){let data48 = data45.at;const _errs175 = errors;if(errors === _errs175){if(errors === _errs175){if(typeof data48 === "string"){if(!pattern78.test(data48)){const err69 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(!(formats0.validate(data48))){const err70 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}var _valid17 = _errs173 === errors;valid43 = _valid17;if(valid43){if(props4 !== true){props4 = props4 || {};props4.at = true;}}ifClause1 = "else";}if(!valid43){const err72 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors === _errs164){if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing6;if(((((data45.at === undefined) && (missing6 = "at")) || ((data45.source === undefined) && (missing6 = "source"))) || ((data45.observed_at === undefined) && (missing6 = "observed_at"))) || ((data45.how === undefined) && (missing6 = "how"))){const err73 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(props4 !== true){props4 = props4 || {};props4.at = true;props4.source = true;props4.observed_at = true;props4.how = true;}if(data45.at !== undefined){let data49 = data45.at;const _errs177 = errors;if((typeof data49 !== "string") && (data49 !== null)){const err74 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/properties/at/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.started.properties.at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid49 = _errs177 === errors;}else {var valid49 = true;}if(valid49){if(data45.source !== undefined){let data50 = data45.source;const _errs179 = errors;if(typeof data50 !== "string"){const err75 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(!((((((data50 === "provider") || (data50 === "published")) || (data50 === "measured")) || (data50 === "recorded")) || (data50 === "calculated")) || (data50 === "unknown"))){const err76 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var valid49 = _errs179 === errors;}else {var valid49 = true;}if(valid49){if(data45.observed_at !== undefined){let data51 = data45.observed_at;const _errs182 = errors;const _errs183 = errors;if(errors === _errs183){if(errors === _errs183){if(typeof data51 === "string"){if(!pattern78.test(data51)){const err77 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(!(formats0.validate(data51))){const err78 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var valid49 = _errs182 === errors;}else {var valid49 = true;}if(valid49){if(data45.how !== undefined){let data52 = data45.how;const _errs185 = errors;const _errs186 = errors;if(errors === _errs186){if(typeof data52 === "string"){if(func1(data52) < 1){const err80 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var valid49 = _errs185 === errors;}else {var valid49 = true;}}}}}}else {const err82 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid33 = _errs164 === errors;}else {var valid33 = true;}if(valid33){if(data35.region !== undefined){let data53 = data35.region;const _errs188 = errors;const _errs190 = errors;let valid53 = true;const _errs191 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing7;if((data53.source === undefined) && (missing7 = "source")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data53.source !== undefined){if("unknown" !== data53.source){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}}var _valid18 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}let ifClause2;if(_valid18){const _errs194 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(data53.name !== null){const err85 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}var _valid18 = _errs194 === errors;valid53 = _valid18;if(valid53){var props5 = {};props5.name = true;props5.source = true;}ifClause2 = "then";}else {const _errs197 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(typeof data53.name !== "string"){const err86 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}var _valid18 = _errs197 === errors;valid53 = _valid18;if(valid53){if(props5 !== true){props5 = props5 || {};props5.name = true;}}ifClause2 = "else";}if(!valid53){const err87 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(errors === _errs188){if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing8;if(((((data53.name === undefined) && (missing8 = "name")) || ((data53.source === undefined) && (missing8 = "source"))) || ((data53.observed_at === undefined) && (missing8 = "observed_at"))) || ((data53.how === undefined) && (missing8 = "how"))){const err88 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(props5 !== true){props5 = props5 || {};props5.name = true;props5.source = true;props5.observed_at = true;props5.how = true;}if(data53.name !== undefined){let data57 = data53.name;const _errs200 = errors;if((typeof data57 !== "string") && (data57 !== null)){const err89 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.region.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(errors === _errs200){if(typeof data57 === "string"){if(func1(data57) < 1){const err90 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}var valid58 = _errs200 === errors;}else {var valid58 = true;}if(valid58){if(data53.source !== undefined){let data58 = data53.source;const _errs202 = errors;if(typeof data58 !== "string"){const err91 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(!((((((data58 === "provider") || (data58 === "published")) || (data58 === "measured")) || (data58 === "recorded")) || (data58 === "calculated")) || (data58 === "unknown"))){const err92 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid58 = _errs202 === errors;}else {var valid58 = true;}if(valid58){if(data53.observed_at !== undefined){let data59 = data53.observed_at;const _errs205 = errors;const _errs206 = errors;if(errors === _errs206){if(errors === _errs206){if(typeof data59 === "string"){if(!pattern78.test(data59)){const err93 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(!(formats0.validate(data59))){const err94 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}var valid58 = _errs205 === errors;}else {var valid58 = true;}if(valid58){if(data53.how !== undefined){let data60 = data53.how;const _errs208 = errors;const _errs209 = errors;if(errors === _errs209){if(typeof data60 === "string"){if(func1(data60) < 1){const err96 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var valid58 = _errs208 === errors;}else {var valid58 = true;}}}}}}else {const err98 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var valid33 = _errs188 === errors;}else {var valid33 = true;}if(valid33){if(data35.size !== undefined){let data61 = data35.size;const _errs211 = errors;const _errs213 = errors;const _errs214 = errors;let valid63 = true;const _errs215 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing9;if((data61.gpu === undefined) && (missing9 = "gpu")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}var _valid19 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid19){const _errs216 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing10;if((data61.gpu_model === undefined) && (missing10 = "gpu_model")){const err100 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}var _valid19 = _errs216 === errors;valid63 = _valid19;}if(!valid63){const err101 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid62 = _errs213 === errors;if(valid62){const _errs217 = errors;const _errs218 = errors;let valid64 = true;const _errs219 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing11;if((data61.gpu_model === undefined) && (missing11 = "gpu_model")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}var _valid20 = _errs219 === errors;errors = _errs218;if(vErrors !== null){if(_errs218){vErrors.length = _errs218;}else {vErrors = null;}}if(_valid20){const _errs220 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing12;if((data61.gpu === undefined) && (missing12 = "gpu")){const err103 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var _valid20 = _errs220 === errors;valid64 = _valid20;}if(!valid64){const err104 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid62 = _errs217 === errors;if(valid62){const _errs221 = errors;let valid65 = true;const _errs222 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing13;if((data61.source === undefined) && (missing13 = "source")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data61.source !== undefined){if("unknown" !== data61.source){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}}var _valid21 = _errs222 === errors;errors = _errs221;if(vErrors !== null){if(_errs221){vErrors.length = _errs221;}else {vErrors = null;}}let ifClause3;if(_valid21){const _errs225 = errors;const _errs226 = errors;const _errs227 = errors;const _errs228 = errors;let valid69 = false;const _errs229 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing14;if((data61.cpu === undefined) && (missing14 = "cpu")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}var _valid22 = _errs229 === errors;valid69 = valid69 || _valid22;const _errs230 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing15;if((data61.memory_mib === undefined) && (missing15 = "memory_mib")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}var _valid22 = _errs230 === errors;valid69 = valid69 || _valid22;const _errs231 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing16;if((data61.disk_mib === undefined) && (missing16 = "disk_mib")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid22 = _errs231 === errors;valid69 = valid69 || _valid22;const _errs232 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing17;if((data61.gpu === undefined) && (missing17 = "gpu")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid22 = _errs232 === errors;valid69 = valid69 || _valid22;const _errs233 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing18;if((data61.gpu_model === undefined) && (missing18 = "gpu_model")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}var _valid22 = _errs233 === errors;valid69 = valid69 || _valid22;if(!valid69){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}}var valid68 = _errs227 === errors;if(valid68){const err113 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}}var _valid21 = _errs225 === errors;valid65 = _valid21;ifClause3 = "then";}else {const _errs234 = errors;const _errs235 = errors;let valid70 = false;const _errs236 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing19;if((data61.cpu === undefined) && (missing19 = "cpu")){const err114 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing19},message:"must have required property '"+missing19+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid23 = _errs236 === errors;valid70 = valid70 || _valid23;const _errs237 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing20;if((data61.memory_mib === undefined) && (missing20 = "memory_mib")){const err115 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing20},message:"must have required property '"+missing20+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var _valid23 = _errs237 === errors;valid70 = valid70 || _valid23;const _errs238 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing21;if((data61.disk_mib === undefined) && (missing21 = "disk_mib")){const err116 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing21},message:"must have required property '"+missing21+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var _valid23 = _errs238 === errors;valid70 = valid70 || _valid23;const _errs239 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing22;if((data61.gpu === undefined) && (missing22 = "gpu")){const err117 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing22},message:"must have required property '"+missing22+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var _valid23 = _errs239 === errors;valid70 = valid70 || _valid23;if(!valid70){const err118 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs235;if(vErrors !== null){if(_errs235){vErrors.length = _errs235;}else {vErrors = null;}}}var _valid21 = _errs234 === errors;valid65 = _valid21;ifClause3 = "else";}if(!valid65){const err119 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}if(errors === _errs211){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing23;if((((data61.source === undefined) && (missing23 = "source")) || ((data61.observed_at === undefined) && (missing23 = "observed_at"))) || ((data61.how === undefined) && (missing23 = "how"))){const err120 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/required",keyword:"required",params:{missingProperty: missing23},message:"must have required property '"+missing23+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data61.cpu !== undefined){let data63 = data61.cpu;const _errs240 = errors;const _errs241 = errors;const _errs242 = errors;let valid73 = false;const _errs243 = errors;if(!((typeof data63 == "number") && (isFinite(data63)))){const err121 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid24 = _errs243 === errors;valid73 = valid73 || _valid24;const _errs245 = errors;if(typeof data63 !== "bigint"){const err122 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var _valid24 = _errs245 === errors;valid73 = valid73 || _valid24;if(!valid73){const err123 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {errors = _errs242;if(vErrors !== null){if(_errs242){vErrors.length = _errs242;}else {vErrors = null;}}}var valid72 = _errs241 === errors;if(valid72){if(typeof data63 === "bigint"){if(data63 <= 0){const err124 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}if(errors === _errs240){if((typeof data63 == "number") && (isFinite(data63))){if(data63 <= 0 || isNaN(data63)){const err125 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}var valid71 = _errs240 === errors;}else {var valid71 = true;}if(valid71){if(data61.memory_mib !== undefined){let data64 = data61.memory_mib;const _errs246 = errors;const _errs247 = errors;const _errs248 = errors;let valid75 = false;const _errs249 = errors;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){const err126 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid25 = _errs249 === errors;valid75 = valid75 || _valid25;const _errs251 = errors;if(typeof data64 !== "bigint"){const err127 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}var _valid25 = _errs251 === errors;valid75 = valid75 || _valid25;if(!valid75){const err128 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs248;if(vErrors !== null){if(_errs248){vErrors.length = _errs248;}else {vErrors = null;}}}var valid74 = _errs247 === errors;if(valid74){if(typeof data64 === "bigint"){if(data64 < 1){const err129 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}if(errors === _errs246){if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 1 || isNaN(data64)){const err130 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}var valid71 = _errs246 === errors;}else {var valid71 = true;}if(valid71){if(data61.disk_mib !== undefined){let data65 = data61.disk_mib;const _errs252 = errors;const _errs253 = errors;const _errs254 = errors;let valid77 = false;const _errs255 = errors;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){const err131 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid26 = _errs255 === errors;valid77 = valid77 || _valid26;const _errs257 = errors;if(typeof data65 !== "bigint"){const err132 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid26 = _errs257 === errors;valid77 = valid77 || _valid26;if(!valid77){const err133 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs254;if(vErrors !== null){if(_errs254){vErrors.length = _errs254;}else {vErrors = null;}}}var valid76 = _errs253 === errors;if(valid76){if(typeof data65 === "bigint"){if(data65 < 1){const err134 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}if(errors === _errs252){if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 1 || isNaN(data65)){const err135 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}var valid71 = _errs252 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu !== undefined){let data66 = data61.gpu;const _errs258 = errors;const _errs259 = errors;const _errs260 = errors;let valid79 = false;const _errs261 = errors;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){const err136 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid27 = _errs261 === errors;valid79 = valid79 || _valid27;const _errs263 = errors;if(typeof data66 !== "bigint"){const err137 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var _valid27 = _errs263 === errors;valid79 = valid79 || _valid27;if(!valid79){const err138 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}var valid78 = _errs259 === errors;if(valid78){if(typeof data66 === "bigint"){if(data66 < 1){const err139 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}if(errors === _errs258){if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 1 || isNaN(data66)){const err140 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}var valid71 = _errs258 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu_model !== undefined){let data67 = data61.gpu_model;const _errs264 = errors;if(errors === _errs264){if(typeof data67 === "string"){if(!pattern219.test(data67)){const err141 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}else {const err142 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid71 = _errs264 === errors;}else {var valid71 = true;}if(valid71){if(data61.source !== undefined){let data68 = data61.source;const _errs266 = errors;if(typeof data68 !== "string"){const err143 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(!((((((data68 === "provider") || (data68 === "published")) || (data68 === "measured")) || (data68 === "recorded")) || (data68 === "calculated")) || (data68 === "unknown"))){const err144 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid71 = _errs266 === errors;}else {var valid71 = true;}if(valid71){if(data61.observed_at !== undefined){let data69 = data61.observed_at;const _errs269 = errors;const _errs270 = errors;if(errors === _errs270){if(errors === _errs270){if(typeof data69 === "string"){if(!pattern78.test(data69)){const err145 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(!(formats0.validate(data69))){const err146 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}var valid71 = _errs269 === errors;}else {var valid71 = true;}if(valid71){if(data61.how !== undefined){let data70 = data61.how;const _errs272 = errors;const _errs273 = errors;if(errors === _errs273){if(typeof data70 === "string"){if(func1(data70) < 1){const err148 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}else {const err149 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}var valid71 = _errs272 === errors;}else {var valid71 = true;}}}}}}}}}}else {const err150 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid33 = _errs211 === errors;}else {var valid33 = true;}if(valid33){if(data35.intervals !== undefined){let data71 = data35.intervals;const _errs275 = errors;if(errors === _errs275){if(Array.isArray(data71)){if(data71.length < 1){const err151 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {var valid83 = true;const len0 = data71.length;for(let i0=0; i0<len0; i0++){let data72 = data71[i0];const _errs277 = errors;const _errs279 = errors;let valid84 = true;const _errs280 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing24;if((data72.source === undefined) && (missing24 = "source")){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {if(data72.source !== undefined){if("unknown" !== data72.source){const err153 = {};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}}var _valid28 = _errs280 === errors;errors = _errs279;if(vErrors !== null){if(_errs279){vErrors.length = _errs279;}else {vErrors = null;}}let ifClause4;if(_valid28){const _errs283 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){if(data72.seconds !== null){const err154 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}var _valid28 = _errs283 === errors;valid84 = _valid28;if(valid84){var props6 = {};props6.seconds = true;props6.source = true;}ifClause4 = "then";}else {const _errs286 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){let data75 = data72.seconds;const _errs289 = errors;let valid90 = false;const _errs290 = errors;if((!((typeof data75 == "number") && (isFinite(data75)))) && (!(data75 && typeof data75 == "object" && !Array.isArray(data75)))){const err155 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.intervals.items.else.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid29 = _errs290 === errors;valid90 = valid90 || _valid29;const _errs292 = errors;if(typeof data75 !== "bigint"){const err156 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid29 = _errs292 === errors;valid90 = valid90 || _valid29;if(!valid90){const err157 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs289;if(vErrors !== null){if(_errs289){vErrors.length = _errs289;}else {vErrors = null;}}}}}var _valid28 = _errs286 === errors;valid84 = _valid28;if(valid84){if(props6 !== true){props6 = props6 || {};props6.seconds = true;}}ifClause4 = "else";}if(!valid84){const err158 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(errors === _errs277){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing25;if((((((data72.state === undefined) && (missing25 = "state")) || ((data72.seconds === undefined) && (missing25 = "seconds"))) || ((data72.source === undefined) && (missing25 = "source"))) || ((data72.observed_at === undefined) && (missing25 = "observed_at"))) || ((data72.how === undefined) && (missing25 = "how"))){const err159 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/required",keyword:"required",params:{missingProperty: missing25},message:"must have required property '"+missing25+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(props6 !== true){props6 = props6 || {};props6.size = true;props6.snapshot_storage = true;props6.state = true;props6.seconds = true;props6.source = true;props6.observed_at = true;props6.how = true;}if(data72.size !== undefined){const _errs293 = errors;if(!(validate340(data72.size, {instancePath:instancePath+"/usage/intervals/" + i0+"/size",parentData:data72,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate340.errors : vErrors.concat(validate340.errors);errors = vErrors.length;}var valid91 = _errs293 === errors;}else {var valid91 = true;}if(valid91){if(data72.snapshot_storage !== undefined){const _errs294 = errors;if(!(validate342(data72.snapshot_storage, {instancePath:instancePath+"/usage/intervals/" + i0+"/snapshot_storage",parentData:data72,parentDataProperty:"snapshot_storage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate342.errors : vErrors.concat(validate342.errors);errors = vErrors.length;}var valid91 = _errs294 === errors;}else {var valid91 = true;}if(valid91){if(data72.state !== undefined){let data78 = data72.state;const _errs295 = errors;if(!(((data78 === "running") || (data78 === "paused")) || (data78 === "stopped"))){const err160 = {instancePath:instancePath+"/usage/intervals/" + i0+"/state",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/state/enum",keyword:"enum",params:{allowedValues: schema320.properties.usage.anyOf[0].properties.intervals.items.properties.state.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var valid91 = _errs295 === errors;}else {var valid91 = true;}if(valid91){if(data72.seconds !== undefined){let data79 = data72.seconds;const _errs296 = errors;const _errs297 = errors;let valid92 = false;const _errs298 = errors;const _errs299 = errors;const _errs300 = errors;let valid94 = false;const _errs301 = errors;if(!((typeof data79 == "number") && (isFinite(data79)))){const err161 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}var _valid31 = _errs301 === errors;valid94 = valid94 || _valid31;const _errs303 = errors;if(typeof data79 !== "bigint"){const err162 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var _valid31 = _errs303 === errors;valid94 = valid94 || _valid31;if(!valid94){const err163 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}var valid93 = _errs299 === errors;if(valid93){if(typeof data79 === "bigint"){if(data79 < 0){const err164 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}if(errors === _errs298){if((typeof data79 == "number") && (isFinite(data79))){if(data79 < 0 || isNaN(data79)){const err165 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}var _valid30 = _errs298 === errors;valid92 = valid92 || _valid30;const _errs304 = errors;const _errs305 = errors;if(errors === _errs305){if(data79 && typeof data79 == "object" && !Array.isArray(data79)){let missing26;if(((data79.low === undefined) && (missing26 = "low")) || ((data79.high === undefined) && (missing26 = "high"))){const err166 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/required",keyword:"required",params:{missingProperty: missing26},message:"must have required property '"+missing26+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {if(data79.low !== undefined){let data80 = data79.low;const _errs307 = errors;const _errs308 = errors;const _errs309 = errors;let valid98 = false;const _errs310 = errors;if(!((typeof data80 == "number") && (isFinite(data80)))){const err167 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}var _valid32 = _errs310 === errors;valid98 = valid98 || _valid32;const _errs312 = errors;if(typeof data80 !== "bigint"){const err168 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid32 = _errs312 === errors;valid98 = valid98 || _valid32;if(!valid98){const err169 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var valid97 = _errs308 === errors;if(valid97){if(typeof data80 === "bigint"){if(data80 < 0){const err170 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}if(errors === _errs307){if((typeof data80 == "number") && (isFinite(data80))){if(data80 < 0 || isNaN(data80)){const err171 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}var valid96 = _errs307 === errors;}else {var valid96 = true;}if(valid96){if(data79.high !== undefined){let data81 = data79.high;const _errs313 = errors;const _errs314 = errors;const _errs315 = errors;let valid100 = false;const _errs316 = errors;if(!((typeof data81 == "number") && (isFinite(data81)))){const err172 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var _valid33 = _errs316 === errors;valid100 = valid100 || _valid33;const _errs318 = errors;if(typeof data81 !== "bigint"){const err173 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var _valid33 = _errs318 === errors;valid100 = valid100 || _valid33;if(!valid100){const err174 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs315;if(vErrors !== null){if(_errs315){vErrors.length = _errs315;}else {vErrors = null;}}}var valid99 = _errs314 === errors;if(valid99){if(typeof data81 === "bigint"){if(data81 < 0){const err175 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}if(errors === _errs313){if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err176 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}var valid96 = _errs313 === errors;}else {var valid96 = true;}}}}else {const err177 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}var _valid30 = _errs304 === errors;valid92 = valid92 || _valid30;if(_valid30){var props8 = {};props8.low = true;props8.high = true;}const _errs319 = errors;if(data79 !== null){const err178 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var _valid30 = _errs319 === errors;valid92 = valid92 || _valid30;if(!valid92){const err179 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs297;if(vErrors !== null){if(_errs297){vErrors.length = _errs297;}else {vErrors = null;}}}var valid91 = _errs296 === errors;}else {var valid91 = true;}if(valid91){if(data72.source !== undefined){let data82 = data72.source;const _errs321 = errors;if(typeof data82 !== "string"){const err180 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(!((((((data82 === "provider") || (data82 === "published")) || (data82 === "measured")) || (data82 === "recorded")) || (data82 === "calculated")) || (data82 === "unknown"))){const err181 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var valid91 = _errs321 === errors;}else {var valid91 = true;}if(valid91){if(data72.observed_at !== undefined){let data83 = data72.observed_at;const _errs324 = errors;const _errs325 = errors;if(errors === _errs325){if(errors === _errs325){if(typeof data83 === "string"){if(!pattern78.test(data83)){const err182 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {if(!(formats0.validate(data83))){const err183 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}var valid91 = _errs324 === errors;}else {var valid91 = true;}if(valid91){if(data72.how !== undefined){let data84 = data72.how;const _errs327 = errors;const _errs328 = errors;if(errors === _errs328){if(typeof data84 === "string"){if(func1(data84) < 1){const err185 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}var valid91 = _errs327 === errors;}else {var valid91 = true;}}}}}}}}}else {const err187 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}var valid83 = _errs277 === errors;if(!valid83){break;}}}}else {const err188 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}var valid33 = _errs275 === errors;}else {var valid33 = true;}if(valid33){if(data35.creations !== undefined){let data85 = data35.creations;const _errs330 = errors;const _errs332 = errors;let valid104 = true;const _errs333 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing27;if((data85.source === undefined) && (missing27 = "source")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {if(data85.source !== undefined){if("unknown" !== data85.source){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}}var _valid34 = _errs333 === errors;errors = _errs332;if(vErrors !== null){if(_errs332){vErrors.length = _errs332;}else {vErrors = null;}}let ifClause5;if(_valid34){const _errs336 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){if(data85.count !== null){const err191 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/then/properties/count/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}var _valid34 = _errs336 === errors;valid104 = _valid34;if(valid104){var props9 = {};props9.count = true;props9.source = true;}ifClause5 = "then";}else {const _errs339 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){let data88 = data85.count;const _errs342 = errors;let valid110 = false;const _errs343 = errors;if(!(((typeof data88 == "number") && (!(data88 % 1) && !isNaN(data88))) && (isFinite(data88)))){const err192 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid35 = _errs343 === errors;valid110 = valid110 || _valid35;const _errs345 = errors;if(typeof data88 !== "bigint"){const err193 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid35 = _errs345 === errors;valid110 = valid110 || _valid35;if(!valid110){const err194 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs342;if(vErrors !== null){if(_errs342){vErrors.length = _errs342;}else {vErrors = null;}}}}}var _valid34 = _errs339 === errors;valid104 = _valid34;if(valid104){if(props9 !== true){props9 = props9 || {};props9.count = true;}}ifClause5 = "else";}if(!valid104){const err195 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(errors === _errs330){if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing28;if(((((data85.count === undefined) && (missing28 = "count")) || ((data85.source === undefined) && (missing28 = "source"))) || ((data85.observed_at === undefined) && (missing28 = "observed_at"))) || ((data85.how === undefined) && (missing28 = "how"))){const err196 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/required",keyword:"required",params:{missingProperty: missing28},message:"must have required property '"+missing28+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(props9 !== true){props9 = props9 || {};props9.count = true;props9.source = true;props9.observed_at = true;props9.how = true;}if(data85.count !== undefined){let data89 = data85.count;const _errs346 = errors;const _errs347 = errors;const _errs348 = errors;let valid113 = false;const _errs349 = errors;if((!(((typeof data89 == "number") && (!(data89 % 1) && !isNaN(data89))) && (isFinite(data89)))) && (data89 !== null)){const err197 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.creations.properties.count.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var _valid36 = _errs349 === errors;valid113 = valid113 || _valid36;const _errs351 = errors;if(typeof data89 !== "bigint"){const err198 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var _valid36 = _errs351 === errors;valid113 = valid113 || _valid36;if(!valid113){const err199 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}else {errors = _errs348;if(vErrors !== null){if(_errs348){vErrors.length = _errs348;}else {vErrors = null;}}}var valid112 = _errs347 === errors;if(valid112){if(typeof data89 === "bigint"){if(data89 < 0){const err200 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}if(errors === _errs346){if((typeof data89 == "number") && (isFinite(data89))){if(data89 < 0 || isNaN(data89)){const err201 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}var valid111 = _errs346 === errors;}else {var valid111 = true;}if(valid111){if(data85.source !== undefined){let data90 = data85.source;const _errs352 = errors;if(typeof data90 !== "string"){const err202 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(!((((((data90 === "provider") || (data90 === "published")) || (data90 === "measured")) || (data90 === "recorded")) || (data90 === "calculated")) || (data90 === "unknown"))){const err203 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var valid111 = _errs352 === errors;}else {var valid111 = true;}if(valid111){if(data85.observed_at !== undefined){let data91 = data85.observed_at;const _errs355 = errors;const _errs356 = errors;if(errors === _errs356){if(errors === _errs356){if(typeof data91 === "string"){if(!pattern78.test(data91)){const err204 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(!(formats0.validate(data91))){const err205 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}}else {const err206 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}var valid111 = _errs355 === errors;}else {var valid111 = true;}if(valid111){if(data85.how !== undefined){let data92 = data85.how;const _errs358 = errors;const _errs359 = errors;if(errors === _errs359){if(typeof data92 === "string"){if(func1(data92) < 1){const err207 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}else {const err208 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var valid111 = _errs358 === errors;}else {var valid111 = true;}}}}}}else {const err209 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}var valid33 = _errs330 === errors;}else {var valid33 = true;}if(valid33){if(data35.active_cpu !== undefined){let data93 = data35.active_cpu;const _errs361 = errors;const _errs363 = errors;let valid117 = true;const _errs364 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing29;if((data93.source === undefined) && (missing29 = "source")){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(data93.source !== undefined){if("unknown" !== data93.source){const err211 = {};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}}var _valid37 = _errs364 === errors;errors = _errs363;if(vErrors !== null){if(_errs363){vErrors.length = _errs363;}else {vErrors = null;}}let ifClause6;if(_valid37){const _errs367 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){if(data93.seconds !== null){const err212 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}var _valid37 = _errs367 === errors;valid117 = _valid37;if(valid117){var props10 = {};props10.seconds = true;props10.source = true;}ifClause6 = "then";}else {const _errs370 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){let data96 = data93.seconds;const _errs373 = errors;let valid123 = false;const _errs374 = errors;if(!((typeof data96 == "number") && (isFinite(data96)))){const err213 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid38 = _errs374 === errors;valid123 = valid123 || _valid38;const _errs376 = errors;if(typeof data96 !== "bigint"){const err214 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var _valid38 = _errs376 === errors;valid123 = valid123 || _valid38;if(!valid123){const err215 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}else {errors = _errs373;if(vErrors !== null){if(_errs373){vErrors.length = _errs373;}else {vErrors = null;}}}}}var _valid37 = _errs370 === errors;valid117 = _valid37;if(valid117){if(props10 !== true){props10 = props10 || {};props10.seconds = true;}}ifClause6 = "else";}if(!valid117){const err216 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(errors === _errs361){if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing30;if(((((data93.seconds === undefined) && (missing30 = "seconds")) || ((data93.source === undefined) && (missing30 = "source"))) || ((data93.observed_at === undefined) && (missing30 = "observed_at"))) || ((data93.how === undefined) && (missing30 = "how"))){const err217 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/required",keyword:"required",params:{missingProperty: missing30},message:"must have required property '"+missing30+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {if(props10 !== true){props10 = props10 || {};props10.seconds = true;props10.source = true;props10.observed_at = true;props10.how = true;}if(data93.seconds !== undefined){let data97 = data93.seconds;const _errs377 = errors;const _errs378 = errors;const _errs379 = errors;let valid126 = false;const _errs380 = errors;if((!((typeof data97 == "number") && (isFinite(data97)))) && (data97 !== null)){const err218 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.active_cpu.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var _valid39 = _errs380 === errors;valid126 = valid126 || _valid39;const _errs382 = errors;if(typeof data97 !== "bigint"){const err219 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}var _valid39 = _errs382 === errors;valid126 = valid126 || _valid39;if(!valid126){const err220 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}var valid125 = _errs378 === errors;if(valid125){if(typeof data97 === "bigint"){if(data97 < 0){const err221 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}if(errors === _errs377){if((typeof data97 == "number") && (isFinite(data97))){if(data97 < 0 || isNaN(data97)){const err222 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}var valid124 = _errs377 === errors;}else {var valid124 = true;}if(valid124){if(data93.source !== undefined){let data98 = data93.source;const _errs383 = errors;if(typeof data98 !== "string"){const err223 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if(!((((((data98 === "provider") || (data98 === "published")) || (data98 === "measured")) || (data98 === "recorded")) || (data98 === "calculated")) || (data98 === "unknown"))){const err224 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}var valid124 = _errs383 === errors;}else {var valid124 = true;}if(valid124){if(data93.observed_at !== undefined){let data99 = data93.observed_at;const _errs386 = errors;const _errs387 = errors;if(errors === _errs387){if(errors === _errs387){if(typeof data99 === "string"){if(!pattern78.test(data99)){const err225 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(!(formats0.validate(data99))){const err226 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}else {const err227 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}var valid124 = _errs386 === errors;}else {var valid124 = true;}if(valid124){if(data93.how !== undefined){let data100 = data93.how;const _errs389 = errors;const _errs390 = errors;if(errors === _errs390){if(typeof data100 === "string"){if(func1(data100) < 1){const err228 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}var valid124 = _errs389 === errors;}else {var valid124 = true;}}}}}}else {const err230 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}var valid33 = _errs361 === errors;}else {var valid33 = true;}if(valid33){if(data35.egress !== undefined){let data101 = data35.egress;const _errs392 = errors;const _errs394 = errors;let valid130 = true;const _errs395 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing31;if((data101.source === undefined) && (missing31 = "source")){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}else {if(data101.source !== undefined){if("unknown" !== data101.source){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}}var _valid40 = _errs395 === errors;errors = _errs394;if(vErrors !== null){if(_errs394){vErrors.length = _errs394;}else {vErrors = null;}}let ifClause7;if(_valid40){const _errs398 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){if(data101.bytes !== null){const err233 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/then/properties/bytes/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}var _valid40 = _errs398 === errors;valid130 = _valid40;if(valid130){var props11 = {};props11.bytes = true;props11.source = true;}ifClause7 = "then";}else {const _errs401 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){let data104 = data101.bytes;const _errs404 = errors;let valid136 = false;const _errs405 = errors;if(!(((typeof data104 == "number") && (!(data104 % 1) && !isNaN(data104))) && (isFinite(data104)))){const err234 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var _valid41 = _errs405 === errors;valid136 = valid136 || _valid41;const _errs407 = errors;if(typeof data104 !== "bigint"){const err235 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}var _valid41 = _errs407 === errors;valid136 = valid136 || _valid41;if(!valid136){const err236 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {errors = _errs404;if(vErrors !== null){if(_errs404){vErrors.length = _errs404;}else {vErrors = null;}}}}}var _valid40 = _errs401 === errors;valid130 = _valid40;if(valid130){if(props11 !== true){props11 = props11 || {};props11.bytes = true;}}ifClause7 = "else";}if(!valid130){const err237 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(errors === _errs392){if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing32;if(((((data101.bytes === undefined) && (missing32 = "bytes")) || ((data101.source === undefined) && (missing32 = "source"))) || ((data101.observed_at === undefined) && (missing32 = "observed_at"))) || ((data101.how === undefined) && (missing32 = "how"))){const err238 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/required",keyword:"required",params:{missingProperty: missing32},message:"must have required property '"+missing32+"'"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(props11 !== true){props11 = props11 || {};props11.bytes = true;props11.source = true;props11.observed_at = true;props11.how = true;}if(data101.bytes !== undefined){let data105 = data101.bytes;const _errs408 = errors;const _errs409 = errors;const _errs410 = errors;let valid139 = false;const _errs411 = errors;if((!(((typeof data105 == "number") && (!(data105 % 1) && !isNaN(data105))) && (isFinite(data105)))) && (data105 !== null)){const err239 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.egress.properties.bytes.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}var _valid42 = _errs411 === errors;valid139 = valid139 || _valid42;const _errs413 = errors;if(typeof data105 !== "bigint"){const err240 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid42 = _errs413 === errors;valid139 = valid139 || _valid42;if(!valid139){const err241 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {errors = _errs410;if(vErrors !== null){if(_errs410){vErrors.length = _errs410;}else {vErrors = null;}}}var valid138 = _errs409 === errors;if(valid138){if(typeof data105 === "bigint"){if(data105 < 0){const err242 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}if(errors === _errs408){if((typeof data105 == "number") && (isFinite(data105))){if(data105 < 0 || isNaN(data105)){const err243 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}var valid137 = _errs408 === errors;}else {var valid137 = true;}if(valid137){if(data101.source !== undefined){let data106 = data101.source;const _errs414 = errors;if(typeof data106 !== "string"){const err244 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}if(!((((((data106 === "provider") || (data106 === "published")) || (data106 === "measured")) || (data106 === "recorded")) || (data106 === "calculated")) || (data106 === "unknown"))){const err245 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}var valid137 = _errs414 === errors;}else {var valid137 = true;}if(valid137){if(data101.observed_at !== undefined){let data107 = data101.observed_at;const _errs417 = errors;const _errs418 = errors;if(errors === _errs418){if(errors === _errs418){if(typeof data107 === "string"){if(!pattern78.test(data107)){const err246 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {if(!(formats0.validate(data107))){const err247 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}var valid137 = _errs417 === errors;}else {var valid137 = true;}if(valid137){if(data101.how !== undefined){let data108 = data101.how;const _errs420 = errors;const _errs421 = errors;if(errors === _errs421){if(typeof data108 === "string"){if(func1(data108) < 1){const err249 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}else {const err250 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}var valid137 = _errs420 === errors;}else {var valid137 = true;}}}}}}else {const err251 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}var valid33 = _errs392 === errors;}else {var valid33 = true;}if(valid33){if(data35.snapshot_storage !== undefined){let data109 = data35.snapshot_storage;const _errs423 = errors;const _errs425 = errors;let valid143 = true;const _errs426 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing33;if((data109.source === undefined) && (missing33 = "source")){const err252 = {};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}else {if(data109.source !== undefined){if("unknown" !== data109.source){const err253 = {};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}}var _valid43 = _errs426 === errors;errors = _errs425;if(vErrors !== null){if(_errs425){vErrors.length = _errs425;}else {vErrors = null;}}let ifClause8;if(_valid43){const _errs429 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(data109.gb !== undefined){if(data109.gb !== null){const err254 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/then/properties/gb/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}}var _valid43 = _errs429 === errors;valid143 = _valid43;if(valid143){var props12 = {};props12.gb = true;props12.source = true;}ifClause8 = "then";}else {const _errs432 = errors;const _errs433 = errors;let valid147 = false;const _errs434 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing34;if((data109.gb === undefined) && (missing34 = "gb")){const err255 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing34},message:"must have required property '"+missing34+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}else {if(data109.gb !== undefined){let data112 = data109.gb;const _errs437 = errors;let valid150 = false;const _errs438 = errors;if(!((typeof data112 == "number") && (isFinite(data112)))){const err256 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}var _valid45 = _errs438 === errors;valid150 = valid150 || _valid45;const _errs440 = errors;if(typeof data112 !== "bigint"){const err257 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}var _valid45 = _errs440 === errors;valid150 = valid150 || _valid45;if(!valid150){const err258 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}}}}}var _valid44 = _errs434 === errors;valid147 = valid147 || _valid44;if(_valid44){var props13 = {};props13.gb = true;}const _errs441 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing35;if((data109.bytes === undefined) && (missing35 = "bytes")){const err259 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing35},message:"must have required property '"+missing35+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}var _valid44 = _errs441 === errors;valid147 = valid147 || _valid44;if(!valid147){const err260 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {errors = _errs433;if(vErrors !== null){if(_errs433){vErrors.length = _errs433;}else {vErrors = null;}}}var _valid43 = _errs432 === errors;valid143 = _valid43;if(valid143){if(props12 !== true && props13 !== undefined){if(props13 === true){props12 = true;}else {props12 = props12 || {};Object.assign(props12, props13);}}}ifClause8 = "else";}if(!valid143){const err261 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/if",keyword:"if",params:{failingKeyword: ifClause8},message:"must match \""+ifClause8+"\" schema"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(errors === _errs423){if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing36;if((((data109.source === undefined) && (missing36 = "source")) || ((data109.observed_at === undefined) && (missing36 = "observed_at"))) || ((data109.how === undefined) && (missing36 = "how"))){const err262 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/required",keyword:"required",params:{missingProperty: missing36},message:"must have required property '"+missing36+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}else {if(props12 !== true){props12 = props12 || {};props12.gb = true;props12.max_gb = true;props12.source = true;props12.observed_at = true;props12.how = true;props12.bytes = true;}if(data109.gb !== undefined){let data113 = data109.gb;const _errs442 = errors;const _errs443 = errors;const _errs444 = errors;let valid153 = false;const _errs445 = errors;if((!((typeof data113 == "number") && (isFinite(data113)))) && (data113 !== null)){const err263 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid46 = _errs445 === errors;valid153 = valid153 || _valid46;const _errs447 = errors;if(typeof data113 !== "bigint"){const err264 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}var _valid46 = _errs447 === errors;valid153 = valid153 || _valid46;if(!valid153){const err265 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}else {errors = _errs444;if(vErrors !== null){if(_errs444){vErrors.length = _errs444;}else {vErrors = null;}}}var valid152 = _errs443 === errors;if(valid152){if(typeof data113 === "bigint"){if(data113 < 0){const err266 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}if(errors === _errs442){if((typeof data113 == "number") && (isFinite(data113))){if(data113 < 0 || isNaN(data113)){const err267 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}}var valid151 = _errs442 === errors;}else {var valid151 = true;}if(valid151){if(data109.max_gb !== undefined){let data114 = data109.max_gb;const _errs448 = errors;const _errs449 = errors;const _errs450 = errors;let valid155 = false;const _errs451 = errors;if((!((typeof data114 == "number") && (isFinite(data114)))) && (data114 !== null)){const err268 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.max_gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}var _valid47 = _errs451 === errors;valid155 = valid155 || _valid47;const _errs453 = errors;if(typeof data114 !== "bigint"){const err269 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}var _valid47 = _errs453 === errors;valid155 = valid155 || _valid47;if(!valid155){const err270 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {errors = _errs450;if(vErrors !== null){if(_errs450){vErrors.length = _errs450;}else {vErrors = null;}}}var valid154 = _errs449 === errors;if(valid154){if(typeof data114 === "bigint"){if(data114 < 0){const err271 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}}if(errors === _errs448){if((typeof data114 == "number") && (isFinite(data114))){if(data114 < 0 || isNaN(data114)){const err272 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}var valid151 = _errs448 === errors;}else {var valid151 = true;}if(valid151){if(data109.source !== undefined){let data115 = data109.source;const _errs454 = errors;if(typeof data115 !== "string"){const err273 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}if(!((((((data115 === "provider") || (data115 === "published")) || (data115 === "measured")) || (data115 === "recorded")) || (data115 === "calculated")) || (data115 === "unknown"))){const err274 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}var valid151 = _errs454 === errors;}else {var valid151 = true;}if(valid151){if(data109.observed_at !== undefined){let data116 = data109.observed_at;const _errs457 = errors;const _errs458 = errors;if(errors === _errs458){if(errors === _errs458){if(typeof data116 === "string"){if(!pattern78.test(data116)){const err275 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {if(!(formats0.validate(data116))){const err276 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}var valid151 = _errs457 === errors;}else {var valid151 = true;}if(valid151){if(data109.how !== undefined){let data117 = data109.how;const _errs460 = errors;const _errs461 = errors;if(errors === _errs461){if(typeof data117 === "string"){if(func1(data117) < 1){const err278 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}else {const err279 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}var valid151 = _errs460 === errors;}else {var valid151 = true;}if(valid151){if(data109.bytes !== undefined){let data118 = data109.bytes;const _errs463 = errors;const _errs464 = errors;const _errs465 = errors;let valid160 = false;const _errs466 = errors;if(!(((typeof data118 == "number") && (!(data118 % 1) && !isNaN(data118))) && (isFinite(data118)))){const err280 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}var _valid48 = _errs466 === errors;valid160 = valid160 || _valid48;const _errs468 = errors;if(typeof data118 !== "bigint"){const err281 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}var _valid48 = _errs468 === errors;valid160 = valid160 || _valid48;if(!valid160){const err282 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}else {errors = _errs465;if(vErrors !== null){if(_errs465){vErrors.length = _errs465;}else {vErrors = null;}}}var valid159 = _errs464 === errors;if(valid159){if(typeof data118 === "bigint"){if(data118 < 0){const err283 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}}if(errors === _errs463){if((typeof data118 == "number") && (isFinite(data118))){if(data118 < 0 || isNaN(data118)){const err284 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}var valid151 = _errs463 === errors;}else {var valid151 = true;}}}}}}}}else {const err285 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}var valid33 = _errs423 === errors;}else {var valid33 = true;}}}}}}}}}}}}}else {const err286 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}var _valid15 = _errs136 === errors;valid32 = valid32 || _valid15;if(_valid15){var props14 = true;}const _errs469 = errors;if(errors === _errs469){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing37;if(((((((data35.provider === undefined) && (missing37 = "provider")) || ((data35.started === undefined) && (missing37 = "started"))) || ((data35.region === undefined) && (missing37 = "region"))) || ((data35.size === undefined) && (missing37 = "size"))) || ((data35.intervals === undefined) && (missing37 = "intervals"))) || ((data35.creations === undefined) && (missing37 = "creations"))){const err287 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/required",keyword:"required",params:{missingProperty: missing37},message:"must have required property '"+missing37+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}else {const _errs471 = errors;for(const key2 in data35){if(!(func237.call(schema320.properties.usage.anyOf[1].properties, key2))){const err288 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;break;}}if(_errs471 === errors){if(data35.provider !== undefined){let data119 = data35.provider;const _errs472 = errors;const _errs473 = errors;if(errors === _errs473){if(typeof data119 === "string"){if(!pattern42.test(data119)){const err289 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}var valid161 = _errs472 === errors;}else {var valid161 = true;}if(valid161){if(data35.class !== undefined){const _errs475 = errors;if(!(validate344(data35.class, {instancePath:instancePath+"/usage/class",parentData:data35,parentDataProperty:"class",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate344.errors : vErrors.concat(validate344.errors);errors = vErrors.length;}var valid161 = _errs475 === errors;}else {var valid161 = true;}if(valid161){if(data35.started !== undefined){const _errs476 = errors;if(!(validate346(data35.started, {instancePath:instancePath+"/usage/started",parentData:data35,parentDataProperty:"started",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate346.errors : vErrors.concat(validate346.errors);errors = vErrors.length;}var valid161 = _errs476 === errors;}else {var valid161 = true;}if(valid161){if(data35.region !== undefined){const _errs477 = errors;if(!(validate348(data35.region, {instancePath:instancePath+"/usage/region",parentData:data35,parentDataProperty:"region",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate348.errors : vErrors.concat(validate348.errors);errors = vErrors.length;}var valid161 = _errs477 === errors;}else {var valid161 = true;}if(valid161){if(data35.size !== undefined){let data123 = data35.size;const _errs478 = errors;const _errs480 = errors;const _errs481 = errors;let valid164 = true;const _errs482 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing38;if((data123.gpu === undefined) && (missing38 = "gpu")){const err291 = {};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}var _valid49 = _errs482 === errors;errors = _errs481;if(vErrors !== null){if(_errs481){vErrors.length = _errs481;}else {vErrors = null;}}if(_valid49){const _errs483 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing39;if((data123.gpu_model === undefined) && (missing39 = "gpu_model")){const err292 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing39},message:"must have required property '"+missing39+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}var _valid49 = _errs483 === errors;valid164 = _valid49;}if(!valid164){const err293 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var valid163 = _errs480 === errors;if(valid163){const _errs484 = errors;const _errs485 = errors;let valid165 = true;const _errs486 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing40;if((data123.gpu_model === undefined) && (missing40 = "gpu_model")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}var _valid50 = _errs486 === errors;errors = _errs485;if(vErrors !== null){if(_errs485){vErrors.length = _errs485;}else {vErrors = null;}}if(_valid50){const _errs487 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing41;if((data123.gpu === undefined) && (missing41 = "gpu")){const err295 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing41},message:"must have required property '"+missing41+"'"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}var _valid50 = _errs487 === errors;valid165 = _valid50;}if(!valid165){const err296 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var valid163 = _errs484 === errors;if(valid163){const _errs488 = errors;let valid166 = true;const _errs489 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing42;if((data123.source === undefined) && (missing42 = "source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data123.source !== undefined){if("unknown" !== data123.source){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}}var _valid51 = _errs489 === errors;errors = _errs488;if(vErrors !== null){if(_errs488){vErrors.length = _errs488;}else {vErrors = null;}}let ifClause9;if(_valid51){const _errs492 = errors;const _errs494 = errors;const _errs495 = errors;const _errs496 = errors;let valid171 = false;const _errs497 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing43;if((data123.cpu === undefined) && (missing43 = "cpu")){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}var _valid52 = _errs497 === errors;valid171 = valid171 || _valid52;const _errs498 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing44;if((data123.memory_mib === undefined) && (missing44 = "memory_mib")){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}var _valid52 = _errs498 === errors;valid171 = valid171 || _valid52;const _errs499 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing45;if((data123.disk_mib === undefined) && (missing45 = "disk_mib")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}var _valid52 = _errs499 === errors;valid171 = valid171 || _valid52;const _errs500 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing46;if((data123.gpu === undefined) && (missing46 = "gpu")){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}var _valid52 = _errs500 === errors;valid171 = valid171 || _valid52;const _errs501 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing47;if((data123.gpu_model === undefined) && (missing47 = "gpu_model")){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid52 = _errs501 === errors;valid171 = valid171 || _valid52;if(!valid171){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}var valid170 = _errs495 === errors;if(valid170){const err305 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}var _valid51 = _errs492 === errors;valid166 = _valid51;ifClause9 = "then";}else {const _errs502 = errors;const _errs504 = errors;let valid173 = false;const _errs505 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing48;if((data123.cpu === undefined) && (missing48 = "cpu")){const err306 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing48},message:"must have required property '"+missing48+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}var _valid53 = _errs505 === errors;valid173 = valid173 || _valid53;const _errs506 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing49;if((data123.memory_mib === undefined) && (missing49 = "memory_mib")){const err307 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing49},message:"must have required property '"+missing49+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}}var _valid53 = _errs506 === errors;valid173 = valid173 || _valid53;const _errs507 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing50;if((data123.disk_mib === undefined) && (missing50 = "disk_mib")){const err308 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing50},message:"must have required property '"+missing50+"'"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid53 = _errs507 === errors;valid173 = valid173 || _valid53;const _errs508 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing51;if((data123.gpu === undefined) && (missing51 = "gpu")){const err309 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing51},message:"must have required property '"+missing51+"'"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}var _valid53 = _errs508 === errors;valid173 = valid173 || _valid53;if(!valid173){const err310 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {errors = _errs504;if(vErrors !== null){if(_errs504){vErrors.length = _errs504;}else {vErrors = null;}}}var _valid51 = _errs502 === errors;valid166 = _valid51;ifClause9 = "else";}if(!valid166){const err311 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/if",keyword:"if",params:{failingKeyword: ifClause9},message:"must match \""+ifClause9+"\" schema"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}if(errors === _errs478){if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing52;if((((data123.source === undefined) && (missing52 = "source")) || ((data123.observed_at === undefined) && (missing52 = "observed_at"))) || ((data123.how === undefined) && (missing52 = "how"))){const err312 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/required",keyword:"required",params:{missingProperty: missing52},message:"must have required property '"+missing52+"'"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}else {if(data123.cpu !== undefined){let data125 = data123.cpu;const _errs509 = errors;const _errs510 = errors;const _errs511 = errors;const _errs512 = errors;let valid177 = false;const _errs513 = errors;if(!((typeof data125 == "number") && (isFinite(data125)))){const err313 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid54 = _errs513 === errors;valid177 = valid177 || _valid54;const _errs515 = errors;if(typeof data125 !== "bigint"){const err314 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}var _valid54 = _errs515 === errors;valid177 = valid177 || _valid54;if(!valid177){const err315 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}else {errors = _errs512;if(vErrors !== null){if(_errs512){vErrors.length = _errs512;}else {vErrors = null;}}}var valid176 = _errs511 === errors;if(valid176){if(typeof data125 === "bigint"){if(data125 <= 0){const err316 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}}if(errors === _errs510){if((typeof data125 == "number") && (isFinite(data125))){if(data125 <= 0 || isNaN(data125)){const err317 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}}var valid174 = _errs509 === errors;}else {var valid174 = true;}if(valid174){if(data123.memory_mib !== undefined){let data126 = data123.memory_mib;const _errs516 = errors;const _errs517 = errors;const _errs518 = errors;const _errs519 = errors;let valid180 = false;const _errs520 = errors;if(!(((typeof data126 == "number") && (!(data126 % 1) && !isNaN(data126))) && (isFinite(data126)))){const err318 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}var _valid55 = _errs520 === errors;valid180 = valid180 || _valid55;const _errs522 = errors;if(typeof data126 !== "bigint"){const err319 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid55 = _errs522 === errors;valid180 = valid180 || _valid55;if(!valid180){const err320 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs519;if(vErrors !== null){if(_errs519){vErrors.length = _errs519;}else {vErrors = null;}}}var valid179 = _errs518 === errors;if(valid179){if(typeof data126 === "bigint"){if(data126 < 1){const err321 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}}}if(errors === _errs517){if((typeof data126 == "number") && (isFinite(data126))){if(data126 < 1 || isNaN(data126)){const err322 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}}var valid174 = _errs516 === errors;}else {var valid174 = true;}if(valid174){if(data123.disk_mib !== undefined){let data127 = data123.disk_mib;const _errs523 = errors;const _errs524 = errors;const _errs525 = errors;const _errs526 = errors;let valid183 = false;const _errs527 = errors;if(!(((typeof data127 == "number") && (!(data127 % 1) && !isNaN(data127))) && (isFinite(data127)))){const err323 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}var _valid56 = _errs527 === errors;valid183 = valid183 || _valid56;const _errs529 = errors;if(typeof data127 !== "bigint"){const err324 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}var _valid56 = _errs529 === errors;valid183 = valid183 || _valid56;if(!valid183){const err325 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}}var valid182 = _errs525 === errors;if(valid182){if(typeof data127 === "bigint"){if(data127 < 1){const err326 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}if(errors === _errs524){if((typeof data127 == "number") && (isFinite(data127))){if(data127 < 1 || isNaN(data127)){const err327 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}}var valid174 = _errs523 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu !== undefined){const _errs530 = errors;if(0 !== data123.gpu){const err328 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/1/properties/size/properties/gpu/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}var valid174 = _errs530 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu_model !== undefined){let data129 = data123.gpu_model;const _errs531 = errors;const _errs532 = errors;if(errors === _errs532){if(typeof data129 === "string"){if(!pattern219.test(data129)){const err329 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}else {const err330 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}var valid174 = _errs531 === errors;}else {var valid174 = true;}if(valid174){if(data123.source !== undefined){let data130 = data123.source;const _errs534 = errors;if(typeof data130 !== "string"){const err331 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(!((((((data130 === "provider") || (data130 === "published")) || (data130 === "measured")) || (data130 === "recorded")) || (data130 === "calculated")) || (data130 === "unknown"))){const err332 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}var valid174 = _errs534 === errors;}else {var valid174 = true;}if(valid174){if(data123.observed_at !== undefined){let data131 = data123.observed_at;const _errs537 = errors;const _errs538 = errors;if(errors === _errs538){if(errors === _errs538){if(typeof data131 === "string"){if(!pattern78.test(data131)){const err333 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}else {if(!(formats0.validate(data131))){const err334 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}var valid174 = _errs537 === errors;}else {var valid174 = true;}if(valid174){if(data123.how !== undefined){let data132 = data123.how;const _errs540 = errors;const _errs541 = errors;if(errors === _errs541){if(typeof data132 === "string"){if(func1(data132) < 1){const err336 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}else {const err337 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}var valid174 = _errs540 === errors;}else {var valid174 = true;}}}}}}}}}}else {const err338 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}var valid161 = _errs478 === errors;}else {var valid161 = true;}if(valid161){if(data35.intervals !== undefined){const _errs543 = errors;if(!(validate350(data35.intervals, {instancePath:instancePath+"/usage/intervals",parentData:data35,parentDataProperty:"intervals",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate350.errors : vErrors.concat(validate350.errors);errors = vErrors.length;}var valid161 = _errs543 === errors;}else {var valid161 = true;}if(valid161){if(data35.creations !== undefined){const _errs544 = errors;if(!(validate354(data35.creations, {instancePath:instancePath+"/usage/creations",parentData:data35,parentDataProperty:"creations",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate354.errors : vErrors.concat(validate354.errors);errors = vErrors.length;}var valid161 = _errs544 === errors;}else {var valid161 = true;}if(valid161){if(data35.active_cpu !== undefined){const _errs545 = errors;if(!(validate356(data35.active_cpu, {instancePath:instancePath+"/usage/active_cpu",parentData:data35,parentDataProperty:"active_cpu",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate356.errors : vErrors.concat(validate356.errors);errors = vErrors.length;}var valid161 = _errs545 === errors;}else {var valid161 = true;}if(valid161){if(data35.egress !== undefined){const _errs546 = errors;if(!(validate358(data35.egress, {instancePath:instancePath+"/usage/egress",parentData:data35,parentDataProperty:"egress",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate358.errors : vErrors.concat(validate358.errors);errors = vErrors.length;}var valid161 = _errs546 === errors;}else {var valid161 = true;}}}}}}}}}}}}else {const err339 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}var _valid15 = _errs469 === errors;valid32 = valid32 || _valid15;if(_valid15){if(props14 !== true){props14 = true;}}const _errs547 = errors;if(data35 !== null){const err340 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}var _valid15 = _errs547 === errors;valid32 = valid32 || _valid15;if(!valid32){const err341 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}var valid0 = _errs134 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data137 = data.cost;const _errs549 = errors;const _errs550 = errors;let valid188 = false;const _errs551 = errors;const _errs553 = errors;const _errs554 = errors;let valid190 = true;const _errs555 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing53;if((data137.label === undefined) && (missing53 = "label")){const err342 = {};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err343 = {};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}}var _valid58 = _errs555 === errors;errors = _errs554;if(vErrors !== null){if(_errs554){vErrors.length = _errs554;}else {vErrors = null;}}let ifClause10;if(_valid58){const _errs557 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err344 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}}var _valid58 = _errs557 === errors;valid190 = _valid58;if(valid190){var props21 = {};props21.total = true;props21.label = true;}ifClause10 = "then";}else {const _errs560 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data140 = data137.total;if(!(data140 && typeof data140 == "object" && !Array.isArray(data140))){const err345 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}}var _valid58 = _errs560 === errors;valid190 = _valid58;if(valid190){if(props21 !== true){props21 = props21 || {};props21.total = true;}}ifClause10 = "else";}if(!valid190){const err346 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause10},message:"must match \""+ifClause10+"\" schema"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}var valid189 = _errs553 === errors;if(valid189){const _errs563 = errors;const _errs564 = errors;let valid194 = true;const _errs565 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing54;if((data137.label === undefined) && (missing54 = "label")){const err347 = {};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}else {if(data137.label !== undefined){if("reported" !== data137.label){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}}var _valid59 = _errs565 === errors;errors = _errs564;if(vErrors !== null){if(_errs564){vErrors.length = _errs564;}else {vErrors = null;}}let ifClause11;if(_valid59){const _errs567 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing55;if((data137.reported_figure === undefined) && (missing55 = "reported_figure")){const err349 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: missing55},message:"must have required property '"+missing55+"'"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}var _valid59 = _errs567 === errors;valid194 = _valid59;ifClause11 = "then";}else {const _errs568 = errors;const _errs569 = errors;const _errs570 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing56;if((data137.reported_figure === undefined) && (missing56 = "reported_figure")){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}var valid196 = _errs570 === errors;if(valid196){const err351 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}else {errors = _errs569;if(vErrors !== null){if(_errs569){vErrors.length = _errs569;}else {vErrors = null;}}}var _valid59 = _errs568 === errors;valid194 = _valid59;ifClause11 = "else";}if(!valid194){const err352 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause11},message:"must match \""+ifClause11+"\" schema"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid189 = _errs563 === errors;if(valid189){if(props21 !== true){props21 = props21 || {};props21.label = true;}}}if(errors === _errs551){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing57;if((((((((data137.label === undefined) && (missing57 = "label")) || ((data137.total === undefined) && (missing57 = "total"))) || ((data137.lines === undefined) && (missing57 = "lines"))) || ((data137.held_back_by === undefined) && (missing57 = "held_back_by"))) || ((data137.exclusions === undefined) && (missing57 = "exclusions"))) || ((data137.price_version === undefined) && (missing57 = "price_version"))) || ((data137.as_of === undefined) && (missing57 = "as_of"))){const err353 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/required",keyword:"required",params:{missingProperty: missing57},message:"must have required property '"+missing57+"'"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {const _errs571 = errors;for(const key3 in data137){if(!(func237.call(schema320.properties.cost.anyOf[0].properties, key3))){const err354 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;break;}}if(_errs571 === errors){if(data137.label !== undefined){let data142 = data137.label;const _errs572 = errors;if(!(((data142 === "reported") || (data142 === "calculated")) || (data142 === "unknown"))){const err355 = {instancePath:instancePath+"/cost/label",schemaPath:"#/properties/cost/anyOf/0/properties/label/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.label.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}var valid197 = _errs572 === errors;}else {var valid197 = true;}if(valid197){if(data137.total !== undefined){let data143 = data137.total;const _errs573 = errors;const _errs574 = errors;let valid198 = false;const _errs575 = errors;if(!(validate118(data143, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);errors = vErrors.length;}var _valid60 = _errs575 === errors;valid198 = valid198 || _valid60;if(_valid60){var props22 = {};props22.low = true;props22.high = true;}const _errs576 = errors;if(data143 !== null){const err356 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid60 = _errs576 === errors;valid198 = valid198 || _valid60;if(!valid198){const err357 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}else {errors = _errs574;if(vErrors !== null){if(_errs574){vErrors.length = _errs574;}else {vErrors = null;}}}var valid197 = _errs573 === errors;}else {var valid197 = true;}if(valid197){if(data137.lines !== undefined){let data144 = data137.lines;const _errs578 = errors;if(errors === _errs578){if(Array.isArray(data144)){var valid199 = true;const len1 = data144.length;for(let i1=0; i1<len1; i1++){let data145 = data144[i1];const _errs580 = errors;if(errors === _errs580){if(data145 && typeof data145 == "object" && !Array.isArray(data145)){let missing58;if(((((((data145.what === undefined) && (missing58 = "what")) || ((data145.quantity === undefined) && (missing58 = "quantity"))) || ((data145.unit === undefined) && (missing58 = "unit"))) || ((data145.rate === undefined) && (missing58 = "rate"))) || ((data145.amount === undefined) && (missing58 = "amount"))) || ((data145.quantity_source === undefined) && (missing58 = "quantity_source"))){const err358 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/required",keyword:"required",params:{missingProperty: missing58},message:"must have required property '"+missing58+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}else {if(data145.what !== undefined){let data146 = data145.what;const _errs582 = errors;if(!((((((((data146 === "cpu") || (data146 === "memory")) || (data146 === "disk")) || (data146 === "gpu")) || (data146 === "machine")) || (data146 === "creation")) || (data146 === "egress")) || (data146 === "snapshot_storage"))){const err359 = {instancePath:instancePath+"/cost/lines/" + i1+"/what",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/what/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.lines.items.properties.what.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}var valid200 = _errs582 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity !== undefined){let data147 = data145.quantity;const _errs583 = errors;const _errs584 = errors;if(errors === _errs584){if(typeof data147 === "string"){if(!pattern50.test(data147)){const err360 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}else {const err361 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}var valid200 = _errs583 === errors;}else {var valid200 = true;}if(valid200){if(data145.unit !== undefined){let data148 = data145.unit;const _errs586 = errors;if(errors === _errs586){if(typeof data148 === "string"){if(func1(data148) < 1){const err362 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}else {const err363 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}var valid200 = _errs586 === errors;}else {var valid200 = true;}if(valid200){if(data145.rate !== undefined){let data149 = data145.rate;const _errs588 = errors;const _errs589 = errors;if(errors === _errs589){if(typeof data149 === "string"){if(!pattern50.test(data149)){const err364 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}else {const err365 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}var valid200 = _errs588 === errors;}else {var valid200 = true;}if(valid200){if(data145.amount !== undefined){let data150 = data145.amount;const _errs591 = errors;const _errs592 = errors;if(errors === _errs592){if(typeof data150 === "string"){if(!pattern50.test(data150)){const err366 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}else {const err367 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}var valid200 = _errs591 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity_source !== undefined){let data151 = data145.quantity_source;const _errs594 = errors;if(typeof data151 !== "string"){const err368 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(!((((((data151 === "provider") || (data151 === "published")) || (data151 === "measured")) || (data151 === "recorded")) || (data151 === "calculated")) || (data151 === "unknown"))){const err369 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}var valid200 = _errs594 === errors;}else {var valid200 = true;}if(valid200){if(data145.text !== undefined){let data152 = data145.text;const _errs597 = errors;if(errors === _errs597){if(typeof data152 === "string"){if(func1(data152) < 1){const err370 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}else {const err371 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}var valid200 = _errs597 === errors;}else {var valid200 = true;}if(valid200){if(data145.sources !== undefined){let data153 = data145.sources;const _errs599 = errors;if(errors === _errs599){if(data153 && typeof data153 == "object" && !Array.isArray(data153)){let missing59;if((data153.amount === undefined) && (missing59 = "amount")){const err372 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/required",keyword:"required",params:{missingProperty: missing59},message:"must have required property '"+missing59+"'"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {if(data153.quantity !== undefined){let data154 = data153.quantity;const _errs601 = errors;if(errors === _errs601){if(typeof data154 === "string"){if(func1(data154) < 1){const err373 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}var valid205 = _errs601 === errors;}else {var valid205 = true;}if(valid205){if(data153.rate !== undefined){let data155 = data153.rate;const _errs603 = errors;if(errors === _errs603){if(typeof data155 === "string"){if(func1(data155) < 1){const err375 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}}else {const err376 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}var valid205 = _errs603 === errors;}else {var valid205 = true;}if(valid205){if(data153.amount !== undefined){let data156 = data153.amount;const _errs605 = errors;if(errors === _errs605){if(typeof data156 === "string"){if(func1(data156) < 1){const err377 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}else {const err378 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}var valid205 = _errs605 === errors;}else {var valid205 = true;}}}}}else {const err379 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}}var valid200 = _errs599 === errors;}else {var valid200 = true;}}}}}}}}}}else {const err380 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}var valid199 = _errs580 === errors;if(!valid199){break;}}}else {const err381 = {instancePath:instancePath+"/cost/lines",schemaPath:"#/properties/cost/anyOf/0/properties/lines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}var valid197 = _errs578 === errors;}else {var valid197 = true;}if(valid197){if(data137.held_back_by !== undefined){let data157 = data137.held_back_by;const _errs607 = errors;if(errors === _errs607){if(Array.isArray(data157)){var valid206 = true;const len2 = data157.length;for(let i2=0; i2<len2; i2++){let data158 = data157[i2];const _errs609 = errors;if(errors === _errs609){if(typeof data158 === "string"){if(func1(data158) < 1){const err382 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}else {const err383 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}var valid206 = _errs609 === errors;if(!valid206){break;}}}else {const err384 = {instancePath:instancePath+"/cost/held_back_by",schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}var valid197 = _errs607 === errors;}else {var valid197 = true;}if(valid197){if(data137.exclusions !== undefined){let data159 = data137.exclusions;const _errs611 = errors;if(errors === _errs611){if(Array.isArray(data159)){var valid207 = true;const len3 = data159.length;for(let i3=0; i3<len3; i3++){let data160 = data159[i3];const _errs613 = errors;if(errors === _errs613){if(typeof data160 === "string"){if(func1(data160) < 1){const err385 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}else {const err386 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}}var valid207 = _errs613 === errors;if(!valid207){break;}}}else {const err387 = {instancePath:instancePath+"/cost/exclusions",schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}var valid197 = _errs611 === errors;}else {var valid197 = true;}if(valid197){if(data137.price_version !== undefined){let data161 = data137.price_version;const _errs615 = errors;if((typeof data161 !== "string") && (data161 !== null)){const err388 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/type",keyword:"type",params:{type: schema320.properties.cost.anyOf[0].properties.price_version.type},message:"must be string,null"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if(errors === _errs615){if(typeof data161 === "string"){if(!pattern77.test(data161)){const err389 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"+"\""};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}}}var valid197 = _errs615 === errors;}else {var valid197 = true;}if(valid197){if(data137.as_of !== undefined){let data162 = data137.as_of;const _errs617 = errors;const _errs618 = errors;if(errors === _errs618){if(errors === _errs618){if(typeof data162 === "string"){if(!pattern78.test(data162)){const err390 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(!(formats0.validate(data162))){const err391 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}}}else {const err392 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}}var valid197 = _errs617 === errors;}else {var valid197 = true;}if(valid197){if(data137.per_hour !== undefined){const _errs620 = errors;if(!(validate122(data137.per_hour, {instancePath:instancePath+"/cost/per_hour",parentData:data137,parentDataProperty:"per_hour",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);errors = vErrors.length;}var valid197 = _errs620 === errors;}else {var valid197 = true;}if(valid197){if(data137.reported_figure !== undefined){let data164 = data137.reported_figure;const _errs621 = errors;if(errors === _errs621){if(data164 && typeof data164 == "object" && !Array.isArray(data164)){let missing60;if((((data164.source === undefined) && (missing60 = "source")) || ((data164.observed_at === undefined) && (missing60 = "observed_at"))) || ((data164.how === undefined) && (missing60 = "how"))){const err393 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/required",keyword:"required",params:{missingProperty: missing60},message:"must have required property '"+missing60+"'"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}else {if(data164.source !== undefined){let data165 = data164.source;const _errs623 = errors;const _errs624 = errors;if(typeof data165 !== "string"){const err394 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if(!((((((data165 === "provider") || (data165 === "published")) || (data165 === "measured")) || (data165 === "recorded")) || (data165 === "calculated")) || (data165 === "unknown"))){const err395 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid210 = _errs624 === errors;if(valid210){if("provider" !== data165){const err396 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/source/const",keyword:"const",params:{allowedValue: "provider"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}var valid209 = _errs623 === errors;}else {var valid209 = true;}if(valid209){if(data164.observed_at !== undefined){let data166 = data164.observed_at;const _errs626 = errors;const _errs627 = errors;if(errors === _errs627){if(errors === _errs627){if(typeof data166 === "string"){if(!pattern78.test(data166)){const err397 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}else {if(!(formats0.validate(data166))){const err398 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}}}else {const err399 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}var valid209 = _errs626 === errors;}else {var valid209 = true;}if(valid209){if(data164.how !== undefined){let data167 = data164.how;const _errs629 = errors;if(errors === _errs629){if(typeof data167 === "string"){if(func1(data167) < 1){const err400 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}else {const err401 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}var valid209 = _errs629 === errors;}else {var valid209 = true;}}}}}else {const err402 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}var valid197 = _errs621 === errors;}else {var valid197 = true;}if(valid197){if(data137.summary !== undefined){let data168 = data137.summary;const _errs631 = errors;if(errors === _errs631){if(typeof data168 === "string"){if(func1(data168) < 1){const err403 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}}else {const err404 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}var valid197 = _errs631 === errors;}else {var valid197 = true;}}}}}}}}}}}}}else {const err405 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}}var _valid57 = _errs551 === errors;valid188 = valid188 || _valid57;if(_valid57){var props23 = true;}const _errs633 = errors;const _errs635 = errors;let valid212 = true;const _errs636 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing61;if((data137.label === undefined) && (missing61 = "label")){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}}}var _valid61 = _errs636 === errors;errors = _errs635;if(vErrors !== null){if(_errs635){vErrors.length = _errs635;}else {vErrors = null;}}let ifClause12;if(_valid61){const _errs638 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err408 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}}var _valid61 = _errs638 === errors;valid212 = _valid61;if(valid212){var props24 = {};props24.total = true;props24.label = true;}ifClause12 = "then";}else {const _errs641 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data171 = data137.total;if(!(data171 && typeof data171 == "object" && !Array.isArray(data171))){const err409 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}}var _valid61 = _errs641 === errors;valid212 = _valid61;if(valid212){if(props24 !== true){props24 = props24 || {};props24.total = true;}}ifClause12 = "else";}if(!valid212){const err410 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/if",keyword:"if",params:{failingKeyword: ifClause12},message:"must match \""+ifClause12+"\" schema"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}if(errors === _errs633){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing62;if(((data137.label === undefined) && (missing62 = "label")) || ((data137.total === undefined) && (missing62 = "total"))){const err411 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/required",keyword:"required",params:{missingProperty: missing62},message:"must have required property '"+missing62+"'"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}else {const _errs644 = errors;for(const key4 in data137){if(!(((key4 === "label") || (key4 === "total")) || (key4 === "summary"))){const err412 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;break;}}if(_errs644 === errors){if(data137.label !== undefined){let data172 = data137.label;const _errs645 = errors;if(!(((data172 === "reported") || (data172 === "calculated")) || (data172 === "unknown"))){const err413 = {instancePath:instancePath+"/cost/label",schemaPath:"#/components/schemas/CostLabel/enum",keyword:"enum",params:{allowedValues: schema119.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}var valid216 = _errs645 === errors;}else {var valid216 = true;}if(valid216){if(data137.total !== undefined){const _errs647 = errors;if(!(validate117(data137.total, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);errors = vErrors.length;}var valid216 = _errs647 === errors;}else {var valid216 = true;}if(valid216){if(data137.summary !== undefined){let data174 = data137.summary;const _errs648 = errors;const _errs649 = errors;if(errors === _errs649){if(typeof data174 === "string"){if(func1(data174) < 1){const err414 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}else {const err415 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}var valid216 = _errs648 === errors;}else {var valid216 = true;}}}}}}else {const err416 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}var _valid57 = _errs633 === errors;valid188 = valid188 || _valid57;if(_valid57){if(props23 !== true){props23 = true;}}const _errs651 = errors;if(data137 !== null){const err417 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid57 = _errs651 === errors;valid188 = valid188 || _valid57;if(!valid188){const err418 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs550;if(vErrors !== null){if(_errs550){vErrors.length = _errs550;}else {vErrors = null;}}}var valid0 = _errs549 === errors;}else {var valid0 = true;}if(valid0){if(data.charge !== undefined){let data175 = data.charge;const _errs653 = errors;const _errs654 = errors;let valid219 = false;const _errs655 = errors;if(!(validate363(data175, {instancePath:instancePath+"/charge",parentData:data,parentDataProperty:"charge",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate363.errors : vErrors.concat(validate363.errors);errors = vErrors.length;}var _valid62 = _errs655 === errors;valid219 = valid219 || _valid62;const _errs656 = errors;if(data175 !== null){const err419 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}var _valid62 = _errs656 === errors;valid219 = valid219 || _valid62;if(!valid219){const err420 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs654;if(vErrors !== null){if(_errs654){vErrors.length = _errs654;}else {vErrors = null;}}}var valid0 = _errs653 === errors;}else {var valid0 = true;}if(valid0){if(data.funded_until !== undefined){let data176 = data.funded_until;const _errs658 = errors;if((typeof data176 !== "string") && (data176 !== null)){validate386.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/type",keyword:"type",params:{type: schema320.properties.funded_until.type},message:"must be string,null"}];return false;}if(errors === _errs658){if(errors === _errs658){if(typeof data176 === "string"){if(!(formats0.validate(data176))){validate386.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs658 === errors;}else {var valid0 = true;}if(valid0){if(data.connectable !== undefined){const _errs660 = errors;if(typeof data.connectable !== "boolean"){validate386.errors = [{instancePath:instancePath+"/connectable",schemaPath:"#/properties/connectable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs660 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs662 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs662 === errors;}else {var valid0 = true;}if(valid0){if(data.route !== undefined){const _errs663 = errors;if(!(validate366(data.route, {instancePath:instancePath+"/route",parentData:data,parentDataProperty:"route",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate366.errors : vErrors.concat(validate366.errors);errors = vErrors.length;}var valid0 = _errs663 === errors;}else {var valid0 = true;}if(valid0){if(data.contract !== undefined){let data180 = data.contract;const _errs664 = errors;const _errs665 = errors;let valid220 = false;const _errs666 = errors;if(!(validate375(data180, {instancePath:instancePath+"/contract",parentData:data,parentDataProperty:"contract",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate375.errors : vErrors.concat(validate375.errors);errors = vErrors.length;}var _valid63 = _errs666 === errors;valid220 = valid220 || _valid63;if(_valid63){var props27 = {};props27.spec_version = true;props27.gates = true;props27.resources = true;props27.attested = true;}const _errs667 = errors;if(data180 !== null){const err421 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}var _valid63 = _errs667 === errors;valid220 = valid220 || _valid63;if(!valid220){const err422 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs665;if(vErrors !== null){if(_errs665){vErrors.length = _errs665;}else {vErrors = null;}}}var valid0 = _errs664 === errors;}else {var valid0 = true;}if(valid0){if(data.request !== undefined){let data181 = data.request;const _errs669 = errors;const _errs670 = errors;if(errors === _errs670){if(data181 && typeof data181 == "object" && !Array.isArray(data181)){}else {validate386.errors = [{instancePath:instancePath+"/request",schemaPath:"#/components/schemas/SandboxRequestSnapshot/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs669 === errors;}else {var valid0 = true;}if(valid0){if(data.hidden_secrets !== undefined){let data182 = data.hidden_secrets;const _errs673 = errors;if((!(data182 && typeof data182 == "object" && !Array.isArray(data182))) && (data182 !== null)){validate386.errors = [{instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/type",keyword:"type",params:{type: schema320.properties.hidden_secrets.type},message:"must be object,null"}];return false;}if(errors === _errs673){if(data182 && typeof data182 == "object" && !Array.isArray(data182)){for(const key5 in data182){const _errs675 = errors;const _errs676 = errors;if(errors === _errs676){if(typeof key5 === "string"){if(func1(key5) > 128){const err423 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters",propertyName:key5};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(func1(key5) < 1){const err424 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key5};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}else {if(!pattern5.test(key5)){const err425 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]{0,127}$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]{0,127}$"+"\"",propertyName:key5};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}}}}else {const err426 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key5};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}var valid222 = _errs675 === errors;if(!valid222){const err427 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/propertyNames",keyword:"propertyNames",params:{propertyName: key5},message:"property name must be valid"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;validate386.errors = vErrors;return false;break;}}if(valid222){for(const key6 in data182){const _errs679 = errors;if(!(validate379(data182[key6], {instancePath:instancePath+"/hidden_secrets/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data182,parentDataProperty:key6,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate379.errors : vErrors.concat(validate379.errors);errors = vErrors.length;}var valid224 = _errs679 === errors;if(!valid224){break;}}}}}var valid0 = _errs673 === errors;}else {var valid0 = true;}if(valid0){if(data.tcp_ports !== undefined){let data184 = data.tcp_ports;const _errs680 = errors;if((!(Array.isArray(data184))) && (data184 !== null)){validate386.errors = [{instancePath:instancePath+"/tcp_ports",schemaPath:"#/properties/tcp_ports/type",keyword:"type",params:{type: schema320.properties.tcp_ports.type},message:"must be array,null"}];return false;}if(errors === _errs680){if(Array.isArray(data184)){var valid225 = true;const len4 = data184.length;for(let i4=0; i4<len4; i4++){let data185 = data184[i4];const _errs682 = errors;const _errs683 = errors;if(errors === _errs683){if(data185 && typeof data185 == "object" && !Array.isArray(data185)){let missing63;if((((data185.host === undefined) && (missing63 = "host")) || ((data185.port === undefined) && (missing63 = "port"))) || ((data185.tls === undefined) && (missing63 = "tls"))){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/required",keyword:"required",params:{missingProperty: missing63},message:"must have required property '"+missing63+"'"}];return false;}else {if(data185.host !== undefined){let data186 = data185.host;const _errs685 = errors;if(errors === _errs685){if(typeof data186 === "string"){if(func1(data186) < 1){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid227 = _errs685 === errors;}else {var valid227 = true;}if(valid227){if(data185.port !== undefined){let data187 = data185.port;const _errs687 = errors;const _errs688 = errors;const _errs689 = errors;let valid229 = false;const _errs690 = errors;if(!(((typeof data187 == "number") && (!(data187 % 1) && !isNaN(data187))) && (isFinite(data187)))){const err428 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}var _valid64 = _errs690 === errors;valid229 = valid229 || _valid64;const _errs692 = errors;if(typeof data187 !== "bigint"){const err429 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}var _valid64 = _errs692 === errors;valid229 = valid229 || _valid64;if(!valid229){const err430 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs689;if(vErrors !== null){if(_errs689){vErrors.length = _errs689;}else {vErrors = null;}}}var valid228 = _errs688 === errors;if(valid228){if(typeof data187 === "bigint"){if(data187 < 1){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data187 > 65535){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs687){if((typeof data187 == "number") && (isFinite(data187))){if(data187 > 65535 || isNaN(data187)){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data187 < 1 || isNaN(data187)){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid227 = _errs687 === errors;}else {var valid227 = true;}if(valid227){if(data185.tls !== undefined){let data188 = data185.tls;const _errs693 = errors;if(typeof data188 !== "string"){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data188 === "none") || (data188 === "terminated"))){validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/enum",keyword:"enum",params:{allowedValues: schema452.properties.tls.enum},message:"must be equal to one of the allowed values"}];return false;}var valid227 = _errs693 === errors;}else {var valid227 = true;}}}}}else {validate386.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid225 = _errs682 === errors;if(!valid225){break;}}}}var valid0 = _errs680 === errors;}else {var valid0 = true;}if(valid0){if(data.recorder !== undefined){let data189 = data.recorder;const _errs695 = errors;if((!(data189 && typeof data189 == "object" && !Array.isArray(data189))) && (data189 !== null)){validate386.errors = [{instancePath:instancePath+"/recorder",schemaPath:"#/properties/recorder/type",keyword:"type",params:{type: schema320.properties.recorder.type},message:"must be object,null"}];return false;}var valid0 = _errs695 === errors;}else {var valid0 = true;}if(valid0){if(data.limits !== undefined){const _errs697 = errors;if(!(validate381(data.limits, {instancePath:instancePath+"/limits",parentData:data,parentDataProperty:"limits",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate381.errors : vErrors.concat(validate381.errors);errors = vErrors.length;}var valid0 = _errs697 === errors;}else {var valid0 = true;}if(valid0){if(data.volume !== undefined){let data191 = data.volume;const _errs698 = errors;const _errs699 = errors;let valid230 = false;const _errs700 = errors;if(!(validate383(data191, {instancePath:instancePath+"/volume",parentData:data,parentDataProperty:"volume",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate383.errors : vErrors.concat(validate383.errors);errors = vErrors.length;}var _valid65 = _errs700 === errors;valid230 = valid230 || _valid65;if(_valid65){var props28 = {};props28.id = true;props28.path = true;props28.access = true;props28.restored_checkpoint = true;props28.restore_duration_ms = true;}const _errs701 = errors;if(data191 !== null){const err431 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}var _valid65 = _errs701 === errors;valid230 = valid230 || _valid65;if(!valid230){const err432 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;validate386.errors = vErrors;return false;}else {errors = _errs699;if(vErrors !== null){if(_errs699){vErrors.length = _errs699;}else {vErrors = null;}}}var valid0 = _errs698 === errors;}else {var valid0 = true;}if(valid0){if(data.operation_id !== undefined){let data192 = data.operation_id;const _errs703 = errors;if((typeof data192 !== "string") && (data192 !== null)){validate386.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/type",keyword:"type",params:{type: schema320.properties.operation_id.type},message:"must be string,null"}];return false;}if(errors === _errs703){if(typeof data192 === "string"){if(func1(data192) < 1){validate386.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs703 === errors;}else {var valid0 = true;}if(valid0){if(data.account !== undefined){let data193 = data.account;const _errs705 = errors;if(errors === _errs705){if(data193 && typeof data193 == "object" && !Array.isArray(data193)){let missing64;if(((data193.healthy === undefined) && (missing64 = "healthy")) || ((data193.detail === undefined) && (missing64 = "detail"))){validate386.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/required",keyword:"required",params:{missingProperty: missing64},message:"must have required property '"+missing64+"'"}];return false;}else {if(data193.healthy !== undefined){const _errs707 = errors;if(typeof data193.healthy !== "boolean"){validate386.errors = [{instancePath:instancePath+"/account/healthy",schemaPath:"#/properties/account/properties/healthy/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid231 = _errs707 === errors;}else {var valid231 = true;}if(valid231){if(data193.detail !== undefined){let data195 = data193.detail;const _errs709 = errors;if((typeof data195 !== "string") && (data195 !== null)){validate386.errors = [{instancePath:instancePath+"/account/detail",schemaPath:"#/properties/account/properties/detail/type",keyword:"type",params:{type: schema320.properties.account.properties.detail.type},message:"must be string,null"}];return false;}var valid231 = _errs709 === errors;}else {var valid231 = true;}}}}else {validate386.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs705 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate386.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate386.errors = vErrors;return errors === 0;}validate386.evaluated = {"props":{"id":true,"state":true,"state_reason":true,"failure":true,"native_state":true,"observed_at":true,"state_recorded_at":true,"created_at":true,"expires_at":true,"ready_at":true,"ended_at":true,"created_at_source":true,"created_at_how":true,"created_at_step":true,"ready_at_source":true,"ready_at_how":true,"ready_at_step":true,"ended_at_source":true,"ended_at_how":true,"ended_at_step":true,"cost_source":true,"cost_how":true,"cost_step":true,"origin":true,"labels":true,"name":true,"resources":true,"image":true,"image_setup":true,"usage":true,"cost":true,"charge":true,"funded_until":true,"connectable":true,"lifetime":true,"route":true,"contract":true,"request":true,"hidden_secrets":true,"tcp_ports":true,"recorder":true,"limits":true,"volume":true,"operation_id":true,"account":true},"dynamicProps":false,"dynamicItems":false};const schema524 = {"type":"object","required":["live","ended","by_state"],"description":"Counts across all pages matching the other query filters. live and ended ignore\nlifecycle; by_state also ignores the state filter. Values are workspace scoped.\n","properties":{"live":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"ended":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"by_state":{"type":"object","additionalProperties":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}}};function validate410(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate410.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.live === undefined) && (missing0 = "live")) || ((data.ended === undefined) && (missing0 = "ended"))) || ((data.by_state === undefined) && (missing0 = "by_state"))){validate410.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.live !== undefined){let data0 = data.live;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/live",schemaPath:"#/properties/live/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/live",schemaPath:"#/properties/live/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/live",schemaPath:"#/properties/live/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate410.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate410.errors = [{instancePath:instancePath+"/live",schemaPath:"#/properties/live/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate410.errors = [{instancePath:instancePath+"/live",schemaPath:"#/properties/live/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.ended !== undefined){let data1 = data.ended;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/ended",schemaPath:"#/properties/ended/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/ended",schemaPath:"#/properties/ended/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/ended",schemaPath:"#/properties/ended/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate410.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 0){validate410.errors = [{instancePath:instancePath+"/ended",schemaPath:"#/properties/ended/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate410.errors = [{instancePath:instancePath+"/ended",schemaPath:"#/properties/ended/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.by_state !== undefined){let data2 = data.by_state;const _errs13 = errors;if(errors === _errs13){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){for(const key0 in data2){let data3 = data2[key0];const _errs16 = errors;const _errs17 = errors;const _errs18 = errors;let valid7 = false;const _errs19 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err6 = {instancePath:instancePath+"/by_state/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/by_state/additionalProperties/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs19 === errors;valid7 = valid7 || _valid2;const _errs21 = errors;if(typeof data3 !== "bigint"){const err7 = {instancePath:instancePath+"/by_state/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/by_state/additionalProperties/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs21 === errors;valid7 = valid7 || _valid2;if(!valid7){const err8 = {instancePath:instancePath+"/by_state/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/by_state/additionalProperties/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate410.errors = vErrors;return false;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}var valid6 = _errs17 === errors;if(valid6){if(typeof data3 === "bigint"){if(data3 < 0){validate410.errors = [{instancePath:instancePath+"/by_state/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/by_state/additionalProperties/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs16){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate410.errors = [{instancePath:instancePath+"/by_state/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/by_state/additionalProperties/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid5 = _errs16 === errors;if(!valid5){break;}}}else {validate410.errors = [{instancePath:instancePath+"/by_state",schemaPath:"#/properties/by_state/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}else {validate410.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate410.errors = vErrors;return errors === 0;}validate410.evaluated = {"props":{"live":true,"ended":true,"by_state":true},"dynamicProps":false,"dynamicItems":false};function validate385(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate385.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.data === undefined) && (missing0 = "data")) || ((data.next_cursor === undefined) && (missing0 = "next_cursor"))) || ((data.counts === undefined) && (missing0 = "counts"))){validate385.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.data !== undefined){let data0 = data.data;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs3 = errors;if(!(validate386(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate386.errors : vErrors.concat(validate386.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate385.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.next_cursor !== undefined){let data2 = data.next_cursor;const _errs4 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate385.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema456.properties.next_cursor.type},message:"must be string,null"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.counts !== undefined){const _errs6 = errors;if(!(validate410(data.counts, {instancePath:instancePath+"/counts",parentData:data,parentDataProperty:"counts",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate410.errors : vErrors.concat(validate410.errors);errors = vErrors.length;}var valid0 = _errs6 === errors;}else {var valid0 = true;}}}}}else {validate385.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate385.errors = vErrors;return errors === 0;}validate385.evaluated = {"props":{"data":true,"next_cursor":true,"counts":true},"dynamicProps":false,"dynamicItems":false};exports.validate7 = validate412;const schema525 = {"type":"object","required":["spec_version","request","eligible","excluded","nearest","closest"],"description":"What creating with the same body would do, without provisioning, reserving or\nrecording anything. An empty eligible list is a 200 for ordinary capability exclusions.\nWith a payer, typed funding refusals appear as exclusions when another funding candidate\nremains eligible; if every funding candidate is refused, the request returns the selected\ntyped refusal as an error. A workspace with no provider key and no credits gets a 409\nno_eligible_route naming both remedies; a workspace with no candidate at all also gets a 409\nno_eligible_route. Matched classes omitted by the one-class-per-route selection appear in\nexcluded.\n","properties":{"spec_version":{"type":"string","pattern":"^(boxspec|sandbox-provider-spec)/[0-9]+\\.[0-9]+(-draft(\\.[0-9]+)?)?$"},"request":{"allOf":[{"$ref":"#/components/schemas/CreateSandbox"}],"description":"The body as matched, with profiles expanded and defaults filled in."},"eligible":{"type":"array","description":"The eligible candidates, in the order creation would try them.","items":{"$ref":"#/components/schemas/EligibleRoute"}},"excluded":{"type":"array","items":{"$ref":"#/components/schemas/ExcludedRoute"}},"nearest":{"type":"array","description":"The smallest changes that would make a route eligible, fewest changes first, then\nmost routes gained. A change maps a dotted path in the request to its new value,\nnull meaning remove it.\n","items":{"type":"object","required":["change","then_eligible"],"properties":{"change":{"type":"object","additionalProperties":true},"then_eligible":{"type":"array","items":{"type":"string"}}}}},"closest":{"description":"The excluded candidate that failed the fewest checks, or null when none was excluded.","anyOf":[{"$ref":"#/components/schemas/ExcludedRoute"},{"type":"null"}]}}};const schema526 = {"type":"object","description":"A creation body: gates by name in requirements, a lifetime budget in lifetime_seconds,\nand a volume checkpoint to restore. Every field is optional; {} is a baseline sandbox in\nthe standard image that may run for 300 seconds, or for as long as the credit balance\ncovers it on a credit-funded route that can extend a lifetime. The words of the retired 0.2.0\nrequest (timeout_seconds, egress, provider, a dotted requirements key) are refused\nwith invalid_request, whose fix names the word to send instead. Creation controls are\nprovider-independent: use resources, lifetime_seconds, at_end, image, env, labels,\nrequirements and routing preferences. Provider-native creation options are not accepted.\n","properties":{"lifetime_seconds":{"minimum":60,"description":"The sandbox's lifetime in seconds, starting when BoxRouter begins creation on the\nselected route. Creation time counts, so less time may remain when the sandbox is\nready. The minimum is 60 seconds. The requested value is matched against the route's\nmax_lifetime_seconds, and a credit-funded sandbox reserves credits for all of it.\n\nLeave it out for a credit-funded sandbox on a route that can extend a lifetime\n(`extendable_lifetime`) and the sandbox runs for as long as the workspace's credit\nbalance covers it: credits are reserved one hour at a time and renewed before each\nhour ends. `funded_until` on the sandbox says when the current reservation ends; the\nsandbox ends then if the balance could not cover another hour. Left out on any other\ncreate (a route that cannot extend a lifetime, or a sandbox paid with the workspace's\nown provider account), it is 300 seconds.\n","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":60}},"at_end":{"type":"string","enum":["destroy","pause"],"default":"destroy","description":"What happens when the lifetime is used up. pause needs pause_resume in requirements."},"requirements":{"$ref":"#/components/schemas/SandboxProviderSpecRequirements","x-boxrouter-sdk-list-shorthand":{}},"resources":{"$ref":"#/components/schemas/SandboxProviderSpecResources"},"preferences":{"$ref":"#/components/schemas/ProviderPreferences"},"privacy":{"$ref":"#/components/schemas/PrivacyPolicy"},"route":{"$ref":"#/components/schemas/CreationRouteFilter"},"volume":{"$ref":"#/components/schemas/AttachVolume"},"image":{"$ref":"#/components/schemas/SandboxImageSelection","description":"Omitted selects BoxRouter's standard image. \"provider_default\" opts out and runs\nthe provider's own default. Any other string is an OCI image reference. Use a\none-key dockerfile or provider_artifact object for those artifact sources; the\nlatter requires exactly one value in preferences.only. Use {private_oci} for an image whose registry\nneeds a login, together with registry_credentials; it runs only on routes that use\nyour own provider keys. Every selected image must contain bash and\nsha256sum.\n"},"registry_credentials":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string","minLength":1,"pattern":"^[^\\u0000]*$"},"password":{"type":"string","minLength":1,"writeOnly":true,"pattern":"^[^\\u0000]*$"}},"description":"Request-only login for the registry named by a private_oci image; required with it and\nrefused without it. Both strings are non-empty, at most 64 KiB UTF-8 bytes together\n(enforced outside JSON Schema). It is passed to the provider to set up a copy of the\nimage and is never stored, logged, traced, returned or included in idempotency records.\n"},"env":{"type":"object","maxProperties":256,"additionalProperties":{"type":"string"},"propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"description":"Creation-time environment, limited by the server to 64 KiB total UTF-8 bytes. This byte\nlimit is enforced outside JSON Schema validation. Never returned, logged or stored.\n"},"secret_refs":{"$ref":"#/components/schemas/AdditionalSecretReferences","description":"Explicit saved workspace secret references by destination environment name."},"secret_values":{"type":"object","minProperties":1,"maxProperties":256,"propertyNames":{"$ref":"#/components/schemas/SecretName"},"additionalProperties":{"type":"string","writeOnly":true,"maxLength":16384,"pattern":"^[^\\u0000]*$"},"description":"Request-only values delivered through the hidden_secrets gate. Values are sent once\nduring sandbox creation. The server enforces a 16 KiB per-value and 64 KiB total\nUTF-8 byte limit outside JSON Schema validation. Values are never stored, logged,\ntraced, returned, or included in idempotency records. Use the matching placeholder\nfrom the response in configuration.\n"},"labels":{"type":"object","maxProperties":64,"propertyNames":{"maxLength":63},"additionalProperties":{"type":"string","maxLength":255},"description":"BoxRouter labels, returned on the sandbox; not implicitly provider tags."}},"allOf":[{"if":{"required":["secret_values"]},"then":{"required":["requirements"],"properties":{"requirements":{"required":["hidden_secrets"]}}}},{"if":{"required":["volume","image"]},"then":{"properties":{"image":{"anyOf":[{"type":"string","allOf":[{"not":{"const":"provider_default"}},{"not":{"pattern":"^prepared:sha256:"}}]},{"$ref":"#/components/schemas/SandboxImageSelectionProviderArtifact"}]}}}},{"if":{"required":["image"],"properties":{"image":{"type":"object","required":["provider_artifact"]}}},"then":{"required":["preferences"],"properties":{"preferences":{"required":["only"],"properties":{"only":{"maxItems":1}}}}}}]};const schema527 = {"type":"object","required":["provider_artifact"],"properties":{"provider_artifact":{"type":"string","minLength":1,"description":"A provider-native artifact id usable on the selected provider account."}}};const schema540 = {"type":"object","description":"Optional privacy requirements for a sandbox request. Omitted values inherit the\nworkspace and customer-key floors; omission never resets them. Supplied values may\nonly tighten those floors. `data_collection: deny` requires both no model training\nand zero provider data retention; a route that retains logs does not satisfy deny,\neven when `zdr` is false. `zdr: true` independently requires zero retention and is\nnot a training-policy predicate. Neither setting consents to BoxRouter capture or\npromises that an eligible provider or end-to-end zero-retention route exists.\n`boxrouter_content_retention` separately restricts BoxRouter sandbox-content\nhandling. Transient wins over ordinary across workspace, key, request and immutable\norigin floors; an ordinary request cannot relax an inherited transient floor.\nUnsupported transient operations and unqualified routes are refused. Omission\npreserves inheritance and the legacy combined meaning of request `zdr: true`;\nexplicitly choosing ordinary separates BoxRouter retention from provider ZDR.\n","properties":{"data_collection":{"type":"string","enum":["allow","deny"],"description":"Require the route to allow or deny provider data collection."},"zdr":{"type":"boolean","description":"Require zero provider data retention when true."},"boxrouter_content_retention":{"type":"string","enum":["ordinary","transient"],"description":"Ordinary allows normal bounded service retention; transient requires the\nsupported non-persistent sandbox-content profile. This is not provider\nqualification, permission to train, or consent to capture additional content.\n"}}};const schema541 = {"type":"object","description":"The remaining route filters. Each singular value is a hard pin: `id` and `account_id` name\nexactly one route or connected account and `supply` one funding authority. Fallback never\nmoves a pin, a volume remains attached to its selected route, and these\nfilters only narrow workspace restrictions.\n","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"account_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$","description":"Connected account ID. A provider disabled on this deployment returns 409 provider_not_enabled before routing."},"supply":{"type":"string","enum":["byok","managed"]}}};const pattern282 = new RegExp("^prepared:sha256:", "u");const pattern6 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$", "u");const schema528 = {"type":"object","properties":{"custom_images":{"$ref":"#/components/schemas/SandboxProviderSpecCustomImagesRequirement"},"desktop":{"$ref":"#/components/schemas/SandboxProviderSpecDesktopRequirement"},"hidden_secrets":{"$ref":"#/components/schemas/SandboxProviderSpecHiddenSecretsRequirement"},"idle_shutdown":{"$ref":"#/components/schemas/SandboxProviderSpecIdleShutdownRequirement"},"network_lockdown":{"$ref":"#/components/schemas/SandboxProviderSpecNetworkLockdownRequirement"},"pause_resume":{"$ref":"#/components/schemas/SandboxProviderSpecPauseResumeRequirement"},"previews":{"$ref":"#/components/schemas/SandboxProviderSpecPreviewsRequirement"},"processes":{"$ref":"#/components/schemas/SandboxProviderSpecProcessesRequirement"},"tcp_ports":{"$ref":"#/components/schemas/SandboxProviderSpecTcpPortsRequirement"},"terminal":{"$ref":"#/components/schemas/SandboxProviderSpecTerminalRequirement"}},"if":{"required":["previews"],"properties":{"previews":{"required":["survives_pause"]}}},"then":{"anyOf":[{"required":["pause_resume"]},{"required":["idle_shutdown"]}]},"x-boxrouter-sps-profile":{"version":1,"requirements":{"custom_images":[],"desktop":[],"hidden_secrets":["inject_into","intercepts","transparent"],"idle_shutdown":["custom_idle_time","idle_seconds"],"network_lockdown":["allow","deny","policy"],"pause_resume":["keeps"],"previews":["access","link_lifetime_seconds","loopback","ports","revocable","survives_pause","websocket"],"processes":["input"],"tcp_ports":["ports","tls"],"terminal":[]},"resources":["arch","cpu_min","disk_min_mib","extendable_lifetime","kernel","memory_min_mib","paused_retention_seconds","process_seconds","region","run_seconds"]},"description":"The gates this sandbox may use, each holding its knobs and its settings side by side.\nA sandbox may use only the baseline and the gates named here: a call to any other gate\nis refused with not_named, on every adapter. Every gate the spec names is accepted\nhere, including the ones no adapter implements yet: whether one can be granted is\nmatching's answer, so a gate nothing declares, or no loaded report proves, leaves the\nrequest without a route rather than making it invalid.\n"};const schema529 = {"type":"object","properties":{},"description":"Bring your own environment, which must contain bash and sha256sum.\n"};const schema530 = {"type":"object","properties":{}};const schema535 = {"type":"object","properties":{"keeps":{"anyOf":[{"enum":["files_only","files_and_memory"]},{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["files_only","files_and_memory"]}}],"description":"What a pause keeps. A list means any of these values is acceptable and the response\nsays which were granted; \"any\" is not accepted here, because keeps need not be named.\n"}},"description":"Pause a sandbox and resume it later. {} asks for the gate without naming a knob."};const schema537 = {"type":"object","properties":{"input":{"type":"boolean"}}};const schema539 = {"type":"object","properties":{}};const schema531 = {"type":"object","required":["inject_into"],"properties":{"transparent":{"type":"boolean"},"intercepts":{"anyOf":[{"enum":["injected_hosts","all_https"]},{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["injected_hosts","all_https"]}}]},"inject_into":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/SandboxProviderSpecHostname"},"description":"Hostnames to which the credential is sent."}},"description":"Credentials the sandbox never sees: the adapter adds them to outgoing requests from\noutside it. The values travel like env and are never stored, logged or returned; the\nresponse shows their names only.\n"};function validate415(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate415.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.inject_into === undefined) && (missing0 = "inject_into")){validate415.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.transparent !== undefined){const _errs1 = errors;if(typeof data.transparent !== "boolean"){validate415.errors = [{instancePath:instancePath+"/transparent",schemaPath:"#/properties/transparent/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.intercepts !== undefined){let data1 = data.intercepts;const _errs3 = errors;const _errs4 = errors;let valid1 = false;const _errs5 = errors;if(!((data1 === "injected_hosts") || (data1 === "all_https"))){const err0 = {instancePath:instancePath+"/intercepts",schemaPath:"#/properties/intercepts/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema531.properties.intercepts.anyOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs5 === errors;valid1 = valid1 || _valid0;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data1)){if(data1.length < 1){const err1 = {instancePath:instancePath+"/intercepts",schemaPath:"#/properties/intercepts/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs8 = errors;if(!((data2 === "injected_hosts") || (data2 === "all_https"))){const err2 = {instancePath:instancePath+"/intercepts/" + i0,schemaPath:"#/properties/intercepts/anyOf/1/items/enum",keyword:"enum",params:{allowedValues: schema531.properties.intercepts.anyOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs8 === errors;if(!valid2){break;}}if(valid2){let i1 = data1.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data1[i1], data1[j0])){const err3 = {instancePath:instancePath+"/intercepts",schemaPath:"#/properties/intercepts/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;break outer0;}}}}}}}else {const err4 = {instancePath:instancePath+"/intercepts",schemaPath:"#/properties/intercepts/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs6 === errors;valid1 = valid1 || _valid0;if(!valid1){const err5 = {instancePath:instancePath+"/intercepts",schemaPath:"#/properties/intercepts/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate415.errors = vErrors;return false;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.inject_into !== undefined){let data3 = data.inject_into;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data3)){if(data3.length < 1){validate415.errors = [{instancePath:instancePath+"/inject_into",schemaPath:"#/properties/inject_into/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid4 = true;const len1 = data3.length;for(let i2=0; i2<len1; i2++){let data4 = data3[i2];const _errs11 = errors;if(typeof data4 !== "string"){validate415.errors = [{instancePath:instancePath+"/inject_into/" + i2,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}const _errs14 = errors;let valid6 = false;const _errs15 = errors;if(typeof data4 === "string"){if(!pattern27.test(data4)){const err6 = {instancePath:instancePath+"/inject_into/" + i2,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},message:"must match pattern \""+"^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid1 = _errs15 === errors;valid6 = valid6 || _valid1;const _errs16 = errors;if(typeof data4 === "string"){if(!pattern28.test(data4)){const err7 = {instancePath:instancePath+"/inject_into/" + i2,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},message:"must match pattern \""+"^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var _valid1 = _errs16 === errors;valid6 = valid6 || _valid1;if(!valid6){const err8 = {instancePath:instancePath+"/inject_into/" + i2,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate415.errors = vErrors;return false;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var valid4 = _errs11 === errors;if(!valid4){break;}}if(valid4){let i3 = data3.length;let j1;if(i3 > 1){outer1:for(;i3--;){for(j1 = i3; j1--;){if(func0(data3[i3], data3[j1])){validate415.errors = [{instancePath:instancePath+"/inject_into",schemaPath:"#/properties/inject_into/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break outer1;}}}}}}}else {validate415.errors = [{instancePath:instancePath+"/inject_into",schemaPath:"#/properties/inject_into/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}else {validate415.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate415.errors = vErrors;return errors === 0;}validate415.evaluated = {"props":{"transparent":true,"intercepts":true,"inject_into":true},"dynamicProps":false,"dynamicItems":false};const schema533 = {"type":"object","properties":{"custom_idle_time":{"type":"boolean"},"idle_seconds":{"minimum":1,"description":"How long the sandbox must be inactive before idle shutdown.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}},"allOf":[{"if":{"required":["idle_seconds"]},"then":{"properties":{"custom_idle_time":{"const":true}}}},{"if":{"required":["idle_seconds"]},"then":{"required":["custom_idle_time"],"properties":{"custom_idle_time":{"const":true}}}}],"description":"End or pause a sandbox nobody is using. No knob must be named.\n"};function validate417(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate417.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.idle_seconds === undefined) && (missing0 = "idle_seconds")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.custom_idle_time !== undefined){if(true !== data.custom_idle_time){validate417.errors = [{instancePath:instancePath+"/custom_idle_time",schemaPath:"#/allOf/0/then/properties/custom_idle_time/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"}];return false;}}}var _valid0 = _errs4 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.custom_idle_time = true;}}if(!valid1){const err1 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate417.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs6 = errors;const _errs7 = errors;let valid3 = true;const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.idle_seconds === undefined) && (missing1 = "idle_seconds")){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid1 = _errs8 === errors;errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}if(_valid1){const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.custom_idle_time === undefined) && (missing2 = "custom_idle_time")){validate417.errors = [{instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data.custom_idle_time !== undefined){if(true !== data.custom_idle_time){validate417.errors = [{instancePath:instancePath+"/custom_idle_time",schemaPath:"#/allOf/1/then/properties/custom_idle_time/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"}];return false;}}}}var _valid1 = _errs9 === errors;valid3 = _valid1;if(valid3){var props1 = {};props1.custom_idle_time = true;}}if(!valid3){const err3 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;validate417.errors = vErrors;return false;}var valid0 = _errs6 === errors;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(props0 !== true){props0 = props0 || {};props0.custom_idle_time = true;props0.idle_seconds = true;}if(data.custom_idle_time !== undefined){const _errs11 = errors;if(typeof data.custom_idle_time !== "boolean"){validate417.errors = [{instancePath:instancePath+"/custom_idle_time",schemaPath:"#/properties/custom_idle_time/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs11 === errors;}else {var valid5 = true;}if(valid5){if(data.idle_seconds !== undefined){let data3 = data.idle_seconds;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid7 = false;const _errs16 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err4 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid2 = _errs16 === errors;valid7 = valid7 || _valid2;const _errs18 = errors;if(typeof data3 !== "bigint"){const err5 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs18 === errors;valid7 = valid7 || _valid2;if(!valid7){const err6 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate417.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid6 = _errs14 === errors;if(valid6){if(typeof data3 === "bigint"){if(data3 < 1){validate417.errors = [{instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate417.errors = [{instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid5 = _errs13 === errors;}else {var valid5 = true;}}}else {validate417.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate417.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate417.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema534 = {"type":"object","required":["policy"],"properties":{"policy":{"enum":["deny_all","allowlist","denylist","open"]},"allow":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","minLength":1},"description":"Hosts or HTTP rules permitted by the selected network policy. Required for\nallowlist and forbidden with deny_all, denylist, or open.\n"},"deny":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","minLength":1,"pattern":"^[^*]*$"}}},"allOf":[{"if":{"properties":{"policy":{"const":"deny_all"}},"required":["policy"]},"then":{"not":{"anyOf":[{"required":["allow"]},{"required":["deny"]}]}}},{"if":{"properties":{"policy":{"const":"allowlist"}},"required":["policy"]},"then":{"required":["allow"],"not":{"required":["deny"]}}},{"if":{"properties":{"policy":{"const":"denylist"}},"required":["policy"]},"then":{"required":["deny"],"not":{"required":["allow"]}}}],"description":"Limits what the sandbox may connect to, enforced by the provider from outside it.\nPreviews still reach the sandbox. policy must be named and is exactly one value:\nan allowlist is not what someone assuming deny-all wants.\n"};const pattern285 = new RegExp("^[^*]*$", "u");function validate419(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate419.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.policy === undefined) && (missing0 = "policy")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.policy !== undefined){if("deny_all" !== data.policy){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;const _errs8 = errors;let valid4 = false;const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.allow === undefined) && (missing1 = "allow")){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid1 = _errs9 === errors;valid4 = valid4 || _valid1;const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.deny === undefined) && (missing2 = "deny")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;if(!valid4){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid3 = _errs7 === errors;if(valid3){validate419.errors = [{instancePath,schemaPath:"#/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;}if(!valid1){const err5 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate419.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs11 = errors;const _errs12 = errors;let valid5 = true;const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.policy === undefined) && (missing3 = "policy")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.policy !== undefined){if("allowlist" !== data.policy){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}var _valid2 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid2){const _errs15 = errors;const _errs16 = errors;const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((data.deny === undefined) && (missing4 = "deny")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid7 = _errs17 === errors;if(valid7){validate419.errors = [{instancePath,schemaPath:"#/allOf/1/then/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}if(errors === _errs15){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((data.allow === undefined) && (missing5 = "allow")){validate419.errors = [{instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"}];return false;}}}var _valid2 = _errs15 === errors;valid5 = _valid2;}if(!valid5){const err9 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate419.errors = vErrors;return false;}var valid0 = _errs11 === errors;if(valid0){const _errs18 = errors;const _errs19 = errors;let valid8 = true;const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((data.policy === undefined) && (missing6 = "policy")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(data.policy !== undefined){if("denylist" !== data.policy){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}var _valid3 = _errs20 === errors;errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}if(_valid3){const _errs22 = errors;const _errs23 = errors;const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if((data.allow === undefined) && (missing7 = "allow")){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var valid10 = _errs24 === errors;if(valid10){validate419.errors = [{instancePath,schemaPath:"#/allOf/2/then/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}if(errors === _errs22){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((data.deny === undefined) && (missing8 = "deny")){validate419.errors = [{instancePath,schemaPath:"#/allOf/2/then/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"}];return false;}}}var _valid3 = _errs22 === errors;valid8 = _valid3;}if(!valid8){const err13 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate419.errors = vErrors;return false;}var valid0 = _errs18 === errors;}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if((data.policy === undefined) && (missing9 = "policy")){validate419.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"}];return false;}else {if(data.policy !== undefined){let data3 = data.policy;const _errs25 = errors;if(!((((data3 === "deny_all") || (data3 === "allowlist")) || (data3 === "denylist")) || (data3 === "open"))){validate419.errors = [{instancePath:instancePath+"/policy",schemaPath:"#/properties/policy/enum",keyword:"enum",params:{allowedValues: schema534.properties.policy.enum},message:"must be equal to one of the allowed values"}];return false;}var valid11 = _errs25 === errors;}else {var valid11 = true;}if(valid11){if(data.allow !== undefined){let data4 = data.allow;const _errs26 = errors;if(errors === _errs26){if(Array.isArray(data4)){if(data4.length < 1){validate419.errors = [{instancePath:instancePath+"/allow",schemaPath:"#/properties/allow/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid12 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs28 = errors;if(errors === _errs28){if(typeof data5 === "string"){if(func1(data5) < 1){validate419.errors = [{instancePath:instancePath+"/allow/" + i0,schemaPath:"#/properties/allow/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate419.errors = [{instancePath:instancePath+"/allow/" + i0,schemaPath:"#/properties/allow/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid12 = _errs28 === errors;if(!valid12){break;}}if(valid12){let i1 = data4.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data4[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate419.errors = [{instancePath:instancePath+"/allow",schemaPath:"#/properties/allow/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}}else {validate419.errors = [{instancePath:instancePath+"/allow",schemaPath:"#/properties/allow/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid11 = _errs26 === errors;}else {var valid11 = true;}if(valid11){if(data.deny !== undefined){let data6 = data.deny;const _errs30 = errors;if(errors === _errs30){if(Array.isArray(data6)){if(data6.length < 1){validate419.errors = [{instancePath:instancePath+"/deny",schemaPath:"#/properties/deny/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid14 = true;const len1 = data6.length;for(let i2=0; i2<len1; i2++){let data7 = data6[i2];const _errs32 = errors;if(errors === _errs32){if(typeof data7 === "string"){if(func1(data7) < 1){validate419.errors = [{instancePath:instancePath+"/deny/" + i2,schemaPath:"#/properties/deny/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern285.test(data7)){validate419.errors = [{instancePath:instancePath+"/deny/" + i2,schemaPath:"#/properties/deny/items/pattern",keyword:"pattern",params:{pattern: "^[^*]*$"},message:"must match pattern \""+"^[^*]*$"+"\""}];return false;}}}else {validate419.errors = [{instancePath:instancePath+"/deny/" + i2,schemaPath:"#/properties/deny/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid14 = _errs32 === errors;if(!valid14){break;}}if(valid14){let i3 = data6.length;let j1;if(i3 > 1){const indices1 = {};for(;i3--;){let item1 = data6[i3];if(typeof item1 !== "string"){continue;}if(typeof indices1[item1] == "number"){j1 = indices1[item1];validate419.errors = [{instancePath:instancePath+"/deny",schemaPath:"#/properties/deny/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break;}indices1[item1] = i3;}}}}}else {validate419.errors = [{instancePath:instancePath+"/deny",schemaPath:"#/properties/deny/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid11 = _errs30 === errors;}else {var valid11 = true;}}}}}else {validate419.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate419.errors = vErrors;return errors === 0;}validate419.evaluated = {"props":{"policy":true,"allow":true,"deny":true},"dynamicProps":false,"dynamicItems":false};const schema536 = {"type":"object","required":["access","ports"],"properties":{"access":{"anyOf":[{"enum":["any","public","private"]},{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["public","private"]}}],"description":"Which kinds of link this sandbox may open. \"any\" accepts whatever the route offers,\nand then the open call may not pick a kind.\n"},"revocable":{"type":"boolean"},"link_lifetime_seconds":{"exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"websocket":{"type":"boolean"},"loopback":{"type":"boolean"},"survives_pause":{"type":"boolean"},"ports":{"type":"array","minItems":1,"uniqueItems":true,"items":{"minimum":1,"maximum":65535,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":65535}},"description":"The ports previews may be opened on; more than max_ports excludes a route."}},"description":"A URL for a port inside the sandbox. access must be named, because some providers only\noffer public links; ports is the setting handed to the adapter and can exclude one.\n"};function validate421(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate421.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.access === undefined) && (missing0 = "access")) || ((data.ports === undefined) && (missing0 = "ports"))){validate421.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.access !== undefined){let data0 = data.access;const _errs1 = errors;const _errs2 = errors;let valid1 = false;const _errs3 = errors;if(!(((data0 === "any") || (data0 === "public")) || (data0 === "private"))){const err0 = {instancePath:instancePath+"/access",schemaPath:"#/properties/access/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema536.properties.access.anyOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs3 === errors;valid1 = valid1 || _valid0;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data0)){if(data0.length < 1){const err1 = {instancePath:instancePath+"/access",schemaPath:"#/properties/access/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {var valid2 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs6 = errors;if(!((data1 === "public") || (data1 === "private"))){const err2 = {instancePath:instancePath+"/access/" + i0,schemaPath:"#/properties/access/anyOf/1/items/enum",keyword:"enum",params:{allowedValues: schema536.properties.access.anyOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs6 === errors;if(!valid2){break;}}if(valid2){let i1 = data0.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data0[i1], data0[j0])){const err3 = {instancePath:instancePath+"/access",schemaPath:"#/properties/access/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;break outer0;}}}}}}}else {const err4 = {instancePath:instancePath+"/access",schemaPath:"#/properties/access/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs4 === errors;valid1 = valid1 || _valid0;if(!valid1){const err5 = {instancePath:instancePath+"/access",schemaPath:"#/properties/access/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate421.errors = vErrors;return false;}else {errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.revocable !== undefined){const _errs7 = errors;if(typeof data.revocable !== "boolean"){validate421.errors = [{instancePath:instancePath+"/revocable",schemaPath:"#/properties/revocable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.link_lifetime_seconds !== undefined){let data3 = data.link_lifetime_seconds;const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid5 = false;const _errs12 = errors;if(!((typeof data3 == "number") && (isFinite(data3)))){const err6 = {instancePath:instancePath+"/link_lifetime_seconds",schemaPath:"#/properties/link_lifetime_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid1 = _errs12 === errors;valid5 = valid5 || _valid1;const _errs14 = errors;if(typeof data3 !== "bigint"){const err7 = {instancePath:instancePath+"/link_lifetime_seconds",schemaPath:"#/properties/link_lifetime_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid1 = _errs14 === errors;valid5 = valid5 || _valid1;if(!valid5){const err8 = {instancePath:instancePath+"/link_lifetime_seconds",schemaPath:"#/properties/link_lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate421.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid4 = _errs10 === errors;if(valid4){if(typeof data3 === "bigint"){if(data3 <= 0){validate421.errors = [{instancePath:instancePath+"/link_lifetime_seconds",schemaPath:"#/properties/link_lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs9){if((typeof data3 == "number") && (isFinite(data3))){if(data3 <= 0 || isNaN(data3)){validate421.errors = [{instancePath:instancePath+"/link_lifetime_seconds",schemaPath:"#/properties/link_lifetime_seconds/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.websocket !== undefined){const _errs15 = errors;if(typeof data.websocket !== "boolean"){validate421.errors = [{instancePath:instancePath+"/websocket",schemaPath:"#/properties/websocket/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.loopback !== undefined){const _errs17 = errors;if(typeof data.loopback !== "boolean"){validate421.errors = [{instancePath:instancePath+"/loopback",schemaPath:"#/properties/loopback/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.survives_pause !== undefined){const _errs19 = errors;if(typeof data.survives_pause !== "boolean"){validate421.errors = [{instancePath:instancePath+"/survives_pause",schemaPath:"#/properties/survives_pause/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.ports !== undefined){let data7 = data.ports;const _errs21 = errors;if(errors === _errs21){if(Array.isArray(data7)){if(data7.length < 1){validate421.errors = [{instancePath:instancePath+"/ports",schemaPath:"#/properties/ports/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid6 = true;const len1 = data7.length;for(let i2=0; i2<len1; i2++){let data8 = data7[i2];const _errs23 = errors;const _errs24 = errors;const _errs25 = errors;let valid8 = false;const _errs26 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err9 = {instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid2 = _errs26 === errors;valid8 = valid8 || _valid2;const _errs28 = errors;if(typeof data8 !== "bigint"){const err10 = {instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid2 = _errs28 === errors;valid8 = valid8 || _valid2;if(!valid8){const err11 = {instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate421.errors = vErrors;return false;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}var valid7 = _errs24 === errors;if(valid7){if(typeof data8 === "bigint"){if(data8 < 1){validate421.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data8 > 65535){validate421.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs23){if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 65535 || isNaN(data8)){validate421.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data8 < 1 || isNaN(data8)){validate421.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid6 = _errs23 === errors;if(!valid6){break;}}if(valid6){let i3 = data7.length;let j1;if(i3 > 1){outer1:for(;i3--;){for(j1 = i3; j1--;){if(func0(data7[i3], data7[j1])){validate421.errors = [{instancePath:instancePath+"/ports",schemaPath:"#/properties/ports/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break outer1;}}}}}}}else {validate421.errors = [{instancePath:instancePath+"/ports",schemaPath:"#/properties/ports/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}}}}}}}}}else {validate421.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate421.errors = vErrors;return errors === 0;}validate421.evaluated = {"props":{"access":true,"revocable":true,"link_lifetime_seconds":true,"websocket":true,"loopback":true,"survives_pause":true,"ports":true},"dynamicProps":false,"dynamicItems":false};const schema538 = {"type":"object","required":["tls","ports"],"properties":{"tls":{"anyOf":[{"enum":["any","none"]},{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["none"]}}]},"ports":{"type":"array","minItems":1,"uniqueItems":true,"items":{"minimum":1,"maximum":65535,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":65535}}}}};function validate423(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate423.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.tls === undefined) && (missing0 = "tls")) || ((data.ports === undefined) && (missing0 = "ports"))){validate423.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.tls !== undefined){let data0 = data.tls;const _errs1 = errors;const _errs2 = errors;let valid1 = false;const _errs3 = errors;if(!((data0 === "any") || (data0 === "none"))){const err0 = {instancePath:instancePath+"/tls",schemaPath:"#/properties/tls/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema538.properties.tls.anyOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs3 === errors;valid1 = valid1 || _valid0;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data0)){if(data0.length < 1){const err1 = {instancePath:instancePath+"/tls",schemaPath:"#/properties/tls/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {var valid2 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs6 = errors;if(!(data0[i0] === "none")){const err2 = {instancePath:instancePath+"/tls/" + i0,schemaPath:"#/properties/tls/anyOf/1/items/enum",keyword:"enum",params:{allowedValues: schema538.properties.tls.anyOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs6 === errors;if(!valid2){break;}}if(valid2){let i1 = data0.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data0[i1], data0[j0])){const err3 = {instancePath:instancePath+"/tls",schemaPath:"#/properties/tls/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;break outer0;}}}}}}}else {const err4 = {instancePath:instancePath+"/tls",schemaPath:"#/properties/tls/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs4 === errors;valid1 = valid1 || _valid0;if(!valid1){const err5 = {instancePath:instancePath+"/tls",schemaPath:"#/properties/tls/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate423.errors = vErrors;return false;}else {errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.ports !== undefined){let data2 = data.ports;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data2)){if(data2.length < 1){validate423.errors = [{instancePath:instancePath+"/ports",schemaPath:"#/properties/ports/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid4 = true;const len1 = data2.length;for(let i2=0; i2<len1; i2++){let data3 = data2[i2];const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid6 = false;const _errs12 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err6 = {instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid1 = _errs12 === errors;valid6 = valid6 || _valid1;const _errs14 = errors;if(typeof data3 !== "bigint"){const err7 = {instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid1 = _errs14 === errors;valid6 = valid6 || _valid1;if(!valid6){const err8 = {instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate423.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid5 = _errs10 === errors;if(valid5){if(typeof data3 === "bigint"){if(data3 < 1){validate423.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data3 > 65535){validate423.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs9){if((typeof data3 == "number") && (isFinite(data3))){if(data3 > 65535 || isNaN(data3)){validate423.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data3 < 1 || isNaN(data3)){validate423.errors = [{instancePath:instancePath+"/ports/" + i2,schemaPath:"#/properties/ports/items/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid4 = _errs9 === errors;if(!valid4){break;}}if(valid4){let i3 = data2.length;let j1;if(i3 > 1){outer1:for(;i3--;){for(j1 = i3; j1--;){if(func0(data2[i3], data2[j1])){validate423.errors = [{instancePath:instancePath+"/ports",schemaPath:"#/properties/ports/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break outer1;}}}}}}}else {validate423.errors = [{instancePath:instancePath+"/ports",schemaPath:"#/properties/ports/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}else {validate423.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate423.errors = vErrors;return errors === 0;}validate423.evaluated = {"props":{"tls":true,"ports":true},"dynamicProps":false,"dynamicItems":false};function validate414(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate414.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.previews === undefined) && (missing0 = "previews")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.previews !== undefined){let data0 = data.previews;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.survives_pause === undefined) && (missing1 = "survives_pause")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}if(_valid0){const _errs4 = errors;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.pause_resume === undefined) && (missing2 = "pause_resume")){const err2 = {instancePath,schemaPath:"#/then/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid1 = _errs6 === errors;valid2 = valid2 || _valid1;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.idle_shutdown === undefined) && (missing3 = "idle_shutdown")){const err3 = {instancePath,schemaPath:"#/then/anyOf/1/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var _valid1 = _errs7 === errors;valid2 = valid2 || _valid1;if(!valid2){const err4 = {instancePath,schemaPath:"#/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate414.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var _valid0 = _errs4 === errors;valid0 = _valid0;}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate414.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.custom_images !== undefined){let data1 = data.custom_images;const _errs8 = errors;const _errs9 = errors;if(errors === _errs9){if(!(data1 && typeof data1 == "object" && !Array.isArray(data1))){validate414.errors = [{instancePath:instancePath+"/custom_images",schemaPath:"#/components/schemas/SandboxProviderSpecCustomImagesRequirement/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs8 === errors;}else {var valid3 = true;}if(valid3){if(data.desktop !== undefined){let data2 = data.desktop;const _errs11 = errors;const _errs12 = errors;if(errors === _errs12){if(!(data2 && typeof data2 == "object" && !Array.isArray(data2))){validate414.errors = [{instancePath:instancePath+"/desktop",schemaPath:"#/components/schemas/SandboxProviderSpecDesktopRequirement/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data.hidden_secrets !== undefined){const _errs14 = errors;if(!(validate415(data.hidden_secrets, {instancePath:instancePath+"/hidden_secrets",parentData:data,parentDataProperty:"hidden_secrets",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate415.errors : vErrors.concat(validate415.errors);errors = vErrors.length;}var valid3 = _errs14 === errors;}else {var valid3 = true;}if(valid3){if(data.idle_shutdown !== undefined){const _errs15 = errors;if(!(validate417(data.idle_shutdown, {instancePath:instancePath+"/idle_shutdown",parentData:data,parentDataProperty:"idle_shutdown",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate417.errors : vErrors.concat(validate417.errors);errors = vErrors.length;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.network_lockdown !== undefined){const _errs16 = errors;if(!(validate419(data.network_lockdown, {instancePath:instancePath+"/network_lockdown",parentData:data,parentDataProperty:"network_lockdown",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate419.errors : vErrors.concat(validate419.errors);errors = vErrors.length;}var valid3 = _errs16 === errors;}else {var valid3 = true;}if(valid3){if(data.pause_resume !== undefined){let data6 = data.pause_resume;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.keeps !== undefined){let data7 = data6.keeps;const _errs21 = errors;let valid8 = false;const _errs22 = errors;if(!((data7 === "files_only") || (data7 === "files_and_memory"))){const err6 = {instancePath:instancePath+"/pause_resume/keeps",schemaPath:"#/components/schemas/SandboxProviderSpecPauseResumeRequirement/properties/keeps/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema535.properties.keeps.anyOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs22 === errors;valid8 = valid8 || _valid2;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data7)){if(data7.length < 1){const err7 = {instancePath:instancePath+"/pause_resume/keeps",schemaPath:"#/components/schemas/SandboxProviderSpecPauseResumeRequirement/properties/keeps/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {var valid9 = true;const len0 = data7.length;for(let i0=0; i0<len0; i0++){let data8 = data7[i0];const _errs25 = errors;if(!((data8 === "files_only") || (data8 === "files_and_memory"))){const err8 = {instancePath:instancePath+"/pause_resume/keeps/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecPauseResumeRequirement/properties/keeps/anyOf/1/items/enum",keyword:"enum",params:{allowedValues: schema535.properties.keeps.anyOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid9 = _errs25 === errors;if(!valid9){break;}}if(valid9){let i1 = data7.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data7[i1], data7[j0])){const err9 = {instancePath:instancePath+"/pause_resume/keeps",schemaPath:"#/components/schemas/SandboxProviderSpecPauseResumeRequirement/properties/keeps/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;break outer0;}}}}}}}else {const err10 = {instancePath:instancePath+"/pause_resume/keeps",schemaPath:"#/components/schemas/SandboxProviderSpecPauseResumeRequirement/properties/keeps/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid2 = _errs23 === errors;valid8 = valid8 || _valid2;if(!valid8){const err11 = {instancePath:instancePath+"/pause_resume/keeps",schemaPath:"#/components/schemas/SandboxProviderSpecPauseResumeRequirement/properties/keeps/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate414.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}}}else {validate414.errors = [{instancePath:instancePath+"/pause_resume",schemaPath:"#/components/schemas/SandboxProviderSpecPauseResumeRequirement/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.previews !== undefined){const _errs26 = errors;if(!(validate421(data.previews, {instancePath:instancePath+"/previews",parentData:data,parentDataProperty:"previews",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate421.errors : vErrors.concat(validate421.errors);errors = vErrors.length;}var valid3 = _errs26 === errors;}else {var valid3 = true;}if(valid3){if(data.processes !== undefined){let data10 = data.processes;const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.input !== undefined){if(typeof data10.input !== "boolean"){validate414.errors = [{instancePath:instancePath+"/processes/input",schemaPath:"#/components/schemas/SandboxProviderSpecProcessesRequirement/properties/input/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate414.errors = [{instancePath:instancePath+"/processes",schemaPath:"#/components/schemas/SandboxProviderSpecProcessesRequirement/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.tcp_ports !== undefined){const _errs32 = errors;if(!(validate423(data.tcp_ports, {instancePath:instancePath+"/tcp_ports",parentData:data,parentDataProperty:"tcp_ports",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate423.errors : vErrors.concat(validate423.errors);errors = vErrors.length;}var valid3 = _errs32 === errors;}else {var valid3 = true;}if(valid3){if(data.terminal !== undefined){let data13 = data.terminal;const _errs33 = errors;const _errs34 = errors;if(errors === _errs34){if(!(data13 && typeof data13 == "object" && !Array.isArray(data13))){validate414.errors = [{instancePath:instancePath+"/terminal",schemaPath:"#/components/schemas/SandboxProviderSpecTerminalRequirement/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}}}}}else {validate414.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate414.errors = vErrors;return errors === 0;}validate414.evaluated = {"props":{"custom_images":true,"desktop":true,"hidden_secrets":true,"idle_shutdown":true,"network_lockdown":true,"pause_resume":true,"previews":true,"processes":true,"tcp_ports":true,"terminal":true},"dynamicProps":false,"dynamicItems":false};const schema52 = {"type":"object","properties":{"cpu_min":{"exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_min_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"disk_min_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"extendable_lifetime":{"type":"boolean","const":true,"description":"Needed before POST /sandboxes/{sandbox_id}/lifetime may be called."},"region":{"type":"string","minLength":1,"description":"One value from the region registry: a provider's region (for example `provider:eu-west`),\nan area (EU) or a country (US). Never a list.\n"},"kernel":{"anyOf":[{"enum":["shared","filtered","dedicated"]},{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["shared","filtered","dedicated"]}}]},"paused_retention_seconds":{"exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"arch":{"anyOf":[{"enum":["amd64","arm64"]},{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["amd64","arm64"]}}]},"run_seconds":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"process_seconds":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}},"description":"Resource constraints, execution limits, and environment facts that must hold for this\nsandbox. The matcher compares each named value with declared resources and capabilities;\nfields left out impose no requirement.\n"};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.cpu_min !== undefined){let data0 = data.cpu_min;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!((typeof data0 == "number") && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/cpu_min",schemaPath:"#/properties/cpu_min/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/cpu_min",schemaPath:"#/properties/cpu_min/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/cpu_min",schemaPath:"#/properties/cpu_min/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 <= 0){validate27.errors = [{instancePath:instancePath+"/cpu_min",schemaPath:"#/properties/cpu_min/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 <= 0 || isNaN(data0)){validate27.errors = [{instancePath:instancePath+"/cpu_min",schemaPath:"#/properties/cpu_min/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.memory_min_mib !== undefined){let data1 = data.memory_min_mib;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/memory_min_mib",schemaPath:"#/properties/memory_min_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/memory_min_mib",schemaPath:"#/properties/memory_min_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/memory_min_mib",schemaPath:"#/properties/memory_min_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 1){validate27.errors = [{instancePath:instancePath+"/memory_min_mib",schemaPath:"#/properties/memory_min_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){validate27.errors = [{instancePath:instancePath+"/memory_min_mib",schemaPath:"#/properties/memory_min_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.disk_min_mib !== undefined){let data2 = data.disk_min_mib;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid6 = false;const _errs16 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs16 === errors;valid6 = valid6 || _valid2;const _errs18 = errors;if(typeof data2 !== "bigint"){const err7 = {instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs18 === errors;valid6 = valid6 || _valid2;if(!valid6){const err8 = {instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid5 = _errs14 === errors;if(valid5){if(typeof data2 === "bigint"){if(data2 < 1){validate27.errors = [{instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate27.errors = [{instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.extendable_lifetime !== undefined){let data3 = data.extendable_lifetime;const _errs19 = errors;if(typeof data3 !== "boolean"){validate27.errors = [{instancePath:instancePath+"/extendable_lifetime",schemaPath:"#/properties/extendable_lifetime/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}if(true !== data3){validate27.errors = [{instancePath:instancePath+"/extendable_lifetime",schemaPath:"#/properties/extendable_lifetime/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"}];return false;}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.region !== undefined){let data4 = data.region;const _errs21 = errors;if(errors === _errs21){if(typeof data4 === "string"){if(func1(data4) < 1){validate27.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate27.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.kernel !== undefined){let data5 = data.kernel;const _errs23 = errors;const _errs24 = errors;let valid7 = false;const _errs25 = errors;if(!(((data5 === "shared") || (data5 === "filtered")) || (data5 === "dedicated"))){const err9 = {instancePath:instancePath+"/kernel",schemaPath:"#/properties/kernel/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema52.properties.kernel.anyOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs25 === errors;valid7 = valid7 || _valid3;const _errs26 = errors;if(errors === _errs26){if(Array.isArray(data5)){if(data5.length < 1){const err10 = {instancePath:instancePath+"/kernel",schemaPath:"#/properties/kernel/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {var valid8 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs28 = errors;if(!(((data6 === "shared") || (data6 === "filtered")) || (data6 === "dedicated"))){const err11 = {instancePath:instancePath+"/kernel/" + i0,schemaPath:"#/properties/kernel/anyOf/1/items/enum",keyword:"enum",params:{allowedValues: schema52.properties.kernel.anyOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid8 = _errs28 === errors;if(!valid8){break;}}if(valid8){let i1 = data5.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data5[i1], data5[j0])){const err12 = {instancePath:instancePath+"/kernel",schemaPath:"#/properties/kernel/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;break outer0;}}}}}}}else {const err13 = {instancePath:instancePath+"/kernel",schemaPath:"#/properties/kernel/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var _valid3 = _errs26 === errors;valid7 = valid7 || _valid3;if(!valid7){const err14 = {instancePath:instancePath+"/kernel",schemaPath:"#/properties/kernel/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.paused_retention_seconds !== undefined){let data7 = data.paused_retention_seconds;const _errs29 = errors;const _errs30 = errors;const _errs31 = errors;let valid11 = false;const _errs32 = errors;if(!((typeof data7 == "number") && (isFinite(data7)))){const err15 = {instancePath:instancePath+"/paused_retention_seconds",schemaPath:"#/properties/paused_retention_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid4 = _errs32 === errors;valid11 = valid11 || _valid4;const _errs34 = errors;if(typeof data7 !== "bigint"){const err16 = {instancePath:instancePath+"/paused_retention_seconds",schemaPath:"#/properties/paused_retention_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid4 = _errs34 === errors;valid11 = valid11 || _valid4;if(!valid11){const err17 = {instancePath:instancePath+"/paused_retention_seconds",schemaPath:"#/properties/paused_retention_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid10 = _errs30 === errors;if(valid10){if(typeof data7 === "bigint"){if(data7 <= 0){validate27.errors = [{instancePath:instancePath+"/paused_retention_seconds",schemaPath:"#/properties/paused_retention_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs29){if((typeof data7 == "number") && (isFinite(data7))){if(data7 <= 0 || isNaN(data7)){validate27.errors = [{instancePath:instancePath+"/paused_retention_seconds",schemaPath:"#/properties/paused_retention_seconds/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid0 = _errs29 === errors;}else {var valid0 = true;}if(valid0){if(data.arch !== undefined){let data8 = data.arch;const _errs35 = errors;const _errs36 = errors;let valid12 = false;const _errs37 = errors;if(!((data8 === "amd64") || (data8 === "arm64"))){const err18 = {instancePath:instancePath+"/arch",schemaPath:"#/properties/arch/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema52.properties.arch.anyOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid5 = _errs37 === errors;valid12 = valid12 || _valid5;const _errs38 = errors;if(errors === _errs38){if(Array.isArray(data8)){if(data8.length < 1){const err19 = {instancePath:instancePath+"/arch",schemaPath:"#/properties/arch/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {var valid13 = true;const len1 = data8.length;for(let i2=0; i2<len1; i2++){let data9 = data8[i2];const _errs40 = errors;if(!((data9 === "amd64") || (data9 === "arm64"))){const err20 = {instancePath:instancePath+"/arch/" + i2,schemaPath:"#/properties/arch/anyOf/1/items/enum",keyword:"enum",params:{allowedValues: schema52.properties.arch.anyOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid13 = _errs40 === errors;if(!valid13){break;}}if(valid13){let i3 = data8.length;let j1;if(i3 > 1){outer1:for(;i3--;){for(j1 = i3; j1--;){if(func0(data8[i3], data8[j1])){const err21 = {instancePath:instancePath+"/arch",schemaPath:"#/properties/arch/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;break outer1;}}}}}}}else {const err22 = {instancePath:instancePath+"/arch",schemaPath:"#/properties/arch/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var _valid5 = _errs38 === errors;valid12 = valid12 || _valid5;if(!valid12){const err23 = {instancePath:instancePath+"/arch",schemaPath:"#/properties/arch/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.run_seconds !== undefined){let data10 = data.run_seconds;const _errs41 = errors;const _errs42 = errors;const _errs43 = errors;let valid16 = false;const _errs44 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err24 = {instancePath:instancePath+"/run_seconds",schemaPath:"#/properties/run_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid6 = _errs44 === errors;valid16 = valid16 || _valid6;const _errs46 = errors;if(typeof data10 !== "bigint"){const err25 = {instancePath:instancePath+"/run_seconds",schemaPath:"#/properties/run_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid6 = _errs46 === errors;valid16 = valid16 || _valid6;if(!valid16){const err26 = {instancePath:instancePath+"/run_seconds",schemaPath:"#/properties/run_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs43;if(vErrors !== null){if(_errs43){vErrors.length = _errs43;}else {vErrors = null;}}}var valid15 = _errs42 === errors;if(valid15){if(typeof data10 === "bigint"){if(data10 < 1){validate27.errors = [{instancePath:instancePath+"/run_seconds",schemaPath:"#/properties/run_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs41){if((typeof data10 == "number") && (isFinite(data10))){if(data10 < 1 || isNaN(data10)){validate27.errors = [{instancePath:instancePath+"/run_seconds",schemaPath:"#/properties/run_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.process_seconds !== undefined){let data11 = data.process_seconds;const _errs47 = errors;const _errs48 = errors;const _errs49 = errors;let valid18 = false;const _errs50 = errors;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err27 = {instancePath:instancePath+"/process_seconds",schemaPath:"#/properties/process_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid7 = _errs50 === errors;valid18 = valid18 || _valid7;const _errs52 = errors;if(typeof data11 !== "bigint"){const err28 = {instancePath:instancePath+"/process_seconds",schemaPath:"#/properties/process_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid7 = _errs52 === errors;valid18 = valid18 || _valid7;if(!valid18){const err29 = {instancePath:instancePath+"/process_seconds",schemaPath:"#/properties/process_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var valid17 = _errs48 === errors;if(valid17){if(typeof data11 === "bigint"){if(data11 < 1){validate27.errors = [{instancePath:instancePath+"/process_seconds",schemaPath:"#/properties/process_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs47){if((typeof data11 == "number") && (isFinite(data11))){if(data11 < 1 || isNaN(data11)){validate27.errors = [{instancePath:instancePath+"/process_seconds",schemaPath:"#/properties/process_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs47 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate27.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":{"cpu_min":true,"memory_min_mib":true,"disk_min_mib":true,"extendable_lifetime":true,"region":true,"kernel":true,"paused_retention_seconds":true,"arch":true,"run_seconds":true,"process_seconds":true},"dynamicProps":false,"dynamicItems":false};const schema54 = {"type":"object","description":"The one provider-preference contract shared by sandbox creation, launch placement and\nActions policy settings. Every property is optional; omitted properties inherit.\nPrecedence, narrowest last: workspace restrictions are the ceiling, then a repository\ndefault or named Actions policy, then a workflow, then request controls. Hard\nrestrictions (provider allowlists, route, account, supply, region, privacy, origin and\nspend) intersect and can only narrow; request ignore unions with workspace exclusions.\nA request true never lifts a workspace allow_fallbacks false. When workspace\nprevent_overrides is on, containing order, sort or allow_fallbacks is refused with\nrouting_overrides_forbidden even if the value matches the workspace; `only` still\nnarrows as a set and cannot reorder workspace ranking. Otherwise soft preference values\nreplace inherited values without widening authority. `order: []` and `ignore: []` are valid empty soft\narrays that name no preference and no exclusion; inherited hard authority is unchanged.\nEach list must hold distinct values; null is never valid for any property.\n`order` prioritizes named providers in listed order; eligible providers omitted from\nit remain candidates afterward, ranked by the existing router order. When `only`\nis supplied, it remains the hard ordered allowlist and caps eligible providers; `order`\nmay rearrange its members, while omitted members retain `only` order. `ignore`\nexcludes providers even when named by `only` or `order`. `sort` ranks routes\nwithin a provider. `allow_fallbacks` defaults to true and controls whether\ncreation may dispatch a later eligible route after a provider definitively refuses before\ncreating a sandbox. This includes another account for the same provider. False stops after\nthe first route dispatch. Eligibility and preparation may skip a route before dispatch.\nProvider, account, supply, payer and requirements constraints remain binding.\n","properties":{"order":{"type":"array","uniqueItems":true,"description":"Softly prioritize these providers in the listed order. Eligible providers omitted\nfrom this list remain candidates afterward using the existing router order. When\n`only` is supplied, it remains the ordered hard allowlist and caps eligibility;\nthis order rearranges its members and omitted members retain their `only` order.\n","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}},"only":{"$ref":"#/components/schemas/ProviderAllowlist"},"ignore":{"type":"array","uniqueItems":true,"description":"Providers to exclude from routing, even if also named in `only` or `order`.","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}},"sort":{"type":"string","enum":["price","time"],"x-boxrouter-choices":{"price":{"label":"Price","line":"Lowest hourly price first.","measure":"price","better":"lower"},"time":{"label":"Time","line":"Shortest run time measured on reference workloads first.","measure":"time","better":"lower"}},"description":"How eligible routes are ranked. `price` picks the lowest hourly price. `time` picks the shortest run time, measured on reference workloads.\n"},"allow_fallbacks":{"type":"boolean","default":true,"description":"Whether Cloud may dispatch a later eligible route after a provider definitively\nrefuses before creating a sandbox; defaults to true and continues until a route\ncreates the sandbox or no eligible route remains. If `only` is supplied, it\nlimits eligible providers; `preferences.order` takes precedence for their order, with\n`preferences.sort` ranking routes within each provider.\nFalse stops after the first route dispatch, including when a later route uses another\naccount for the same provider. Local eligibility or preparation failures may skip a\nroute before dispatch. This does not expand the provider allowlist or relax route,\naccount, supply, payer or requirements restrictions.\n"}}};const schema55 = {"type":"array","minItems":1,"uniqueItems":true,"description":"Used as `preferences.only`, this is the hard allowlist of eligible providers. `preferences.order`\ntakes precedence for their order; otherwise this list's order applies. `preferences.sort`\nranks eligible routes within each provider. Route, account, supply,\npayer and requirements restrictions still constrain every route, and unlisted providers\nare never considered. A one-provider list prevents cross-provider fallback while allowing\nlater eligible routes for that provider when `preferences.allow_fallbacks` is true.\nSetting it to false stops after the first route dispatch, including a later account for\nthe same provider.\n","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.order !== undefined){let data0 = data.order;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs3 === errors;if(!valid1){break;}}if(valid1){let i1 = data0.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data0[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate30.errors = [{instancePath:instancePath+"/order",schemaPath:"#/properties/order/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}else {validate30.errors = [{instancePath:instancePath+"/order",schemaPath:"#/properties/order/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.only !== undefined){let data2 = data.only;const _errs5 = errors;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data2)){if(data2.length < 1){validate30.errors = [{instancePath:instancePath+"/only",schemaPath:"#/components/schemas/ProviderAllowlist/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid4 = true;const len1 = data2.length;for(let i2=0; i2<len1; i2++){let data3 = data2[i2];const _errs8 = errors;if(errors === _errs8){if(typeof data3 === "string"){if(func1(data3) > 128){validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs8 === errors;if(!valid4){break;}}if(valid4){let i3 = data2.length;let j1;if(i3 > 1){const indices1 = {};for(;i3--;){let item1 = data2[i3];if(typeof item1 !== "string"){continue;}if(typeof indices1[item1] == "number"){j1 = indices1[item1];validate30.errors = [{instancePath:instancePath+"/only",schemaPath:"#/components/schemas/ProviderAllowlist/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break;}indices1[item1] = i3;}}}}}else {validate30.errors = [{instancePath:instancePath+"/only",schemaPath:"#/components/schemas/ProviderAllowlist/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.ignore !== undefined){let data4 = data.ignore;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data4)){var valid6 = true;const len2 = data4.length;for(let i4=0; i4<len2; i4++){let data5 = data4[i4];const _errs12 = errors;if(errors === _errs12){if(typeof data5 === "string"){if(func1(data5) > 128){validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs12 === errors;if(!valid6){break;}}if(valid6){let i5 = data4.length;let j2;if(i5 > 1){const indices2 = {};for(;i5--;){let item2 = data4[i5];if(typeof item2 !== "string"){continue;}if(typeof indices2[item2] == "number"){j2 = indices2[item2];validate30.errors = [{instancePath:instancePath+"/ignore",schemaPath:"#/properties/ignore/uniqueItems",keyword:"uniqueItems",params:{i: i5, j: j2},message:"must NOT have duplicate items (items ## "+j2+" and "+i5+" are identical)"}];return false;break;}indices2[item2] = i5;}}}}else {validate30.errors = [{instancePath:instancePath+"/ignore",schemaPath:"#/properties/ignore/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.sort !== undefined){let data6 = data.sort;const _errs14 = errors;if(typeof data6 !== "string"){validate30.errors = [{instancePath:instancePath+"/sort",schemaPath:"#/properties/sort/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data6 === "price") || (data6 === "time"))){validate30.errors = [{instancePath:instancePath+"/sort",schemaPath:"#/properties/sort/enum",keyword:"enum",params:{allowedValues: schema54.properties.sort.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.allow_fallbacks !== undefined){const _errs16 = errors;if(typeof data.allow_fallbacks !== "boolean"){validate30.errors = [{instancePath:instancePath+"/allow_fallbacks",schemaPath:"#/properties/allow_fallbacks/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs16 === errors;}else {var valid0 = true;}}}}}}else {validate30.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":{"order":true,"only":true,"ignore":true,"sort":true,"allow_fallbacks":true},"dynamicProps":false,"dynamicItems":false};const schema57 = {"type":"object","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/VolumeId"},"path":{"type":"string","pattern":"^/[^\\u0000]*$","default":"/workspace","description":"Absolute folder the checkpoint is restored into, replacing what the image has there. Repeated\nseparators and `.` path components are normalized; any `..` component is rejected. The path\nmust not be `/`, under /proc, /sys, /dev, /etc, /usr, /bin, /sbin, /lib or /run, or equal to\nor an ancestor of the internal `/tmp/boxrouter-volume` scratch path.\n"},"checkpoint":{"minimum":1,"description":"Checkpoint to restore; omitted means the head. An empty volume restores nothing. A\ncheckpoint saved from a branch sandbox is not the head and can be selected by number with\nwrite, branch or read access; read mounts exactly that checkpoint's files, never the head.\n","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"access":{"type":"string","enum":["write","read","shared","branch"],"default":"write","description":"The access mode requested for this sandbox. Omitted means write. Launch modes are write,\nread, shared, and branch. Checkpoints and branches remain capability-gated.\n"}}};const pattern24 = new RegExp("^/[^\\u0000]*$", "u");function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate33.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.id === undefined) && (missing0 = "id")){validate33.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(!pattern23.test(data0)){validate33.errors = [{instancePath:instancePath+"/id",schemaPath:"#/components/schemas/VolumeId/pattern",keyword:"pattern",params:{pattern: "^vol_[0-9a-f]{32}$"},message:"must match pattern \""+"^vol_[0-9a-f]{32}$"+"\""}];return false;}}else {validate33.errors = [{instancePath:instancePath+"/id",schemaPath:"#/components/schemas/VolumeId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.path !== undefined){let data1 = data.path;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(!pattern24.test(data1)){validate33.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/pattern",keyword:"pattern",params:{pattern: "^/[^\\u0000]*$"},message:"must match pattern \""+"^/[^\\u0000]*$"+"\""}];return false;}}else {validate33.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.checkpoint !== undefined){let data2 = data.checkpoint;const _errs6 = errors;const _errs7 = errors;const _errs8 = errors;let valid3 = false;const _errs9 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/checkpoint",schemaPath:"#/properties/checkpoint/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs9 === errors;valid3 = valid3 || _valid0;const _errs11 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/checkpoint",schemaPath:"#/properties/checkpoint/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs11 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/checkpoint",schemaPath:"#/properties/checkpoint/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate33.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid2 = _errs7 === errors;if(valid2){if(typeof data2 === "bigint"){if(data2 < 1){validate33.errors = [{instancePath:instancePath+"/checkpoint",schemaPath:"#/properties/checkpoint/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs6){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate33.errors = [{instancePath:instancePath+"/checkpoint",schemaPath:"#/properties/checkpoint/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.access !== undefined){let data3 = data.access;const _errs12 = errors;if(typeof data3 !== "string"){validate33.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data3 === "write") || (data3 === "read")) || (data3 === "shared")) || (data3 === "branch"))){validate33.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/enum",keyword:"enum",params:{allowedValues: schema57.properties.access.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}else {validate33.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate33.errors = vErrors;return errors === 0;}validate33.evaluated = {"props":{"id":true,"path":true,"checkpoint":true,"access":true},"dynamicProps":false,"dynamicItems":false};const schema542 = {"anyOf":[{"type":"string","const":"provider_default"},{"type":"string","minLength":1,"not":{"const":"provider_default"},"description":"OCI image reference."},{"type":"object","required":["dockerfile"],"properties":{"dockerfile":{"type":"string","minLength":1},"context_artifact_id":{"type":"string","minLength":1,"description":"Unexpired workspace-owned uploaded tar context, leased while the image builds."}}},{"$ref":"#/components/schemas/SandboxImageSelectionProviderArtifact"},{"type":"object","required":["private_oci"],"properties":{"private_oci":{"type":"string","minLength":1,"description":"OCI image reference in a registry that needs a login; send registry_credentials beside it."}}}]};function validate429(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate429.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("provider_default" !== data){const err1 = {instancePath,schemaPath:"#/anyOf/0/const",keyword:"const",params:{allowedValue: "provider_default"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;const _errs3 = errors;const _errs5 = errors;const _errs6 = errors;if("provider_default" !== data){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs6 === errors;if(valid1){const err3 = {instancePath,schemaPath:"#/anyOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(errors === _errs3){if(typeof data === "string"){if(func1(data) < 1){const err4 = {instancePath,schemaPath:"#/anyOf/1/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;const _errs7 = errors;if(errors === _errs7){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.dockerfile === undefined) && (missing0 = "dockerfile")){const err6 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.dockerfile !== undefined){let data0 = data.dockerfile;const _errs9 = errors;if(errors === _errs9){if(typeof data0 === "string"){if(func1(data0) < 1){const err7 = {instancePath:instancePath+"/dockerfile",schemaPath:"#/anyOf/2/properties/dockerfile/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/dockerfile",schemaPath:"#/anyOf/2/properties/dockerfile/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid2 = _errs9 === errors;}else {var valid2 = true;}if(valid2){if(data.context_artifact_id !== undefined){let data1 = data.context_artifact_id;const _errs11 = errors;if(errors === _errs11){if(typeof data1 === "string"){if(func1(data1) < 1){const err9 = {instancePath:instancePath+"/context_artifact_id",schemaPath:"#/anyOf/2/properties/context_artifact_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/context_artifact_id",schemaPath:"#/anyOf/2/properties/context_artifact_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid2 = _errs11 === errors;}else {var valid2 = true;}}}}else {const err11 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var _valid0 = _errs7 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.dockerfile = true;props0.context_artifact_id = true;}const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.provider_artifact === undefined) && (missing1 = "provider_artifact")){const err12 = {instancePath,schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data.provider_artifact !== undefined){let data2 = data.provider_artifact;const _errs16 = errors;if(errors === _errs16){if(typeof data2 === "string"){if(func1(data2) < 1){const err13 = {instancePath:instancePath+"/provider_artifact",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/properties/provider_artifact/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/provider_artifact",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/properties/provider_artifact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}}}else {const err15 = {instancePath,schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs13 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.provider_artifact = true;}}const _errs18 = errors;if(errors === _errs18){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.private_oci === undefined) && (missing2 = "private_oci")){const err16 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.private_oci !== undefined){let data3 = data.private_oci;const _errs20 = errors;if(errors === _errs20){if(typeof data3 === "string"){if(func1(data3) < 1){const err17 = {instancePath:instancePath+"/private_oci",schemaPath:"#/anyOf/4/properties/private_oci/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {instancePath:instancePath+"/private_oci",schemaPath:"#/anyOf/4/properties/private_oci/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs18 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.private_oci = true;}}if(!valid0){const err20 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate429.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate429.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate429.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema544 = {"type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"additionalProperties":{"$ref":"#/components/schemas/SecretReference"}};const schema545 = {"type":"object","required":["secret_name"],"properties":{"secret_name":{"$ref":"#/components/schemas/SecretName"}}};function validate432(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate432.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.secret_name === undefined) && (missing0 = "secret_name")){validate432.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.secret_name !== undefined){let data0 = data.secret_name;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(func1(data0) > 128){validate432.errors = [{instancePath:instancePath+"/secret_name",schemaPath:"#/components/schemas/SecretName/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate432.errors = [{instancePath:instancePath+"/secret_name",schemaPath:"#/components/schemas/SecretName/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern5.test(data0)){validate432.errors = [{instancePath:instancePath+"/secret_name",schemaPath:"#/components/schemas/SecretName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]{0,127}$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]{0,127}$"+"\""}];return false;}}}}else {validate432.errors = [{instancePath:instancePath+"/secret_name",schemaPath:"#/components/schemas/SecretName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}else {validate432.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate432.errors = vErrors;return errors === 0;}validate432.evaluated = {"props":{"secret_name":true},"dynamicProps":false,"dynamicItems":false};function validate431(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate431.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){for(const key0 in data){const _errs1 = errors;if(typeof key0 === "string"){if(!pattern6.test(key0)){const err0 = {instancePath,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var valid0 = _errs1 === errors;if(!valid0){const err1 = {instancePath,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate431.errors = vErrors;return false;break;}}if(valid0){for(const key1 in data){const _errs3 = errors;if(!(validate432(data[key1], {instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate432.errors : vErrors.concat(validate432.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}}else {validate431.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate431.errors = vErrors;return errors === 0;}validate431.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate413(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate413.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.secret_values === undefined) && (missing0 = "secret_values")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.requirements === undefined) && (missing1 = "requirements")){validate413.errors = [{instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data.requirements !== undefined){let data0 = data.requirements;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing2;if((data0.hidden_secrets === undefined) && (missing2 = "hidden_secrets")){validate413.errors = [{instancePath:instancePath+"/requirements",schemaPath:"#/allOf/0/then/properties/requirements/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}}}}}var _valid0 = _errs4 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.requirements = true;}}if(!valid1){const err1 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate413.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs6 = errors;const _errs7 = errors;let valid3 = true;const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((data.volume === undefined) && (missing3 = "volume")) || ((data.image === undefined) && (missing3 = "image"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid1 = _errs8 === errors;errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}if(_valid1){const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.image !== undefined){let data1 = data.image;const _errs11 = errors;let valid5 = false;const _errs12 = errors;if(typeof data1 !== "string"){const err3 = {instancePath:instancePath+"/image",schemaPath:"#/allOf/1/then/properties/image/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;if("provider_default" !== data1){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid7 = _errs16 === errors;if(valid7){const err5 = {instancePath:instancePath+"/image",schemaPath:"#/allOf/1/then/properties/image/anyOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid6 = _errs14 === errors;if(valid6){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(typeof data1 === "string"){if(!pattern282.test(data1)){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var valid8 = _errs19 === errors;if(valid8){const err7 = {instancePath:instancePath+"/image",schemaPath:"#/allOf/1/then/properties/image/anyOf/0/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}var valid6 = _errs17 === errors;}var _valid2 = _errs12 === errors;valid5 = valid5 || _valid2;const _errs20 = errors;const _errs21 = errors;if(errors === _errs21){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing4;if((data1.provider_artifact === undefined) && (missing4 = "provider_artifact")){const err8 = {instancePath:instancePath+"/image",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data1.provider_artifact !== undefined){let data2 = data1.provider_artifact;const _errs23 = errors;if(errors === _errs23){if(typeof data2 === "string"){if(func1(data2) < 1){const err9 = {instancePath:instancePath+"/image/provider_artifact",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/properties/provider_artifact/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/image/provider_artifact",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/properties/provider_artifact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}}}else {const err11 = {instancePath:instancePath+"/image",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var _valid2 = _errs20 === errors;valid5 = valid5 || _valid2;if(_valid2){var props1 = {};props1.provider_artifact = true;}if(!valid5){const err12 = {instancePath:instancePath+"/image",schemaPath:"#/allOf/1/then/properties/image/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate413.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}}}var _valid1 = _errs9 === errors;valid3 = _valid1;if(valid3){var props2 = {};props2.image = true;}}if(!valid3){const err13 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate413.errors = vErrors;return false;}var valid0 = _errs6 === errors;if(valid0){if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}const _errs25 = errors;const _errs26 = errors;let valid11 = true;const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((data.image === undefined) && (missing5 = "image")){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data.image !== undefined){let data3 = data.image;const _errs28 = errors;if(errors === _errs28){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing6;if((data3.provider_artifact === undefined) && (missing6 = "provider_artifact")){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}}}var _valid3 = _errs27 === errors;errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}if(_valid3){const _errs30 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if((data.preferences === undefined) && (missing7 = "preferences")){validate413.errors = [{instancePath,schemaPath:"#/allOf/2/then/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"}];return false;}else {if(data.preferences !== undefined){let data4 = data.preferences;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing8;if((data4.only === undefined) && (missing8 = "only")){validate413.errors = [{instancePath:instancePath+"/preferences",schemaPath:"#/allOf/2/then/properties/preferences/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"}];return false;}else {if(data4.only !== undefined){let data5 = data4.only;if(Array.isArray(data5)){if(data5.length > 1){validate413.errors = [{instancePath:instancePath+"/preferences/only",schemaPath:"#/allOf/2/then/properties/preferences/properties/only/maxItems",keyword:"maxItems",params:{limit: 1},message:"must NOT have more than 1 items"}];return false;}}}}}}}}var _valid3 = _errs30 === errors;valid11 = _valid3;if(valid11){var props3 = {};props3.preferences = true;props3.image = true;}}if(!valid11){const err17 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate413.errors = vErrors;return false;}var valid0 = _errs25 === errors;if(valid0){if(props0 !== true && props3 !== undefined){if(props3 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props3);}}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(props0 !== true){props0 = props0 || {};props0.lifetime_seconds = true;props0.at_end = true;props0.requirements = true;props0.resources = true;props0.preferences = true;props0.privacy = true;props0.route = true;props0.volume = true;props0.image = true;props0.registry_credentials = true;props0.env = true;props0.secret_refs = true;props0.secret_values = true;props0.labels = true;}if(data.lifetime_seconds !== undefined){let data6 = data.lifetime_seconds;const _errs33 = errors;const _errs34 = errors;const _errs35 = errors;let valid17 = false;const _errs36 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err18 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid4 = _errs36 === errors;valid17 = valid17 || _valid4;const _errs38 = errors;if(typeof data6 !== "bigint"){const err19 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid4 = _errs38 === errors;valid17 = valid17 || _valid4;if(!valid17){const err20 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate413.errors = vErrors;return false;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}var valid16 = _errs34 === errors;if(valid16){if(typeof data6 === "bigint"){if(data6 < 60){validate413.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs33){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 60 || isNaN(data6)){validate413.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 60},message:"must be >= 60"}];return false;}}}var valid15 = _errs33 === errors;}else {var valid15 = true;}if(valid15){if(data.at_end !== undefined){let data7 = data.at_end;const _errs39 = errors;if(typeof data7 !== "string"){validate413.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data7 === "destroy") || (data7 === "pause"))){validate413.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/enum",keyword:"enum",params:{allowedValues: schema526.properties.at_end.enum},message:"must be equal to one of the allowed values"}];return false;}var valid15 = _errs39 === errors;}else {var valid15 = true;}if(valid15){if(data.requirements !== undefined){const _errs41 = errors;if(!(validate414(data.requirements, {instancePath:instancePath+"/requirements",parentData:data,parentDataProperty:"requirements",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate414.errors : vErrors.concat(validate414.errors);errors = vErrors.length;}var valid15 = _errs41 === errors;}else {var valid15 = true;}if(valid15){if(data.resources !== undefined){const _errs42 = errors;if(!(validate27(data.resources, {instancePath:instancePath+"/resources",parentData:data,parentDataProperty:"resources",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);errors = vErrors.length;}var valid15 = _errs42 === errors;}else {var valid15 = true;}if(valid15){if(data.preferences !== undefined){const _errs43 = errors;if(!(validate30(data.preferences, {instancePath:instancePath+"/preferences",parentData:data,parentDataProperty:"preferences",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}var valid15 = _errs43 === errors;}else {var valid15 = true;}if(valid15){if(data.privacy !== undefined){let data11 = data.privacy;const _errs44 = errors;const _errs45 = errors;if(errors === _errs45){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.data_collection !== undefined){let data12 = data11.data_collection;const _errs47 = errors;if(typeof data12 !== "string"){validate413.errors = [{instancePath:instancePath+"/privacy/data_collection",schemaPath:"#/components/schemas/PrivacyPolicy/properties/data_collection/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data12 === "allow") || (data12 === "deny"))){validate413.errors = [{instancePath:instancePath+"/privacy/data_collection",schemaPath:"#/components/schemas/PrivacyPolicy/properties/data_collection/enum",keyword:"enum",params:{allowedValues: schema540.properties.data_collection.enum},message:"must be equal to one of the allowed values"}];return false;}var valid19 = _errs47 === errors;}else {var valid19 = true;}if(valid19){if(data11.zdr !== undefined){const _errs49 = errors;if(typeof data11.zdr !== "boolean"){validate413.errors = [{instancePath:instancePath+"/privacy/zdr",schemaPath:"#/components/schemas/PrivacyPolicy/properties/zdr/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid19 = _errs49 === errors;}else {var valid19 = true;}if(valid19){if(data11.boxrouter_content_retention !== undefined){let data14 = data11.boxrouter_content_retention;const _errs51 = errors;if(typeof data14 !== "string"){validate413.errors = [{instancePath:instancePath+"/privacy/boxrouter_content_retention",schemaPath:"#/components/schemas/PrivacyPolicy/properties/boxrouter_content_retention/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data14 === "ordinary") || (data14 === "transient"))){validate413.errors = [{instancePath:instancePath+"/privacy/boxrouter_content_retention",schemaPath:"#/components/schemas/PrivacyPolicy/properties/boxrouter_content_retention/enum",keyword:"enum",params:{allowedValues: schema540.properties.boxrouter_content_retention.enum},message:"must be equal to one of the allowed values"}];return false;}var valid19 = _errs51 === errors;}else {var valid19 = true;}}}}else {validate413.errors = [{instancePath:instancePath+"/privacy",schemaPath:"#/components/schemas/PrivacyPolicy/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs44 === errors;}else {var valid15 = true;}if(valid15){if(data.route !== undefined){let data15 = data.route;const _errs53 = errors;const _errs54 = errors;if(errors === _errs54){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id !== undefined){let data16 = data15.id;const _errs56 = errors;if(errors === _errs56){if(typeof data16 === "string"){if(func1(data16) > 128){validate413.errors = [{instancePath:instancePath+"/route/id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data16) < 1){validate413.errors = [{instancePath:instancePath+"/route/id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data16)){validate413.errors = [{instancePath:instancePath+"/route/id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate413.errors = [{instancePath:instancePath+"/route/id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid21 = _errs56 === errors;}else {var valid21 = true;}if(valid21){if(data15.account_id !== undefined){let data17 = data15.account_id;const _errs58 = errors;if(errors === _errs58){if(typeof data17 === "string"){if(func1(data17) > 128){validate413.errors = [{instancePath:instancePath+"/route/account_id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data17) < 1){validate413.errors = [{instancePath:instancePath+"/route/account_id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/account_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data17)){validate413.errors = [{instancePath:instancePath+"/route/account_id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/account_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate413.errors = [{instancePath:instancePath+"/route/account_id",schemaPath:"#/components/schemas/CreationRouteFilter/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid21 = _errs58 === errors;}else {var valid21 = true;}if(valid21){if(data15.supply !== undefined){let data18 = data15.supply;const _errs60 = errors;if(typeof data18 !== "string"){validate413.errors = [{instancePath:instancePath+"/route/supply",schemaPath:"#/components/schemas/CreationRouteFilter/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data18 === "byok") || (data18 === "managed"))){validate413.errors = [{instancePath:instancePath+"/route/supply",schemaPath:"#/components/schemas/CreationRouteFilter/properties/supply/enum",keyword:"enum",params:{allowedValues: schema541.properties.supply.enum},message:"must be equal to one of the allowed values"}];return false;}var valid21 = _errs60 === errors;}else {var valid21 = true;}}}}else {validate413.errors = [{instancePath:instancePath+"/route",schemaPath:"#/components/schemas/CreationRouteFilter/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs53 === errors;}else {var valid15 = true;}if(valid15){if(data.volume !== undefined){const _errs62 = errors;if(!(validate33(data.volume, {instancePath:instancePath+"/volume",parentData:data,parentDataProperty:"volume",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);errors = vErrors.length;}var valid15 = _errs62 === errors;}else {var valid15 = true;}if(valid15){if(data.image !== undefined){const _errs63 = errors;if(!(validate429(data.image, {instancePath:instancePath+"/image",parentData:data,parentDataProperty:"image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate429.errors : vErrors.concat(validate429.errors);errors = vErrors.length;}var valid15 = _errs63 === errors;}else {var valid15 = true;}if(valid15){if(data.registry_credentials !== undefined){let data21 = data.registry_credentials;const _errs64 = errors;if(errors === _errs64){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){let missing9;if(((data21.username === undefined) && (missing9 = "username")) || ((data21.password === undefined) && (missing9 = "password"))){validate413.errors = [{instancePath:instancePath+"/registry_credentials",schemaPath:"#/properties/registry_credentials/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"}];return false;}else {if(data21.username !== undefined){let data22 = data21.username;const _errs66 = errors;if(errors === _errs66){if(typeof data22 === "string"){if(func1(data22) < 1){validate413.errors = [{instancePath:instancePath+"/registry_credentials/username",schemaPath:"#/properties/registry_credentials/properties/username/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data22)){validate413.errors = [{instancePath:instancePath+"/registry_credentials/username",schemaPath:"#/properties/registry_credentials/properties/username/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}else {validate413.errors = [{instancePath:instancePath+"/registry_credentials/username",schemaPath:"#/properties/registry_credentials/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid22 = _errs66 === errors;}else {var valid22 = true;}if(valid22){if(data21.password !== undefined){let data23 = data21.password;const _errs68 = errors;if(errors === _errs68){if(typeof data23 === "string"){if(func1(data23) < 1){validate413.errors = [{instancePath:instancePath+"/registry_credentials/password",schemaPath:"#/properties/registry_credentials/properties/password/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data23)){validate413.errors = [{instancePath:instancePath+"/registry_credentials/password",schemaPath:"#/properties/registry_credentials/properties/password/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}else {validate413.errors = [{instancePath:instancePath+"/registry_credentials/password",schemaPath:"#/properties/registry_credentials/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid22 = _errs68 === errors;}else {var valid22 = true;}}}}else {validate413.errors = [{instancePath:instancePath+"/registry_credentials",schemaPath:"#/properties/registry_credentials/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs64 === errors;}else {var valid15 = true;}if(valid15){if(data.env !== undefined){let data24 = data.env;const _errs70 = errors;if(errors === _errs70){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length > 256){validate413.errors = [{instancePath:instancePath+"/env",schemaPath:"#/properties/env/maxProperties",keyword:"maxProperties",params:{limit: 256},message:"must NOT have more than 256 properties"}];return false;}else {for(const key0 in data24){const _errs72 = errors;if(typeof key0 === "string"){if(!pattern6.test(key0)){const err21 = {instancePath:instancePath+"/env",schemaPath:"#/properties/env/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}var valid23 = _errs72 === errors;if(!valid23){const err22 = {instancePath:instancePath+"/env",schemaPath:"#/properties/env/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;validate413.errors = vErrors;return false;break;}}if(valid23){for(const key1 in data24){const _errs74 = errors;if(typeof data24[key1] !== "string"){validate413.errors = [{instancePath:instancePath+"/env/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid24 = _errs74 === errors;if(!valid24){break;}}}}}else {validate413.errors = [{instancePath:instancePath+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs70 === errors;}else {var valid15 = true;}if(valid15){if(data.secret_refs !== undefined){const _errs76 = errors;if(!(validate431(data.secret_refs, {instancePath:instancePath+"/secret_refs",parentData:data,parentDataProperty:"secret_refs",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate431.errors : vErrors.concat(validate431.errors);errors = vErrors.length;}var valid15 = _errs76 === errors;}else {var valid15 = true;}if(valid15){if(data.secret_values !== undefined){let data27 = data.secret_values;const _errs77 = errors;if(errors === _errs77){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length > 256){validate413.errors = [{instancePath:instancePath+"/secret_values",schemaPath:"#/properties/secret_values/maxProperties",keyword:"maxProperties",params:{limit: 256},message:"must NOT have more than 256 properties"}];return false;}else {if(Object.keys(data27).length < 1){validate413.errors = [{instancePath:instancePath+"/secret_values",schemaPath:"#/properties/secret_values/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"}];return false;}else {for(const key2 in data27){const _errs79 = errors;const _errs80 = errors;if(errors === _errs80){if(typeof key2 === "string"){if(func1(key2) > 128){const err23 = {instancePath:instancePath+"/secret_values",schemaPath:"#/components/schemas/SecretName/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters",propertyName:key2};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(func1(key2) < 1){const err24 = {instancePath:instancePath+"/secret_values",schemaPath:"#/components/schemas/SecretName/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key2};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {if(!pattern5.test(key2)){const err25 = {instancePath:instancePath+"/secret_values",schemaPath:"#/components/schemas/SecretName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]{0,127}$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]{0,127}$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}}else {const err26 = {instancePath:instancePath+"/secret_values",schemaPath:"#/components/schemas/SecretName/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key2};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid25 = _errs79 === errors;if(!valid25){const err27 = {instancePath:instancePath+"/secret_values",schemaPath:"#/properties/secret_values/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;validate413.errors = vErrors;return false;break;}}if(valid25){for(const key3 in data27){let data28 = data27[key3];const _errs83 = errors;if(errors === _errs83){if(typeof data28 === "string"){if(func1(data28) > 16384){validate413.errors = [{instancePath:instancePath+"/secret_values/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/secret_values/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 16384},message:"must NOT have more than 16384 characters"}];return false;}else {if(!pattern10.test(data28)){validate413.errors = [{instancePath:instancePath+"/secret_values/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/secret_values/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}else {validate413.errors = [{instancePath:instancePath+"/secret_values/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/secret_values/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid27 = _errs83 === errors;if(!valid27){break;}}}}}}else {validate413.errors = [{instancePath:instancePath+"/secret_values",schemaPath:"#/properties/secret_values/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs77 === errors;}else {var valid15 = true;}if(valid15){if(data.labels !== undefined){let data29 = data.labels;const _errs85 = errors;if(errors === _errs85){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(Object.keys(data29).length > 64){validate413.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/maxProperties",keyword:"maxProperties",params:{limit: 64},message:"must NOT have more than 64 properties"}];return false;}else {for(const key4 in data29){const _errs87 = errors;if(typeof key4 === "string"){if(func1(key4) > 63){const err28 = {instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/propertyNames/maxLength",keyword:"maxLength",params:{limit: 63},message:"must NOT have more than 63 characters",propertyName:key4};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid28 = _errs87 === errors;if(!valid28){const err29 = {instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/propertyNames",keyword:"propertyNames",params:{propertyName: key4},message:"property name must be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate413.errors = vErrors;return false;break;}}if(valid28){for(const key5 in data29){let data30 = data29[key5];const _errs89 = errors;if(errors === _errs89){if(typeof data30 === "string"){if(func1(data30) > 255){validate413.errors = [{instancePath:instancePath+"/labels/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}}else {validate413.errors = [{instancePath:instancePath+"/labels/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid29 = _errs89 === errors;if(!valid29){break;}}}}}else {validate413.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs85 === errors;}else {var valid15 = true;}}}}}}}}}}}}}}}else {validate413.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate413.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate413.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema548 = {"type":"object","required":["provider","class","account_id","supply","adapter_version","gates","resources","attested","lifetime"],"description":"One candidate that fits, with the contract it would grant.","properties":{"provider":{"type":"string"},"class":{"type":["string","null"]},"account_id":{"type":["string","null"]},"supply":{"type":"string"},"adapter_version":{"type":"string"},"gates":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/GrantedGate"}},"resources":{"type":"object","additionalProperties":true},"attested":{"type":"object","additionalProperties":true},"lifetime":{"$ref":"#/components/schemas/Lifetime"},"ranking":{"$ref":"#/components/schemas/EligibleRouteRanking"},"request_overrides":{"type":"object","required":["image"],"description":"The create request fields a caller must send for this route. Present on a\ndiscovery route that requires explicit image selection because the standard\nimage is not offered there; absent means the route needs no override. The\ncaller's other requirements do not change, and fields are never merged\nacross routes.\n","properties":{"image":{"$ref":"#/components/schemas/SandboxImageSelection","description":"The image selection the create request must send for this route."}}}}};const schema549 = {"type":"object","required":["position","reason","explanation","price"],"description":"Why this route sits where it does in the order creation would try, with its hourly quote.\nIt explains the ordering of this dry run; creation re-ranks with the signals of that moment.\nAbsent on responses from a Cloud that predates it.\n","properties":{"position":{"minimum":1,"description":"Place in the order creation would try, 1 first.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason":{"type":"string","x-boxrouter-open-enum":true,"x-boxrouter-choices":{"lowest_price":{"label":"Lowest price","line":"Lowest hourly price of the routes ranked together."},"weighted_price":{"label":"Weighted price","line":"Automatic mode leads with a draw weighted toward lower prices, so the leader can change between creates; the routes behind it follow by price."},"lowest_time":{"label":"Lowest time","line":"Shortest run time measured on reference workloads first."},"predicted_completion":{"label":"Predicted completion","line":"Soonest predicted completion among the routes ranked together."},"predicted_ready_time":{"label":"Predicted ready time","line":"Ordered by predicted time to ready from this workspace's history."},"explicit_order":{"label":"Explicit order","line":"Placed by the provider order you set in Routing or in the request."},"after_named_providers":{"label":"After named providers","line":"Behind the providers you named in your order; the others keep BoxRouter's ranking."},"provider_key_order":{"label":"Provider key order","line":"Another key of a provider already placed; one provider's keys are tried in the order you set in Routing."},"only_eligible_route":{"label":"Only eligible route","line":"Nothing else to rank it against in its group."},"health_deprioritized":{"label":"Health deprioritized","line":"Recent failures or degraded health put it behind healthier routes."},"price_unknown":{"label":"Price unknown","line":"No price quote at this size, so routes with a quote are tried first."},"no_signals":{"label":"No signals","line":"No price or time signals exist yet, so it keeps BoxRouter's default order."}},"description":"Why the route ranks here. explicit_order is your own provider order; after_named_providers is a provider behind the ones you named; provider_key_order is\na later key of a provider already placed; price_unknown means no comparable hourly quote\nis available. New values may appear.\n"},"explanation":{"type":"string","description":"The reason in one sentence; any price mention refers to the hourly quote in price."},"price":{"type":"object","required":["usd_per_hour","kind","basis"],"description":"The hourly quote at the size this route would grant. For BYOK, kind `list_price` is the provider list price paid directly to the provider; for managed supply, kind `customer_price` is BoxRouter's customer price charged to credits. This is not a final bill or a complete-task estimate.","properties":{"usd_per_hour":{"type":["string","null"],"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Null when the size is unknown or the price version has no quote for it."},"kind":{"type":"string","x-boxrouter-open-enum":true,"description":"Kind of hourly quote; unknown means no quote is available."},"basis":{"type":"string","description":"The size priced and whose price it is, or why there is no price."}}}}};function validate439(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate439.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.position === undefined) && (missing0 = "position")) || ((data.reason === undefined) && (missing0 = "reason"))) || ((data.explanation === undefined) && (missing0 = "explanation"))) || ((data.price === undefined) && (missing0 = "price"))){validate439.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.position !== undefined){let data0 = data.position;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/position",schemaPath:"#/properties/position/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/position",schemaPath:"#/properties/position/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/position",schemaPath:"#/properties/position/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate439.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 1){validate439.errors = [{instancePath:instancePath+"/position",schemaPath:"#/properties/position/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 1 || isNaN(data0)){validate439.errors = [{instancePath:instancePath+"/position",schemaPath:"#/properties/position/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.reason !== undefined){const _errs7 = errors;if(typeof data.reason !== "string"){validate439.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.explanation !== undefined){const _errs9 = errors;if(typeof data.explanation !== "string"){validate439.errors = [{instancePath:instancePath+"/explanation",schemaPath:"#/properties/explanation/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.price !== undefined){let data3 = data.price;const _errs11 = errors;if(errors === _errs11){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((((data3.usd_per_hour === undefined) && (missing1 = "usd_per_hour")) || ((data3.kind === undefined) && (missing1 = "kind"))) || ((data3.basis === undefined) && (missing1 = "basis"))){validate439.errors = [{instancePath:instancePath+"/price",schemaPath:"#/properties/price/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.usd_per_hour !== undefined){let data4 = data3.usd_per_hour;const _errs13 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate439.errors = [{instancePath:instancePath+"/price/usd_per_hour",schemaPath:"#/properties/price/properties/usd_per_hour/type",keyword:"type",params:{type: schema549.properties.price.properties.usd_per_hour.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(typeof data4 === "string"){if(!pattern50.test(data4)){validate439.errors = [{instancePath:instancePath+"/price/usd_per_hour",schemaPath:"#/properties/price/properties/usd_per_hour/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.kind !== undefined){const _errs15 = errors;if(typeof data3.kind !== "string"){validate439.errors = [{instancePath:instancePath+"/price/kind",schemaPath:"#/properties/price/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data3.basis !== undefined){const _errs17 = errors;if(typeof data3.basis !== "string"){validate439.errors = [{instancePath:instancePath+"/price/basis",schemaPath:"#/properties/price/properties/basis/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs17 === errors;}else {var valid3 = true;}}}}}else {validate439.errors = [{instancePath:instancePath+"/price",schemaPath:"#/properties/price/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}}}}}}else {validate439.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate439.errors = vErrors;return errors === 0;}validate439.evaluated = {"props":{"position":true,"reason":true,"explanation":true,"price":true},"dynamicProps":false,"dynamicItems":false};function validate436(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate436.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((data.provider === undefined) && (missing0 = "provider")) || ((data.class === undefined) && (missing0 = "class"))) || ((data.account_id === undefined) && (missing0 = "account_id"))) || ((data.supply === undefined) && (missing0 = "supply"))) || ((data.adapter_version === undefined) && (missing0 = "adapter_version"))) || ((data.gates === undefined) && (missing0 = "gates"))) || ((data.resources === undefined) && (missing0 = "resources"))) || ((data.attested === undefined) && (missing0 = "attested"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))){validate436.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.provider !== undefined){const _errs1 = errors;if(typeof data.provider !== "string"){validate436.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.class !== undefined){let data1 = data.class;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate436.errors = [{instancePath:instancePath+"/class",schemaPath:"#/properties/class/type",keyword:"type",params:{type: schema548.properties.class.type},message:"must be string,null"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.account_id !== undefined){let data2 = data.account_id;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate436.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema548.properties.account_id.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.supply !== undefined){const _errs7 = errors;if(typeof data.supply !== "string"){validate436.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.adapter_version !== undefined){const _errs9 = errors;if(typeof data.adapter_version !== "string"){validate436.errors = [{instancePath:instancePath+"/adapter_version",schemaPath:"#/properties/adapter_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.gates !== undefined){let data5 = data.gates;const _errs11 = errors;if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){const _errs14 = errors;if(!(validate376(data5[key0], {instancePath:instancePath+"/gates/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data5,parentDataProperty:key0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate376.errors : vErrors.concat(validate376.errors);errors = vErrors.length;}var valid1 = _errs14 === errors;if(!valid1){break;}}}else {validate436.errors = [{instancePath:instancePath+"/gates",schemaPath:"#/properties/gates/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.resources !== undefined){let data7 = data.resources;const _errs15 = errors;if(errors === _errs15){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){}else {validate436.errors = [{instancePath:instancePath+"/resources",schemaPath:"#/properties/resources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.attested !== undefined){let data8 = data.attested;const _errs18 = errors;if(errors === _errs18){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){}else {validate436.errors = [{instancePath:instancePath+"/attested",schemaPath:"#/properties/attested/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs21 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.ranking !== undefined){const _errs22 = errors;if(!(validate439(data.ranking, {instancePath:instancePath+"/ranking",parentData:data,parentDataProperty:"ranking",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate439.errors : vErrors.concat(validate439.errors);errors = vErrors.length;}var valid0 = _errs22 === errors;}else {var valid0 = true;}if(valid0){if(data.request_overrides !== undefined){let data11 = data.request_overrides;const _errs23 = errors;if(errors === _errs23){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing1;if((data11.image === undefined) && (missing1 = "image")){validate436.errors = [{instancePath:instancePath+"/request_overrides",schemaPath:"#/properties/request_overrides/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data11.image !== undefined){if(!(validate429(data11.image, {instancePath:instancePath+"/request_overrides/image",parentData:data11,parentDataProperty:"image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate429.errors : vErrors.concat(validate429.errors);errors = vErrors.length;}}}}else {validate436.errors = [{instancePath:instancePath+"/request_overrides",schemaPath:"#/properties/request_overrides/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs23 === errors;}else {var valid0 = true;}}}}}}}}}}}}}else {validate436.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate436.errors = vErrors;return errors === 0;}validate436.evaluated = {"props":{"provider":true,"class":true,"account_id":true,"supply":true,"adapter_version":true,"gates":true,"resources":true,"attested":true,"lifetime":true,"ranking":true,"request_overrides":true},"dynamicProps":false,"dynamicItems":false};function validate412(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate412.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((data.spec_version === undefined) && (missing0 = "spec_version")) || ((data.request === undefined) && (missing0 = "request"))) || ((data.eligible === undefined) && (missing0 = "eligible"))) || ((data.excluded === undefined) && (missing0 = "excluded"))) || ((data.nearest === undefined) && (missing0 = "nearest"))) || ((data.closest === undefined) && (missing0 = "closest"))){validate412.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.spec_version !== undefined){let data0 = data.spec_version;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(!pattern253.test(data0)){validate412.errors = [{instancePath:instancePath+"/spec_version",schemaPath:"#/properties/spec_version/pattern",keyword:"pattern",params:{pattern: "^(boxspec|sandbox-provider-spec)/[0-9]+\\.[0-9]+(-draft(\\.[0-9]+)?)?$"},message:"must match pattern \""+"^(boxspec|sandbox-provider-spec)/[0-9]+\\.[0-9]+(-draft(\\.[0-9]+)?)?$"+"\""}];return false;}}else {validate412.errors = [{instancePath:instancePath+"/spec_version",schemaPath:"#/properties/spec_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.request !== undefined){const _errs3 = errors;if(!(validate413(data.request, {instancePath:instancePath+"/request",parentData:data,parentDataProperty:"request",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate413.errors : vErrors.concat(validate413.errors);errors = vErrors.length;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.eligible !== undefined){let data2 = data.eligible;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){var valid2 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){const _errs7 = errors;if(!(validate436(data2[i0], {instancePath:instancePath+"/eligible/" + i0,parentData:data2,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate436.errors : vErrors.concat(validate436.errors);errors = vErrors.length;}var valid2 = _errs7 === errors;if(!valid2){break;}}}else {validate412.errors = [{instancePath:instancePath+"/eligible",schemaPath:"#/properties/eligible/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.excluded !== undefined){let data4 = data.excluded;const _errs8 = errors;if(errors === _errs8){if(Array.isArray(data4)){var valid3 = true;const len1 = data4.length;for(let i1=0; i1<len1; i1++){const _errs10 = errors;if(!(validate368(data4[i1], {instancePath:instancePath+"/excluded/" + i1,parentData:data4,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate368.errors : vErrors.concat(validate368.errors);errors = vErrors.length;}var valid3 = _errs10 === errors;if(!valid3){break;}}}else {validate412.errors = [{instancePath:instancePath+"/excluded",schemaPath:"#/properties/excluded/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.nearest !== undefined){let data6 = data.nearest;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data6)){var valid4 = true;const len2 = data6.length;for(let i2=0; i2<len2; i2++){let data7 = data6[i2];const _errs13 = errors;if(errors === _errs13){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing1;if(((data7.change === undefined) && (missing1 = "change")) || ((data7.then_eligible === undefined) && (missing1 = "then_eligible"))){validate412.errors = [{instancePath:instancePath+"/nearest/" + i2,schemaPath:"#/properties/nearest/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data7.change !== undefined){let data8 = data7.change;const _errs15 = errors;if(errors === _errs15){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){}else {validate412.errors = [{instancePath:instancePath+"/nearest/" + i2+"/change",schemaPath:"#/properties/nearest/items/properties/change/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs15 === errors;}else {var valid5 = true;}if(valid5){if(data7.then_eligible !== undefined){let data9 = data7.then_eligible;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data9)){var valid6 = true;const len3 = data9.length;for(let i3=0; i3<len3; i3++){const _errs20 = errors;if(typeof data9[i3] !== "string"){validate412.errors = [{instancePath:instancePath+"/nearest/" + i2+"/then_eligible/" + i3,schemaPath:"#/properties/nearest/items/properties/then_eligible/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs20 === errors;if(!valid6){break;}}}else {validate412.errors = [{instancePath:instancePath+"/nearest/" + i2+"/then_eligible",schemaPath:"#/properties/nearest/items/properties/then_eligible/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid5 = _errs18 === errors;}else {var valid5 = true;}}}}else {validate412.errors = [{instancePath:instancePath+"/nearest/" + i2,schemaPath:"#/properties/nearest/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs13 === errors;if(!valid4){break;}}}else {validate412.errors = [{instancePath:instancePath+"/nearest",schemaPath:"#/properties/nearest/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.closest !== undefined){let data11 = data.closest;const _errs22 = errors;const _errs23 = errors;let valid7 = false;const _errs24 = errors;if(!(validate368(data11, {instancePath:instancePath+"/closest",parentData:data,parentDataProperty:"closest",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate368.errors : vErrors.concat(validate368.errors);errors = vErrors.length;}var _valid0 = _errs24 === errors;valid7 = valid7 || _valid0;if(_valid0){var props1 = {};props1.provider = true;props1.class = true;props1.account_id = true;props1.failed = true;}const _errs25 = errors;if(data11 !== null){const err0 = {instancePath:instancePath+"/closest",schemaPath:"#/properties/closest/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs25 === errors;valid7 = valid7 || _valid0;if(!valid7){const err1 = {instancePath:instancePath+"/closest",schemaPath:"#/properties/closest/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate412.errors = vErrors;return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}else {validate412.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate412.errors = vErrors;return errors === 0;}validate412.evaluated = {"props":{"spec_version":true,"request":true,"eligible":true,"excluded":true,"nearest":true,"closest":true},"dynamicProps":false,"dynamicItems":false};exports.validate8 = validate445;function validate445(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate445.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((((((((((data.id === undefined) && (missing0 = "id")) || ((data.state === undefined) && (missing0 = "state"))) || ((data.state_reason === undefined) && (missing0 = "state_reason"))) || ((data.failure === undefined) && (missing0 = "failure"))) || ((data.native_state === undefined) && (missing0 = "native_state"))) || ((data.observed_at === undefined) && (missing0 = "observed_at"))) || ((data.state_recorded_at === undefined) && (missing0 = "state_recorded_at"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.ready_at === undefined) && (missing0 = "ready_at"))) || ((data.ended_at === undefined) && (missing0 = "ended_at"))) || ((data.labels === undefined) && (missing0 = "labels"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))) || ((data.route === undefined) && (missing0 = "route"))) || ((data.contract === undefined) && (missing0 = "contract"))) || ((data.request === undefined) && (missing0 = "request"))) || ((data.hidden_secrets === undefined) && (missing0 = "hidden_secrets"))) || ((data.tcp_ports === undefined) && (missing0 = "tcp_ports"))) || ((data.recorder === undefined) && (missing0 = "recorder"))) || ((data.limits === undefined) && (missing0 = "limits"))){validate445.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate445.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate445.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate445.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate445.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){const _errs3 = errors;if(typeof data.state !== "string"){validate445.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.state_reason !== undefined){let data2 = data.state_reason;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate445.errors = [{instancePath:instancePath+"/state_reason",schemaPath:"#/properties/state_reason/type",keyword:"type",params:{type: schema320.properties.state_reason.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data3 = data.failure;const _errs7 = errors;const _errs8 = errors;let valid1 = false;const _errs9 = errors;if(!(validate330(data3, {instancePath:instancePath+"/failure",parentData:data,parentDataProperty:"failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate330.errors : vErrors.concat(validate330.errors);errors = vErrors.length;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.summary = true;props0.provider_state = true;props0.native_code = true;props0.native_message = true;props0.observed_at = true;}const _errs10 = errors;if(data3 !== null){const err0 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.native_state !== undefined){let data4 = data.native_state;const _errs12 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate445.errors = [{instancePath:instancePath+"/native_state",schemaPath:"#/properties/native_state/type",keyword:"type",params:{type: schema320.properties.native_state.type},message:"must be string,null"}];return false;}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs14 = errors;if(errors === _errs14){if(errors === _errs14){if(typeof data5 === "string"){if(!(formats0.validate(data5))){validate445.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate445.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.state_recorded_at !== undefined){let data6 = data.state_recorded_at;const _errs16 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate445.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/type",keyword:"type",params:{type: schema320.properties.state_recorded_at.type},message:"must be string,null"}];return false;}if(errors === _errs16){if(errors === _errs16){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate445.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data7 = data.created_at;const _errs18 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate445.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: schema320.properties.created_at.type},message:"must be string,null"}];return false;}if(errors === _errs18){if(errors === _errs18){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate445.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data8 = data.expires_at;const _errs20 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate445.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: schema320.properties.expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs20){if(errors === _errs20){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate445.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at !== undefined){let data9 = data.ready_at;const _errs22 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate445.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/type",keyword:"type",params:{type: schema320.properties.ready_at.type},message:"must be string,null"}];return false;}if(errors === _errs22){if(errors === _errs22){if(typeof data9 === "string"){if(!(formats0.validate(data9))){validate445.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at !== undefined){let data10 = data.ended_at;const _errs24 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate445.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/type",keyword:"type",params:{type: schema320.properties.ended_at.type},message:"must be string,null"}];return false;}if(errors === _errs24){if(errors === _errs24){if(typeof data10 === "string"){if(!(formats0.validate(data10))){validate445.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs24 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_source !== undefined){let data11 = data.created_at_source;const _errs26 = errors;const _errs27 = errors;let valid2 = false;const _errs28 = errors;if(typeof data11 !== "string"){const err2 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!((((((data11 === "provider") || (data11 === "published")) || (data11 === "measured")) || (data11 === "recorded")) || (data11 === "calculated")) || (data11 === "unknown"))){const err3 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs28 === errors;valid2 = valid2 || _valid1;const _errs31 = errors;if(data11 !== null){const err4 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs31 === errors;valid2 = valid2 || _valid1;if(!valid2){const err5 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid0 = _errs26 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_how !== undefined){let data12 = data.created_at_how;const _errs33 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate445.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/type",keyword:"type",params:{type: schema320.properties.created_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs33){if(typeof data12 === "string"){if(func1(data12) < 1){validate445.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_step !== undefined){let data13 = data.created_at_step;const _errs35 = errors;const _errs36 = errors;const _errs37 = errors;let valid5 = false;const _errs38 = errors;if((!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))) && (data13 !== null)){const err6 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.created_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs38 === errors;valid5 = valid5 || _valid2;const _errs40 = errors;if(typeof data13 !== "bigint"){const err7 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs40 === errors;valid5 = valid5 || _valid2;if(!valid5){const err8 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid4 = _errs36 === errors;if(valid4){if(typeof data13 === "bigint"){if(data13 < 1){validate445.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs35){if((typeof data13 == "number") && (isFinite(data13))){if(data13 < 1 || isNaN(data13)){validate445.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_source !== undefined){let data14 = data.ready_at_source;const _errs41 = errors;const _errs42 = errors;let valid6 = false;const _errs43 = errors;if(typeof data14 !== "string"){const err9 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!((((((data14 === "provider") || (data14 === "published")) || (data14 === "measured")) || (data14 === "recorded")) || (data14 === "calculated")) || (data14 === "unknown"))){const err10 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs43 === errors;valid6 = valid6 || _valid3;const _errs46 = errors;if(data14 !== null){const err11 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs46 === errors;valid6 = valid6 || _valid3;if(!valid6){const err12 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_how !== undefined){let data15 = data.ready_at_how;const _errs48 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate445.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/type",keyword:"type",params:{type: schema320.properties.ready_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs48){if(typeof data15 === "string"){if(func1(data15) < 1){validate445.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs48 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_step !== undefined){let data16 = data.ready_at_step;const _errs50 = errors;const _errs51 = errors;const _errs52 = errors;let valid9 = false;const _errs53 = errors;if((!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))) && (data16 !== null)){const err13 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ready_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs53 === errors;valid9 = valid9 || _valid4;const _errs55 = errors;if(typeof data16 !== "bigint"){const err14 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid4 = _errs55 === errors;valid9 = valid9 || _valid4;if(!valid9){const err15 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid8 = _errs51 === errors;if(valid8){if(typeof data16 === "bigint"){if(data16 < 1){validate445.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs50){if((typeof data16 == "number") && (isFinite(data16))){if(data16 < 1 || isNaN(data16)){validate445.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs50 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_source !== undefined){let data17 = data.ended_at_source;const _errs56 = errors;const _errs57 = errors;let valid10 = false;const _errs58 = errors;if(typeof data17 !== "string"){const err16 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(!((((((data17 === "provider") || (data17 === "published")) || (data17 === "measured")) || (data17 === "recorded")) || (data17 === "calculated")) || (data17 === "unknown"))){const err17 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs58 === errors;valid10 = valid10 || _valid5;const _errs61 = errors;if(data17 !== null){const err18 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid5 = _errs61 === errors;valid10 = valid10 || _valid5;if(!valid10){const err19 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs57;if(vErrors !== null){if(_errs57){vErrors.length = _errs57;}else {vErrors = null;}}}var valid0 = _errs56 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_how !== undefined){let data18 = data.ended_at_how;const _errs63 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate445.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/type",keyword:"type",params:{type: schema320.properties.ended_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs63){if(typeof data18 === "string"){if(func1(data18) < 1){validate445.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs63 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_step !== undefined){let data19 = data.ended_at_step;const _errs65 = errors;const _errs66 = errors;const _errs67 = errors;let valid13 = false;const _errs68 = errors;if((!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))) && (data19 !== null)){const err20 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ended_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid6 = _errs68 === errors;valid13 = valid13 || _valid6;const _errs70 = errors;if(typeof data19 !== "bigint"){const err21 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid6 = _errs70 === errors;valid13 = valid13 || _valid6;if(!valid13){const err22 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}}var valid12 = _errs66 === errors;if(valid12){if(typeof data19 === "bigint"){if(data19 < 1){validate445.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs65){if((typeof data19 == "number") && (isFinite(data19))){if(data19 < 1 || isNaN(data19)){validate445.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs65 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_source !== undefined){let data20 = data.cost_source;const _errs71 = errors;const _errs72 = errors;let valid14 = false;const _errs73 = errors;if(typeof data20 !== "string"){const err23 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!((((((data20 === "provider") || (data20 === "published")) || (data20 === "measured")) || (data20 === "recorded")) || (data20 === "calculated")) || (data20 === "unknown"))){const err24 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid7 = _errs73 === errors;valid14 = valid14 || _valid7;const _errs76 = errors;if(data20 !== null){const err25 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid7 = _errs76 === errors;valid14 = valid14 || _valid7;if(!valid14){const err26 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}var valid0 = _errs71 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_how !== undefined){let data21 = data.cost_how;const _errs78 = errors;if((typeof data21 !== "string") && (data21 !== null)){validate445.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/type",keyword:"type",params:{type: schema320.properties.cost_how.type},message:"must be string,null"}];return false;}if(errors === _errs78){if(typeof data21 === "string"){if(func1(data21) < 1){validate445.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs78 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_step !== undefined){let data22 = data.cost_step;const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;let valid17 = false;const _errs83 = errors;if((!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) && (data22 !== null)){const err27 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.cost_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid8 = _errs83 === errors;valid17 = valid17 || _valid8;const _errs85 = errors;if(typeof data22 !== "bigint"){const err28 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid8 = _errs85 === errors;valid17 = valid17 || _valid8;if(!valid17){const err29 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var valid16 = _errs81 === errors;if(valid16){if(typeof data22 === "bigint"){if(data22 < 1){validate445.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs80){if((typeof data22 == "number") && (isFinite(data22))){if(data22 < 1 || isNaN(data22)){validate445.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs80 === errors;}else {var valid0 = true;}if(valid0){if(data.origin !== undefined){let data23 = data.origin;const _errs86 = errors;const _errs87 = errors;let valid18 = false;const _errs88 = errors;if(!(validate332(data23, {instancePath:instancePath+"/origin",parentData:data,parentDataProperty:"origin",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate332.errors : vErrors.concat(validate332.errors);errors = vErrors.length;}var _valid9 = _errs88 === errors;valid18 = valid18 || _valid9;const _errs89 = errors;if(data23 !== null){const err30 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid9 = _errs89 === errors;valid18 = valid18 || _valid9;if(!valid18){const err31 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var valid0 = _errs86 === errors;}else {var valid0 = true;}if(valid0){if(data.labels !== undefined){let data24 = data.labels;const _errs91 = errors;if(errors === _errs91){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){for(const key0 in data24){const _errs94 = errors;if(typeof data24[key0] !== "string"){validate445.errors = [{instancePath:instancePath+"/labels/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid19 = _errs94 === errors;if(!valid19){break;}}}else {validate445.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs91 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){let data26 = data.name;const _errs96 = errors;if((typeof data26 !== "string") && (data26 !== null)){validate445.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: schema320.properties.name.type},message:"must be string,null"}];return false;}var valid0 = _errs96 === errors;}else {var valid0 = true;}if(valid0){if(data.resources !== undefined){let data27 = data.resources;const _errs98 = errors;if(errors === _errs98){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.cpu !== undefined){let data28 = data27.cpu;const _errs100 = errors;const _errs101 = errors;const _errs102 = errors;let valid22 = false;const _errs103 = errors;if((!((typeof data28 == "number") && (isFinite(data28)))) && (data28 !== null)){const err32 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.cpu.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid10 = _errs103 === errors;valid22 = valid22 || _valid10;const _errs105 = errors;if(typeof data28 !== "bigint"){const err33 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid10 = _errs105 === errors;valid22 = valid22 || _valid10;if(!valid22){const err34 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}var valid21 = _errs101 === errors;if(valid21){if(typeof data28 === "bigint"){if(data28 <= 0){validate445.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs100){if((typeof data28 == "number") && (isFinite(data28))){if(data28 <= 0 || isNaN(data28)){validate445.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid20 = _errs100 === errors;}else {var valid20 = true;}if(valid20){if(data27.memory_mib !== undefined){let data29 = data27.memory_mib;const _errs106 = errors;const _errs107 = errors;const _errs108 = errors;let valid24 = false;const _errs109 = errors;if((!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))) && (data29 !== null)){const err35 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.memory_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid11 = _errs109 === errors;valid24 = valid24 || _valid11;const _errs111 = errors;if(typeof data29 !== "bigint"){const err36 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid11 = _errs111 === errors;valid24 = valid24 || _valid11;if(!valid24){const err37 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs108;if(vErrors !== null){if(_errs108){vErrors.length = _errs108;}else {vErrors = null;}}}var valid23 = _errs107 === errors;if(valid23){if(typeof data29 === "bigint"){if(data29 < 1){validate445.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs106){if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 1 || isNaN(data29)){validate445.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs106 === errors;}else {var valid20 = true;}if(valid20){if(data27.disk_mib !== undefined){let data30 = data27.disk_mib;const _errs112 = errors;const _errs113 = errors;const _errs114 = errors;let valid26 = false;const _errs115 = errors;if((!(((typeof data30 == "number") && (!(data30 % 1) && !isNaN(data30))) && (isFinite(data30)))) && (data30 !== null)){const err38 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.disk_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid12 = _errs115 === errors;valid26 = valid26 || _valid12;const _errs117 = errors;if(typeof data30 !== "bigint"){const err39 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid12 = _errs117 === errors;valid26 = valid26 || _valid12;if(!valid26){const err40 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}}var valid25 = _errs113 === errors;if(valid25){if(typeof data30 === "bigint"){if(data30 < 1){validate445.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs112){if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 1 || isNaN(data30)){validate445.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs112 === errors;}else {var valid20 = true;}}}}else {validate445.errors = [{instancePath:instancePath+"/resources",schemaPath:"#/properties/resources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs98 === errors;}else {var valid0 = true;}if(valid0){if(data.image !== undefined){let data31 = data.image;const _errs118 = errors;const _errs119 = errors;let valid27 = false;const _errs120 = errors;if(!(validate338(data31, {instancePath:instancePath+"/image",parentData:data,parentDataProperty:"image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate338.errors : vErrors.concat(validate338.errors);errors = vErrors.length;}var _valid13 = _errs120 === errors;valid27 = valid27 || _valid13;if(_valid13){var props2 = {};props2.value = true;props2.source = true;}const _errs121 = errors;if(data31 !== null){const err41 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid13 = _errs121 === errors;valid27 = valid27 || _valid13;if(!valid27){const err42 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}var valid0 = _errs118 === errors;}else {var valid0 = true;}if(valid0){if(data.image_setup !== undefined){let data32 = data.image_setup;const _errs123 = errors;const _errs124 = errors;if(errors === _errs124){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){let missing1;if(((data32.provider === undefined) && (missing1 = "provider")) || ((data32.duration_ms === undefined) && (missing1 = "duration_ms"))){validate445.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data32.provider !== undefined){let data33 = data32.provider;const _errs126 = errors;if(errors === _errs126){if(typeof data33 === "string"){if(func1(data33) < 1){validate445.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate445.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid29 = _errs126 === errors;}else {var valid29 = true;}if(valid29){if(data32.duration_ms !== undefined){let data34 = data32.duration_ms;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;let valid31 = false;const _errs131 = errors;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err43 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid14 = _errs131 === errors;valid31 = valid31 || _valid14;const _errs133 = errors;if(typeof data34 !== "bigint"){const err44 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid14 = _errs133 === errors;valid31 = valid31 || _valid14;if(!valid31){const err45 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}var valid30 = _errs129 === errors;if(valid30){if(typeof data34 === "bigint"){if(data34 < 0){validate445.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs128){if((typeof data34 == "number") && (isFinite(data34))){if(data34 < 0 || isNaN(data34)){validate445.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid29 = _errs128 === errors;}else {var valid29 = true;}}}}else {validate445.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs123 === errors;}else {var valid0 = true;}if(valid0){if(data.usage !== undefined){let data35 = data.usage;const _errs134 = errors;const _errs135 = errors;let valid32 = false;const _errs136 = errors;if(errors === _errs136){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing2;if(((((((data35.provider === undefined) && (missing2 = "provider")) || ((data35.started === undefined) && (missing2 = "started"))) || ((data35.region === undefined) && (missing2 = "region"))) || ((data35.size === undefined) && (missing2 = "size"))) || ((data35.intervals === undefined) && (missing2 = "intervals"))) || ((data35.creations === undefined) && (missing2 = "creations"))){const err46 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {const _errs138 = errors;for(const key1 in data35){if(!(func237.call(schema320.properties.usage.anyOf[0].properties, key1))){const err47 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;break;}}if(_errs138 === errors){if(data35.provider !== undefined){let data36 = data35.provider;const _errs139 = errors;if(errors === _errs139){if(typeof data36 === "string"){if(!pattern42.test(data36)){const err48 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}var valid33 = _errs139 === errors;}else {var valid33 = true;}if(valid33){if(data35.class !== undefined){let data37 = data35.class;const _errs141 = errors;const _errs143 = errors;let valid34 = true;const _errs144 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing3;if((data37.source === undefined) && (missing3 = "source")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data37.source !== undefined){if("unknown" !== data37.source){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}var _valid16 = _errs144 === errors;errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}let ifClause0;if(_valid16){const _errs147 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(data37.name !== null){const err52 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid16 = _errs147 === errors;valid34 = _valid16;if(valid34){var props3 = {};props3.name = true;props3.source = true;}ifClause0 = "then";}else {const _errs150 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(typeof data37.name !== "string"){const err53 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}var _valid16 = _errs150 === errors;valid34 = _valid16;if(valid34){if(props3 !== true){props3 = props3 || {};props3.name = true;}}ifClause0 = "else";}if(!valid34){const err54 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(errors === _errs141){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing4;if(((((data37.name === undefined) && (missing4 = "name")) || ((data37.source === undefined) && (missing4 = "source"))) || ((data37.observed_at === undefined) && (missing4 = "observed_at"))) || ((data37.how === undefined) && (missing4 = "how"))){const err55 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(props3 !== true){props3 = props3 || {};props3.name = true;props3.source = true;props3.observed_at = true;props3.how = true;}if(data37.name !== undefined){let data41 = data37.name;const _errs153 = errors;if((typeof data41 !== "string") && (data41 !== null)){const err56 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.class.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors === _errs153){if(typeof data41 === "string"){if(func1(data41) < 1){const err57 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var valid39 = _errs153 === errors;}else {var valid39 = true;}if(valid39){if(data37.source !== undefined){let data42 = data37.source;const _errs155 = errors;if(typeof data42 !== "string"){const err58 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(!((((((data42 === "provider") || (data42 === "published")) || (data42 === "measured")) || (data42 === "recorded")) || (data42 === "calculated")) || (data42 === "unknown"))){const err59 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid39 = _errs155 === errors;}else {var valid39 = true;}if(valid39){if(data37.observed_at !== undefined){let data43 = data37.observed_at;const _errs158 = errors;const _errs159 = errors;if(errors === _errs159){if(errors === _errs159){if(typeof data43 === "string"){if(!pattern78.test(data43)){const err60 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(!(formats0.validate(data43))){const err61 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var valid39 = _errs158 === errors;}else {var valid39 = true;}if(valid39){if(data37.how !== undefined){let data44 = data37.how;const _errs161 = errors;const _errs162 = errors;if(errors === _errs162){if(typeof data44 === "string"){if(func1(data44) < 1){const err63 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}var valid39 = _errs161 === errors;}else {var valid39 = true;}}}}}}else {const err65 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid33 = _errs141 === errors;}else {var valid33 = true;}if(valid33){if(data35.started !== undefined){let data45 = data35.started;const _errs164 = errors;const _errs166 = errors;let valid43 = true;const _errs167 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing5;if((data45.source === undefined) && (missing5 = "source")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data45.source !== undefined){if("unknown" !== data45.source){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}var _valid17 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}let ifClause1;if(_valid17){const _errs170 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){if(data45.at !== null){const err68 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/then/properties/at/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid17 = _errs170 === errors;valid43 = _valid17;if(valid43){var props4 = {};props4.at = true;props4.source = true;}ifClause1 = "then";}else {const _errs173 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){let data48 = data45.at;const _errs175 = errors;if(errors === _errs175){if(errors === _errs175){if(typeof data48 === "string"){if(!pattern78.test(data48)){const err69 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(!(formats0.validate(data48))){const err70 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}var _valid17 = _errs173 === errors;valid43 = _valid17;if(valid43){if(props4 !== true){props4 = props4 || {};props4.at = true;}}ifClause1 = "else";}if(!valid43){const err72 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors === _errs164){if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing6;if(((((data45.at === undefined) && (missing6 = "at")) || ((data45.source === undefined) && (missing6 = "source"))) || ((data45.observed_at === undefined) && (missing6 = "observed_at"))) || ((data45.how === undefined) && (missing6 = "how"))){const err73 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(props4 !== true){props4 = props4 || {};props4.at = true;props4.source = true;props4.observed_at = true;props4.how = true;}if(data45.at !== undefined){let data49 = data45.at;const _errs177 = errors;if((typeof data49 !== "string") && (data49 !== null)){const err74 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/properties/at/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.started.properties.at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid49 = _errs177 === errors;}else {var valid49 = true;}if(valid49){if(data45.source !== undefined){let data50 = data45.source;const _errs179 = errors;if(typeof data50 !== "string"){const err75 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(!((((((data50 === "provider") || (data50 === "published")) || (data50 === "measured")) || (data50 === "recorded")) || (data50 === "calculated")) || (data50 === "unknown"))){const err76 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var valid49 = _errs179 === errors;}else {var valid49 = true;}if(valid49){if(data45.observed_at !== undefined){let data51 = data45.observed_at;const _errs182 = errors;const _errs183 = errors;if(errors === _errs183){if(errors === _errs183){if(typeof data51 === "string"){if(!pattern78.test(data51)){const err77 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(!(formats0.validate(data51))){const err78 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var valid49 = _errs182 === errors;}else {var valid49 = true;}if(valid49){if(data45.how !== undefined){let data52 = data45.how;const _errs185 = errors;const _errs186 = errors;if(errors === _errs186){if(typeof data52 === "string"){if(func1(data52) < 1){const err80 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var valid49 = _errs185 === errors;}else {var valid49 = true;}}}}}}else {const err82 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid33 = _errs164 === errors;}else {var valid33 = true;}if(valid33){if(data35.region !== undefined){let data53 = data35.region;const _errs188 = errors;const _errs190 = errors;let valid53 = true;const _errs191 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing7;if((data53.source === undefined) && (missing7 = "source")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data53.source !== undefined){if("unknown" !== data53.source){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}}var _valid18 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}let ifClause2;if(_valid18){const _errs194 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(data53.name !== null){const err85 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}var _valid18 = _errs194 === errors;valid53 = _valid18;if(valid53){var props5 = {};props5.name = true;props5.source = true;}ifClause2 = "then";}else {const _errs197 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(typeof data53.name !== "string"){const err86 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}var _valid18 = _errs197 === errors;valid53 = _valid18;if(valid53){if(props5 !== true){props5 = props5 || {};props5.name = true;}}ifClause2 = "else";}if(!valid53){const err87 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(errors === _errs188){if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing8;if(((((data53.name === undefined) && (missing8 = "name")) || ((data53.source === undefined) && (missing8 = "source"))) || ((data53.observed_at === undefined) && (missing8 = "observed_at"))) || ((data53.how === undefined) && (missing8 = "how"))){const err88 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(props5 !== true){props5 = props5 || {};props5.name = true;props5.source = true;props5.observed_at = true;props5.how = true;}if(data53.name !== undefined){let data57 = data53.name;const _errs200 = errors;if((typeof data57 !== "string") && (data57 !== null)){const err89 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.region.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(errors === _errs200){if(typeof data57 === "string"){if(func1(data57) < 1){const err90 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}var valid58 = _errs200 === errors;}else {var valid58 = true;}if(valid58){if(data53.source !== undefined){let data58 = data53.source;const _errs202 = errors;if(typeof data58 !== "string"){const err91 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(!((((((data58 === "provider") || (data58 === "published")) || (data58 === "measured")) || (data58 === "recorded")) || (data58 === "calculated")) || (data58 === "unknown"))){const err92 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid58 = _errs202 === errors;}else {var valid58 = true;}if(valid58){if(data53.observed_at !== undefined){let data59 = data53.observed_at;const _errs205 = errors;const _errs206 = errors;if(errors === _errs206){if(errors === _errs206){if(typeof data59 === "string"){if(!pattern78.test(data59)){const err93 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(!(formats0.validate(data59))){const err94 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}var valid58 = _errs205 === errors;}else {var valid58 = true;}if(valid58){if(data53.how !== undefined){let data60 = data53.how;const _errs208 = errors;const _errs209 = errors;if(errors === _errs209){if(typeof data60 === "string"){if(func1(data60) < 1){const err96 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var valid58 = _errs208 === errors;}else {var valid58 = true;}}}}}}else {const err98 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var valid33 = _errs188 === errors;}else {var valid33 = true;}if(valid33){if(data35.size !== undefined){let data61 = data35.size;const _errs211 = errors;const _errs213 = errors;const _errs214 = errors;let valid63 = true;const _errs215 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing9;if((data61.gpu === undefined) && (missing9 = "gpu")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}var _valid19 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid19){const _errs216 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing10;if((data61.gpu_model === undefined) && (missing10 = "gpu_model")){const err100 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}var _valid19 = _errs216 === errors;valid63 = _valid19;}if(!valid63){const err101 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid62 = _errs213 === errors;if(valid62){const _errs217 = errors;const _errs218 = errors;let valid64 = true;const _errs219 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing11;if((data61.gpu_model === undefined) && (missing11 = "gpu_model")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}var _valid20 = _errs219 === errors;errors = _errs218;if(vErrors !== null){if(_errs218){vErrors.length = _errs218;}else {vErrors = null;}}if(_valid20){const _errs220 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing12;if((data61.gpu === undefined) && (missing12 = "gpu")){const err103 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var _valid20 = _errs220 === errors;valid64 = _valid20;}if(!valid64){const err104 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid62 = _errs217 === errors;if(valid62){const _errs221 = errors;let valid65 = true;const _errs222 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing13;if((data61.source === undefined) && (missing13 = "source")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data61.source !== undefined){if("unknown" !== data61.source){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}}var _valid21 = _errs222 === errors;errors = _errs221;if(vErrors !== null){if(_errs221){vErrors.length = _errs221;}else {vErrors = null;}}let ifClause3;if(_valid21){const _errs225 = errors;const _errs226 = errors;const _errs227 = errors;const _errs228 = errors;let valid69 = false;const _errs229 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing14;if((data61.cpu === undefined) && (missing14 = "cpu")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}var _valid22 = _errs229 === errors;valid69 = valid69 || _valid22;const _errs230 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing15;if((data61.memory_mib === undefined) && (missing15 = "memory_mib")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}var _valid22 = _errs230 === errors;valid69 = valid69 || _valid22;const _errs231 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing16;if((data61.disk_mib === undefined) && (missing16 = "disk_mib")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid22 = _errs231 === errors;valid69 = valid69 || _valid22;const _errs232 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing17;if((data61.gpu === undefined) && (missing17 = "gpu")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid22 = _errs232 === errors;valid69 = valid69 || _valid22;const _errs233 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing18;if((data61.gpu_model === undefined) && (missing18 = "gpu_model")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}var _valid22 = _errs233 === errors;valid69 = valid69 || _valid22;if(!valid69){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}}var valid68 = _errs227 === errors;if(valid68){const err113 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}}var _valid21 = _errs225 === errors;valid65 = _valid21;ifClause3 = "then";}else {const _errs234 = errors;const _errs235 = errors;let valid70 = false;const _errs236 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing19;if((data61.cpu === undefined) && (missing19 = "cpu")){const err114 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing19},message:"must have required property '"+missing19+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid23 = _errs236 === errors;valid70 = valid70 || _valid23;const _errs237 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing20;if((data61.memory_mib === undefined) && (missing20 = "memory_mib")){const err115 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing20},message:"must have required property '"+missing20+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var _valid23 = _errs237 === errors;valid70 = valid70 || _valid23;const _errs238 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing21;if((data61.disk_mib === undefined) && (missing21 = "disk_mib")){const err116 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing21},message:"must have required property '"+missing21+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var _valid23 = _errs238 === errors;valid70 = valid70 || _valid23;const _errs239 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing22;if((data61.gpu === undefined) && (missing22 = "gpu")){const err117 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing22},message:"must have required property '"+missing22+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var _valid23 = _errs239 === errors;valid70 = valid70 || _valid23;if(!valid70){const err118 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs235;if(vErrors !== null){if(_errs235){vErrors.length = _errs235;}else {vErrors = null;}}}var _valid21 = _errs234 === errors;valid65 = _valid21;ifClause3 = "else";}if(!valid65){const err119 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}if(errors === _errs211){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing23;if((((data61.source === undefined) && (missing23 = "source")) || ((data61.observed_at === undefined) && (missing23 = "observed_at"))) || ((data61.how === undefined) && (missing23 = "how"))){const err120 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/required",keyword:"required",params:{missingProperty: missing23},message:"must have required property '"+missing23+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data61.cpu !== undefined){let data63 = data61.cpu;const _errs240 = errors;const _errs241 = errors;const _errs242 = errors;let valid73 = false;const _errs243 = errors;if(!((typeof data63 == "number") && (isFinite(data63)))){const err121 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid24 = _errs243 === errors;valid73 = valid73 || _valid24;const _errs245 = errors;if(typeof data63 !== "bigint"){const err122 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var _valid24 = _errs245 === errors;valid73 = valid73 || _valid24;if(!valid73){const err123 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {errors = _errs242;if(vErrors !== null){if(_errs242){vErrors.length = _errs242;}else {vErrors = null;}}}var valid72 = _errs241 === errors;if(valid72){if(typeof data63 === "bigint"){if(data63 <= 0){const err124 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}if(errors === _errs240){if((typeof data63 == "number") && (isFinite(data63))){if(data63 <= 0 || isNaN(data63)){const err125 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}var valid71 = _errs240 === errors;}else {var valid71 = true;}if(valid71){if(data61.memory_mib !== undefined){let data64 = data61.memory_mib;const _errs246 = errors;const _errs247 = errors;const _errs248 = errors;let valid75 = false;const _errs249 = errors;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){const err126 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid25 = _errs249 === errors;valid75 = valid75 || _valid25;const _errs251 = errors;if(typeof data64 !== "bigint"){const err127 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}var _valid25 = _errs251 === errors;valid75 = valid75 || _valid25;if(!valid75){const err128 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs248;if(vErrors !== null){if(_errs248){vErrors.length = _errs248;}else {vErrors = null;}}}var valid74 = _errs247 === errors;if(valid74){if(typeof data64 === "bigint"){if(data64 < 1){const err129 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}if(errors === _errs246){if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 1 || isNaN(data64)){const err130 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}var valid71 = _errs246 === errors;}else {var valid71 = true;}if(valid71){if(data61.disk_mib !== undefined){let data65 = data61.disk_mib;const _errs252 = errors;const _errs253 = errors;const _errs254 = errors;let valid77 = false;const _errs255 = errors;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){const err131 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid26 = _errs255 === errors;valid77 = valid77 || _valid26;const _errs257 = errors;if(typeof data65 !== "bigint"){const err132 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid26 = _errs257 === errors;valid77 = valid77 || _valid26;if(!valid77){const err133 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs254;if(vErrors !== null){if(_errs254){vErrors.length = _errs254;}else {vErrors = null;}}}var valid76 = _errs253 === errors;if(valid76){if(typeof data65 === "bigint"){if(data65 < 1){const err134 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}if(errors === _errs252){if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 1 || isNaN(data65)){const err135 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}var valid71 = _errs252 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu !== undefined){let data66 = data61.gpu;const _errs258 = errors;const _errs259 = errors;const _errs260 = errors;let valid79 = false;const _errs261 = errors;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){const err136 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid27 = _errs261 === errors;valid79 = valid79 || _valid27;const _errs263 = errors;if(typeof data66 !== "bigint"){const err137 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var _valid27 = _errs263 === errors;valid79 = valid79 || _valid27;if(!valid79){const err138 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}var valid78 = _errs259 === errors;if(valid78){if(typeof data66 === "bigint"){if(data66 < 1){const err139 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}if(errors === _errs258){if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 1 || isNaN(data66)){const err140 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}var valid71 = _errs258 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu_model !== undefined){let data67 = data61.gpu_model;const _errs264 = errors;if(errors === _errs264){if(typeof data67 === "string"){if(!pattern219.test(data67)){const err141 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}else {const err142 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid71 = _errs264 === errors;}else {var valid71 = true;}if(valid71){if(data61.source !== undefined){let data68 = data61.source;const _errs266 = errors;if(typeof data68 !== "string"){const err143 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(!((((((data68 === "provider") || (data68 === "published")) || (data68 === "measured")) || (data68 === "recorded")) || (data68 === "calculated")) || (data68 === "unknown"))){const err144 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid71 = _errs266 === errors;}else {var valid71 = true;}if(valid71){if(data61.observed_at !== undefined){let data69 = data61.observed_at;const _errs269 = errors;const _errs270 = errors;if(errors === _errs270){if(errors === _errs270){if(typeof data69 === "string"){if(!pattern78.test(data69)){const err145 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(!(formats0.validate(data69))){const err146 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}var valid71 = _errs269 === errors;}else {var valid71 = true;}if(valid71){if(data61.how !== undefined){let data70 = data61.how;const _errs272 = errors;const _errs273 = errors;if(errors === _errs273){if(typeof data70 === "string"){if(func1(data70) < 1){const err148 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}else {const err149 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}var valid71 = _errs272 === errors;}else {var valid71 = true;}}}}}}}}}}else {const err150 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid33 = _errs211 === errors;}else {var valid33 = true;}if(valid33){if(data35.intervals !== undefined){let data71 = data35.intervals;const _errs275 = errors;if(errors === _errs275){if(Array.isArray(data71)){if(data71.length < 1){const err151 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {var valid83 = true;const len0 = data71.length;for(let i0=0; i0<len0; i0++){let data72 = data71[i0];const _errs277 = errors;const _errs279 = errors;let valid84 = true;const _errs280 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing24;if((data72.source === undefined) && (missing24 = "source")){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {if(data72.source !== undefined){if("unknown" !== data72.source){const err153 = {};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}}var _valid28 = _errs280 === errors;errors = _errs279;if(vErrors !== null){if(_errs279){vErrors.length = _errs279;}else {vErrors = null;}}let ifClause4;if(_valid28){const _errs283 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){if(data72.seconds !== null){const err154 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}var _valid28 = _errs283 === errors;valid84 = _valid28;if(valid84){var props6 = {};props6.seconds = true;props6.source = true;}ifClause4 = "then";}else {const _errs286 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){let data75 = data72.seconds;const _errs289 = errors;let valid90 = false;const _errs290 = errors;if((!((typeof data75 == "number") && (isFinite(data75)))) && (!(data75 && typeof data75 == "object" && !Array.isArray(data75)))){const err155 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.intervals.items.else.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid29 = _errs290 === errors;valid90 = valid90 || _valid29;const _errs292 = errors;if(typeof data75 !== "bigint"){const err156 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid29 = _errs292 === errors;valid90 = valid90 || _valid29;if(!valid90){const err157 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs289;if(vErrors !== null){if(_errs289){vErrors.length = _errs289;}else {vErrors = null;}}}}}var _valid28 = _errs286 === errors;valid84 = _valid28;if(valid84){if(props6 !== true){props6 = props6 || {};props6.seconds = true;}}ifClause4 = "else";}if(!valid84){const err158 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(errors === _errs277){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing25;if((((((data72.state === undefined) && (missing25 = "state")) || ((data72.seconds === undefined) && (missing25 = "seconds"))) || ((data72.source === undefined) && (missing25 = "source"))) || ((data72.observed_at === undefined) && (missing25 = "observed_at"))) || ((data72.how === undefined) && (missing25 = "how"))){const err159 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/required",keyword:"required",params:{missingProperty: missing25},message:"must have required property '"+missing25+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(props6 !== true){props6 = props6 || {};props6.size = true;props6.snapshot_storage = true;props6.state = true;props6.seconds = true;props6.source = true;props6.observed_at = true;props6.how = true;}if(data72.size !== undefined){const _errs293 = errors;if(!(validate340(data72.size, {instancePath:instancePath+"/usage/intervals/" + i0+"/size",parentData:data72,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate340.errors : vErrors.concat(validate340.errors);errors = vErrors.length;}var valid91 = _errs293 === errors;}else {var valid91 = true;}if(valid91){if(data72.snapshot_storage !== undefined){const _errs294 = errors;if(!(validate342(data72.snapshot_storage, {instancePath:instancePath+"/usage/intervals/" + i0+"/snapshot_storage",parentData:data72,parentDataProperty:"snapshot_storage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate342.errors : vErrors.concat(validate342.errors);errors = vErrors.length;}var valid91 = _errs294 === errors;}else {var valid91 = true;}if(valid91){if(data72.state !== undefined){let data78 = data72.state;const _errs295 = errors;if(!(((data78 === "running") || (data78 === "paused")) || (data78 === "stopped"))){const err160 = {instancePath:instancePath+"/usage/intervals/" + i0+"/state",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/state/enum",keyword:"enum",params:{allowedValues: schema320.properties.usage.anyOf[0].properties.intervals.items.properties.state.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var valid91 = _errs295 === errors;}else {var valid91 = true;}if(valid91){if(data72.seconds !== undefined){let data79 = data72.seconds;const _errs296 = errors;const _errs297 = errors;let valid92 = false;const _errs298 = errors;const _errs299 = errors;const _errs300 = errors;let valid94 = false;const _errs301 = errors;if(!((typeof data79 == "number") && (isFinite(data79)))){const err161 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}var _valid31 = _errs301 === errors;valid94 = valid94 || _valid31;const _errs303 = errors;if(typeof data79 !== "bigint"){const err162 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var _valid31 = _errs303 === errors;valid94 = valid94 || _valid31;if(!valid94){const err163 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}var valid93 = _errs299 === errors;if(valid93){if(typeof data79 === "bigint"){if(data79 < 0){const err164 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}if(errors === _errs298){if((typeof data79 == "number") && (isFinite(data79))){if(data79 < 0 || isNaN(data79)){const err165 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}var _valid30 = _errs298 === errors;valid92 = valid92 || _valid30;const _errs304 = errors;const _errs305 = errors;if(errors === _errs305){if(data79 && typeof data79 == "object" && !Array.isArray(data79)){let missing26;if(((data79.low === undefined) && (missing26 = "low")) || ((data79.high === undefined) && (missing26 = "high"))){const err166 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/required",keyword:"required",params:{missingProperty: missing26},message:"must have required property '"+missing26+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {if(data79.low !== undefined){let data80 = data79.low;const _errs307 = errors;const _errs308 = errors;const _errs309 = errors;let valid98 = false;const _errs310 = errors;if(!((typeof data80 == "number") && (isFinite(data80)))){const err167 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}var _valid32 = _errs310 === errors;valid98 = valid98 || _valid32;const _errs312 = errors;if(typeof data80 !== "bigint"){const err168 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid32 = _errs312 === errors;valid98 = valid98 || _valid32;if(!valid98){const err169 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var valid97 = _errs308 === errors;if(valid97){if(typeof data80 === "bigint"){if(data80 < 0){const err170 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}if(errors === _errs307){if((typeof data80 == "number") && (isFinite(data80))){if(data80 < 0 || isNaN(data80)){const err171 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}var valid96 = _errs307 === errors;}else {var valid96 = true;}if(valid96){if(data79.high !== undefined){let data81 = data79.high;const _errs313 = errors;const _errs314 = errors;const _errs315 = errors;let valid100 = false;const _errs316 = errors;if(!((typeof data81 == "number") && (isFinite(data81)))){const err172 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var _valid33 = _errs316 === errors;valid100 = valid100 || _valid33;const _errs318 = errors;if(typeof data81 !== "bigint"){const err173 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var _valid33 = _errs318 === errors;valid100 = valid100 || _valid33;if(!valid100){const err174 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs315;if(vErrors !== null){if(_errs315){vErrors.length = _errs315;}else {vErrors = null;}}}var valid99 = _errs314 === errors;if(valid99){if(typeof data81 === "bigint"){if(data81 < 0){const err175 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}if(errors === _errs313){if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err176 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}var valid96 = _errs313 === errors;}else {var valid96 = true;}}}}else {const err177 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}var _valid30 = _errs304 === errors;valid92 = valid92 || _valid30;if(_valid30){var props8 = {};props8.low = true;props8.high = true;}const _errs319 = errors;if(data79 !== null){const err178 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var _valid30 = _errs319 === errors;valid92 = valid92 || _valid30;if(!valid92){const err179 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs297;if(vErrors !== null){if(_errs297){vErrors.length = _errs297;}else {vErrors = null;}}}var valid91 = _errs296 === errors;}else {var valid91 = true;}if(valid91){if(data72.source !== undefined){let data82 = data72.source;const _errs321 = errors;if(typeof data82 !== "string"){const err180 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(!((((((data82 === "provider") || (data82 === "published")) || (data82 === "measured")) || (data82 === "recorded")) || (data82 === "calculated")) || (data82 === "unknown"))){const err181 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var valid91 = _errs321 === errors;}else {var valid91 = true;}if(valid91){if(data72.observed_at !== undefined){let data83 = data72.observed_at;const _errs324 = errors;const _errs325 = errors;if(errors === _errs325){if(errors === _errs325){if(typeof data83 === "string"){if(!pattern78.test(data83)){const err182 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {if(!(formats0.validate(data83))){const err183 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}var valid91 = _errs324 === errors;}else {var valid91 = true;}if(valid91){if(data72.how !== undefined){let data84 = data72.how;const _errs327 = errors;const _errs328 = errors;if(errors === _errs328){if(typeof data84 === "string"){if(func1(data84) < 1){const err185 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}var valid91 = _errs327 === errors;}else {var valid91 = true;}}}}}}}}}else {const err187 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}var valid83 = _errs277 === errors;if(!valid83){break;}}}}else {const err188 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}var valid33 = _errs275 === errors;}else {var valid33 = true;}if(valid33){if(data35.creations !== undefined){let data85 = data35.creations;const _errs330 = errors;const _errs332 = errors;let valid104 = true;const _errs333 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing27;if((data85.source === undefined) && (missing27 = "source")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {if(data85.source !== undefined){if("unknown" !== data85.source){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}}var _valid34 = _errs333 === errors;errors = _errs332;if(vErrors !== null){if(_errs332){vErrors.length = _errs332;}else {vErrors = null;}}let ifClause5;if(_valid34){const _errs336 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){if(data85.count !== null){const err191 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/then/properties/count/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}var _valid34 = _errs336 === errors;valid104 = _valid34;if(valid104){var props9 = {};props9.count = true;props9.source = true;}ifClause5 = "then";}else {const _errs339 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){let data88 = data85.count;const _errs342 = errors;let valid110 = false;const _errs343 = errors;if(!(((typeof data88 == "number") && (!(data88 % 1) && !isNaN(data88))) && (isFinite(data88)))){const err192 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid35 = _errs343 === errors;valid110 = valid110 || _valid35;const _errs345 = errors;if(typeof data88 !== "bigint"){const err193 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid35 = _errs345 === errors;valid110 = valid110 || _valid35;if(!valid110){const err194 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs342;if(vErrors !== null){if(_errs342){vErrors.length = _errs342;}else {vErrors = null;}}}}}var _valid34 = _errs339 === errors;valid104 = _valid34;if(valid104){if(props9 !== true){props9 = props9 || {};props9.count = true;}}ifClause5 = "else";}if(!valid104){const err195 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(errors === _errs330){if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing28;if(((((data85.count === undefined) && (missing28 = "count")) || ((data85.source === undefined) && (missing28 = "source"))) || ((data85.observed_at === undefined) && (missing28 = "observed_at"))) || ((data85.how === undefined) && (missing28 = "how"))){const err196 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/required",keyword:"required",params:{missingProperty: missing28},message:"must have required property '"+missing28+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(props9 !== true){props9 = props9 || {};props9.count = true;props9.source = true;props9.observed_at = true;props9.how = true;}if(data85.count !== undefined){let data89 = data85.count;const _errs346 = errors;const _errs347 = errors;const _errs348 = errors;let valid113 = false;const _errs349 = errors;if((!(((typeof data89 == "number") && (!(data89 % 1) && !isNaN(data89))) && (isFinite(data89)))) && (data89 !== null)){const err197 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.creations.properties.count.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var _valid36 = _errs349 === errors;valid113 = valid113 || _valid36;const _errs351 = errors;if(typeof data89 !== "bigint"){const err198 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var _valid36 = _errs351 === errors;valid113 = valid113 || _valid36;if(!valid113){const err199 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}else {errors = _errs348;if(vErrors !== null){if(_errs348){vErrors.length = _errs348;}else {vErrors = null;}}}var valid112 = _errs347 === errors;if(valid112){if(typeof data89 === "bigint"){if(data89 < 0){const err200 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}if(errors === _errs346){if((typeof data89 == "number") && (isFinite(data89))){if(data89 < 0 || isNaN(data89)){const err201 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}var valid111 = _errs346 === errors;}else {var valid111 = true;}if(valid111){if(data85.source !== undefined){let data90 = data85.source;const _errs352 = errors;if(typeof data90 !== "string"){const err202 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(!((((((data90 === "provider") || (data90 === "published")) || (data90 === "measured")) || (data90 === "recorded")) || (data90 === "calculated")) || (data90 === "unknown"))){const err203 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var valid111 = _errs352 === errors;}else {var valid111 = true;}if(valid111){if(data85.observed_at !== undefined){let data91 = data85.observed_at;const _errs355 = errors;const _errs356 = errors;if(errors === _errs356){if(errors === _errs356){if(typeof data91 === "string"){if(!pattern78.test(data91)){const err204 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(!(formats0.validate(data91))){const err205 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}}else {const err206 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}var valid111 = _errs355 === errors;}else {var valid111 = true;}if(valid111){if(data85.how !== undefined){let data92 = data85.how;const _errs358 = errors;const _errs359 = errors;if(errors === _errs359){if(typeof data92 === "string"){if(func1(data92) < 1){const err207 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}else {const err208 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var valid111 = _errs358 === errors;}else {var valid111 = true;}}}}}}else {const err209 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}var valid33 = _errs330 === errors;}else {var valid33 = true;}if(valid33){if(data35.active_cpu !== undefined){let data93 = data35.active_cpu;const _errs361 = errors;const _errs363 = errors;let valid117 = true;const _errs364 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing29;if((data93.source === undefined) && (missing29 = "source")){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(data93.source !== undefined){if("unknown" !== data93.source){const err211 = {};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}}var _valid37 = _errs364 === errors;errors = _errs363;if(vErrors !== null){if(_errs363){vErrors.length = _errs363;}else {vErrors = null;}}let ifClause6;if(_valid37){const _errs367 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){if(data93.seconds !== null){const err212 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}var _valid37 = _errs367 === errors;valid117 = _valid37;if(valid117){var props10 = {};props10.seconds = true;props10.source = true;}ifClause6 = "then";}else {const _errs370 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){let data96 = data93.seconds;const _errs373 = errors;let valid123 = false;const _errs374 = errors;if(!((typeof data96 == "number") && (isFinite(data96)))){const err213 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid38 = _errs374 === errors;valid123 = valid123 || _valid38;const _errs376 = errors;if(typeof data96 !== "bigint"){const err214 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var _valid38 = _errs376 === errors;valid123 = valid123 || _valid38;if(!valid123){const err215 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}else {errors = _errs373;if(vErrors !== null){if(_errs373){vErrors.length = _errs373;}else {vErrors = null;}}}}}var _valid37 = _errs370 === errors;valid117 = _valid37;if(valid117){if(props10 !== true){props10 = props10 || {};props10.seconds = true;}}ifClause6 = "else";}if(!valid117){const err216 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(errors === _errs361){if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing30;if(((((data93.seconds === undefined) && (missing30 = "seconds")) || ((data93.source === undefined) && (missing30 = "source"))) || ((data93.observed_at === undefined) && (missing30 = "observed_at"))) || ((data93.how === undefined) && (missing30 = "how"))){const err217 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/required",keyword:"required",params:{missingProperty: missing30},message:"must have required property '"+missing30+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {if(props10 !== true){props10 = props10 || {};props10.seconds = true;props10.source = true;props10.observed_at = true;props10.how = true;}if(data93.seconds !== undefined){let data97 = data93.seconds;const _errs377 = errors;const _errs378 = errors;const _errs379 = errors;let valid126 = false;const _errs380 = errors;if((!((typeof data97 == "number") && (isFinite(data97)))) && (data97 !== null)){const err218 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.active_cpu.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var _valid39 = _errs380 === errors;valid126 = valid126 || _valid39;const _errs382 = errors;if(typeof data97 !== "bigint"){const err219 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}var _valid39 = _errs382 === errors;valid126 = valid126 || _valid39;if(!valid126){const err220 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}var valid125 = _errs378 === errors;if(valid125){if(typeof data97 === "bigint"){if(data97 < 0){const err221 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}if(errors === _errs377){if((typeof data97 == "number") && (isFinite(data97))){if(data97 < 0 || isNaN(data97)){const err222 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}var valid124 = _errs377 === errors;}else {var valid124 = true;}if(valid124){if(data93.source !== undefined){let data98 = data93.source;const _errs383 = errors;if(typeof data98 !== "string"){const err223 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if(!((((((data98 === "provider") || (data98 === "published")) || (data98 === "measured")) || (data98 === "recorded")) || (data98 === "calculated")) || (data98 === "unknown"))){const err224 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}var valid124 = _errs383 === errors;}else {var valid124 = true;}if(valid124){if(data93.observed_at !== undefined){let data99 = data93.observed_at;const _errs386 = errors;const _errs387 = errors;if(errors === _errs387){if(errors === _errs387){if(typeof data99 === "string"){if(!pattern78.test(data99)){const err225 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(!(formats0.validate(data99))){const err226 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}else {const err227 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}var valid124 = _errs386 === errors;}else {var valid124 = true;}if(valid124){if(data93.how !== undefined){let data100 = data93.how;const _errs389 = errors;const _errs390 = errors;if(errors === _errs390){if(typeof data100 === "string"){if(func1(data100) < 1){const err228 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}var valid124 = _errs389 === errors;}else {var valid124 = true;}}}}}}else {const err230 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}var valid33 = _errs361 === errors;}else {var valid33 = true;}if(valid33){if(data35.egress !== undefined){let data101 = data35.egress;const _errs392 = errors;const _errs394 = errors;let valid130 = true;const _errs395 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing31;if((data101.source === undefined) && (missing31 = "source")){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}else {if(data101.source !== undefined){if("unknown" !== data101.source){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}}var _valid40 = _errs395 === errors;errors = _errs394;if(vErrors !== null){if(_errs394){vErrors.length = _errs394;}else {vErrors = null;}}let ifClause7;if(_valid40){const _errs398 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){if(data101.bytes !== null){const err233 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/then/properties/bytes/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}var _valid40 = _errs398 === errors;valid130 = _valid40;if(valid130){var props11 = {};props11.bytes = true;props11.source = true;}ifClause7 = "then";}else {const _errs401 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){let data104 = data101.bytes;const _errs404 = errors;let valid136 = false;const _errs405 = errors;if(!(((typeof data104 == "number") && (!(data104 % 1) && !isNaN(data104))) && (isFinite(data104)))){const err234 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var _valid41 = _errs405 === errors;valid136 = valid136 || _valid41;const _errs407 = errors;if(typeof data104 !== "bigint"){const err235 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}var _valid41 = _errs407 === errors;valid136 = valid136 || _valid41;if(!valid136){const err236 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {errors = _errs404;if(vErrors !== null){if(_errs404){vErrors.length = _errs404;}else {vErrors = null;}}}}}var _valid40 = _errs401 === errors;valid130 = _valid40;if(valid130){if(props11 !== true){props11 = props11 || {};props11.bytes = true;}}ifClause7 = "else";}if(!valid130){const err237 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(errors === _errs392){if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing32;if(((((data101.bytes === undefined) && (missing32 = "bytes")) || ((data101.source === undefined) && (missing32 = "source"))) || ((data101.observed_at === undefined) && (missing32 = "observed_at"))) || ((data101.how === undefined) && (missing32 = "how"))){const err238 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/required",keyword:"required",params:{missingProperty: missing32},message:"must have required property '"+missing32+"'"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(props11 !== true){props11 = props11 || {};props11.bytes = true;props11.source = true;props11.observed_at = true;props11.how = true;}if(data101.bytes !== undefined){let data105 = data101.bytes;const _errs408 = errors;const _errs409 = errors;const _errs410 = errors;let valid139 = false;const _errs411 = errors;if((!(((typeof data105 == "number") && (!(data105 % 1) && !isNaN(data105))) && (isFinite(data105)))) && (data105 !== null)){const err239 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.egress.properties.bytes.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}var _valid42 = _errs411 === errors;valid139 = valid139 || _valid42;const _errs413 = errors;if(typeof data105 !== "bigint"){const err240 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid42 = _errs413 === errors;valid139 = valid139 || _valid42;if(!valid139){const err241 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {errors = _errs410;if(vErrors !== null){if(_errs410){vErrors.length = _errs410;}else {vErrors = null;}}}var valid138 = _errs409 === errors;if(valid138){if(typeof data105 === "bigint"){if(data105 < 0){const err242 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}if(errors === _errs408){if((typeof data105 == "number") && (isFinite(data105))){if(data105 < 0 || isNaN(data105)){const err243 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}var valid137 = _errs408 === errors;}else {var valid137 = true;}if(valid137){if(data101.source !== undefined){let data106 = data101.source;const _errs414 = errors;if(typeof data106 !== "string"){const err244 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}if(!((((((data106 === "provider") || (data106 === "published")) || (data106 === "measured")) || (data106 === "recorded")) || (data106 === "calculated")) || (data106 === "unknown"))){const err245 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}var valid137 = _errs414 === errors;}else {var valid137 = true;}if(valid137){if(data101.observed_at !== undefined){let data107 = data101.observed_at;const _errs417 = errors;const _errs418 = errors;if(errors === _errs418){if(errors === _errs418){if(typeof data107 === "string"){if(!pattern78.test(data107)){const err246 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {if(!(formats0.validate(data107))){const err247 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}var valid137 = _errs417 === errors;}else {var valid137 = true;}if(valid137){if(data101.how !== undefined){let data108 = data101.how;const _errs420 = errors;const _errs421 = errors;if(errors === _errs421){if(typeof data108 === "string"){if(func1(data108) < 1){const err249 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}else {const err250 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}var valid137 = _errs420 === errors;}else {var valid137 = true;}}}}}}else {const err251 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}var valid33 = _errs392 === errors;}else {var valid33 = true;}if(valid33){if(data35.snapshot_storage !== undefined){let data109 = data35.snapshot_storage;const _errs423 = errors;const _errs425 = errors;let valid143 = true;const _errs426 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing33;if((data109.source === undefined) && (missing33 = "source")){const err252 = {};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}else {if(data109.source !== undefined){if("unknown" !== data109.source){const err253 = {};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}}var _valid43 = _errs426 === errors;errors = _errs425;if(vErrors !== null){if(_errs425){vErrors.length = _errs425;}else {vErrors = null;}}let ifClause8;if(_valid43){const _errs429 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(data109.gb !== undefined){if(data109.gb !== null){const err254 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/then/properties/gb/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}}var _valid43 = _errs429 === errors;valid143 = _valid43;if(valid143){var props12 = {};props12.gb = true;props12.source = true;}ifClause8 = "then";}else {const _errs432 = errors;const _errs433 = errors;let valid147 = false;const _errs434 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing34;if((data109.gb === undefined) && (missing34 = "gb")){const err255 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing34},message:"must have required property '"+missing34+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}else {if(data109.gb !== undefined){let data112 = data109.gb;const _errs437 = errors;let valid150 = false;const _errs438 = errors;if(!((typeof data112 == "number") && (isFinite(data112)))){const err256 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}var _valid45 = _errs438 === errors;valid150 = valid150 || _valid45;const _errs440 = errors;if(typeof data112 !== "bigint"){const err257 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}var _valid45 = _errs440 === errors;valid150 = valid150 || _valid45;if(!valid150){const err258 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}}}}}var _valid44 = _errs434 === errors;valid147 = valid147 || _valid44;if(_valid44){var props13 = {};props13.gb = true;}const _errs441 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing35;if((data109.bytes === undefined) && (missing35 = "bytes")){const err259 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing35},message:"must have required property '"+missing35+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}var _valid44 = _errs441 === errors;valid147 = valid147 || _valid44;if(!valid147){const err260 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {errors = _errs433;if(vErrors !== null){if(_errs433){vErrors.length = _errs433;}else {vErrors = null;}}}var _valid43 = _errs432 === errors;valid143 = _valid43;if(valid143){if(props12 !== true && props13 !== undefined){if(props13 === true){props12 = true;}else {props12 = props12 || {};Object.assign(props12, props13);}}}ifClause8 = "else";}if(!valid143){const err261 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/if",keyword:"if",params:{failingKeyword: ifClause8},message:"must match \""+ifClause8+"\" schema"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(errors === _errs423){if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing36;if((((data109.source === undefined) && (missing36 = "source")) || ((data109.observed_at === undefined) && (missing36 = "observed_at"))) || ((data109.how === undefined) && (missing36 = "how"))){const err262 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/required",keyword:"required",params:{missingProperty: missing36},message:"must have required property '"+missing36+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}else {if(props12 !== true){props12 = props12 || {};props12.gb = true;props12.max_gb = true;props12.source = true;props12.observed_at = true;props12.how = true;props12.bytes = true;}if(data109.gb !== undefined){let data113 = data109.gb;const _errs442 = errors;const _errs443 = errors;const _errs444 = errors;let valid153 = false;const _errs445 = errors;if((!((typeof data113 == "number") && (isFinite(data113)))) && (data113 !== null)){const err263 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid46 = _errs445 === errors;valid153 = valid153 || _valid46;const _errs447 = errors;if(typeof data113 !== "bigint"){const err264 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}var _valid46 = _errs447 === errors;valid153 = valid153 || _valid46;if(!valid153){const err265 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}else {errors = _errs444;if(vErrors !== null){if(_errs444){vErrors.length = _errs444;}else {vErrors = null;}}}var valid152 = _errs443 === errors;if(valid152){if(typeof data113 === "bigint"){if(data113 < 0){const err266 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}if(errors === _errs442){if((typeof data113 == "number") && (isFinite(data113))){if(data113 < 0 || isNaN(data113)){const err267 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}}var valid151 = _errs442 === errors;}else {var valid151 = true;}if(valid151){if(data109.max_gb !== undefined){let data114 = data109.max_gb;const _errs448 = errors;const _errs449 = errors;const _errs450 = errors;let valid155 = false;const _errs451 = errors;if((!((typeof data114 == "number") && (isFinite(data114)))) && (data114 !== null)){const err268 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.max_gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}var _valid47 = _errs451 === errors;valid155 = valid155 || _valid47;const _errs453 = errors;if(typeof data114 !== "bigint"){const err269 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}var _valid47 = _errs453 === errors;valid155 = valid155 || _valid47;if(!valid155){const err270 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {errors = _errs450;if(vErrors !== null){if(_errs450){vErrors.length = _errs450;}else {vErrors = null;}}}var valid154 = _errs449 === errors;if(valid154){if(typeof data114 === "bigint"){if(data114 < 0){const err271 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}}if(errors === _errs448){if((typeof data114 == "number") && (isFinite(data114))){if(data114 < 0 || isNaN(data114)){const err272 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}var valid151 = _errs448 === errors;}else {var valid151 = true;}if(valid151){if(data109.source !== undefined){let data115 = data109.source;const _errs454 = errors;if(typeof data115 !== "string"){const err273 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}if(!((((((data115 === "provider") || (data115 === "published")) || (data115 === "measured")) || (data115 === "recorded")) || (data115 === "calculated")) || (data115 === "unknown"))){const err274 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}var valid151 = _errs454 === errors;}else {var valid151 = true;}if(valid151){if(data109.observed_at !== undefined){let data116 = data109.observed_at;const _errs457 = errors;const _errs458 = errors;if(errors === _errs458){if(errors === _errs458){if(typeof data116 === "string"){if(!pattern78.test(data116)){const err275 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {if(!(formats0.validate(data116))){const err276 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}var valid151 = _errs457 === errors;}else {var valid151 = true;}if(valid151){if(data109.how !== undefined){let data117 = data109.how;const _errs460 = errors;const _errs461 = errors;if(errors === _errs461){if(typeof data117 === "string"){if(func1(data117) < 1){const err278 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}else {const err279 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}var valid151 = _errs460 === errors;}else {var valid151 = true;}if(valid151){if(data109.bytes !== undefined){let data118 = data109.bytes;const _errs463 = errors;const _errs464 = errors;const _errs465 = errors;let valid160 = false;const _errs466 = errors;if(!(((typeof data118 == "number") && (!(data118 % 1) && !isNaN(data118))) && (isFinite(data118)))){const err280 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}var _valid48 = _errs466 === errors;valid160 = valid160 || _valid48;const _errs468 = errors;if(typeof data118 !== "bigint"){const err281 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}var _valid48 = _errs468 === errors;valid160 = valid160 || _valid48;if(!valid160){const err282 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}else {errors = _errs465;if(vErrors !== null){if(_errs465){vErrors.length = _errs465;}else {vErrors = null;}}}var valid159 = _errs464 === errors;if(valid159){if(typeof data118 === "bigint"){if(data118 < 0){const err283 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}}if(errors === _errs463){if((typeof data118 == "number") && (isFinite(data118))){if(data118 < 0 || isNaN(data118)){const err284 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}var valid151 = _errs463 === errors;}else {var valid151 = true;}}}}}}}}else {const err285 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}var valid33 = _errs423 === errors;}else {var valid33 = true;}}}}}}}}}}}}}else {const err286 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}var _valid15 = _errs136 === errors;valid32 = valid32 || _valid15;if(_valid15){var props14 = true;}const _errs469 = errors;if(errors === _errs469){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing37;if(((((((data35.provider === undefined) && (missing37 = "provider")) || ((data35.started === undefined) && (missing37 = "started"))) || ((data35.region === undefined) && (missing37 = "region"))) || ((data35.size === undefined) && (missing37 = "size"))) || ((data35.intervals === undefined) && (missing37 = "intervals"))) || ((data35.creations === undefined) && (missing37 = "creations"))){const err287 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/required",keyword:"required",params:{missingProperty: missing37},message:"must have required property '"+missing37+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}else {const _errs471 = errors;for(const key2 in data35){if(!(func237.call(schema320.properties.usage.anyOf[1].properties, key2))){const err288 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;break;}}if(_errs471 === errors){if(data35.provider !== undefined){let data119 = data35.provider;const _errs472 = errors;const _errs473 = errors;if(errors === _errs473){if(typeof data119 === "string"){if(!pattern42.test(data119)){const err289 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}var valid161 = _errs472 === errors;}else {var valid161 = true;}if(valid161){if(data35.class !== undefined){const _errs475 = errors;if(!(validate344(data35.class, {instancePath:instancePath+"/usage/class",parentData:data35,parentDataProperty:"class",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate344.errors : vErrors.concat(validate344.errors);errors = vErrors.length;}var valid161 = _errs475 === errors;}else {var valid161 = true;}if(valid161){if(data35.started !== undefined){const _errs476 = errors;if(!(validate346(data35.started, {instancePath:instancePath+"/usage/started",parentData:data35,parentDataProperty:"started",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate346.errors : vErrors.concat(validate346.errors);errors = vErrors.length;}var valid161 = _errs476 === errors;}else {var valid161 = true;}if(valid161){if(data35.region !== undefined){const _errs477 = errors;if(!(validate348(data35.region, {instancePath:instancePath+"/usage/region",parentData:data35,parentDataProperty:"region",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate348.errors : vErrors.concat(validate348.errors);errors = vErrors.length;}var valid161 = _errs477 === errors;}else {var valid161 = true;}if(valid161){if(data35.size !== undefined){let data123 = data35.size;const _errs478 = errors;const _errs480 = errors;const _errs481 = errors;let valid164 = true;const _errs482 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing38;if((data123.gpu === undefined) && (missing38 = "gpu")){const err291 = {};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}var _valid49 = _errs482 === errors;errors = _errs481;if(vErrors !== null){if(_errs481){vErrors.length = _errs481;}else {vErrors = null;}}if(_valid49){const _errs483 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing39;if((data123.gpu_model === undefined) && (missing39 = "gpu_model")){const err292 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing39},message:"must have required property '"+missing39+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}var _valid49 = _errs483 === errors;valid164 = _valid49;}if(!valid164){const err293 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var valid163 = _errs480 === errors;if(valid163){const _errs484 = errors;const _errs485 = errors;let valid165 = true;const _errs486 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing40;if((data123.gpu_model === undefined) && (missing40 = "gpu_model")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}var _valid50 = _errs486 === errors;errors = _errs485;if(vErrors !== null){if(_errs485){vErrors.length = _errs485;}else {vErrors = null;}}if(_valid50){const _errs487 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing41;if((data123.gpu === undefined) && (missing41 = "gpu")){const err295 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing41},message:"must have required property '"+missing41+"'"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}var _valid50 = _errs487 === errors;valid165 = _valid50;}if(!valid165){const err296 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var valid163 = _errs484 === errors;if(valid163){const _errs488 = errors;let valid166 = true;const _errs489 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing42;if((data123.source === undefined) && (missing42 = "source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data123.source !== undefined){if("unknown" !== data123.source){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}}var _valid51 = _errs489 === errors;errors = _errs488;if(vErrors !== null){if(_errs488){vErrors.length = _errs488;}else {vErrors = null;}}let ifClause9;if(_valid51){const _errs492 = errors;const _errs494 = errors;const _errs495 = errors;const _errs496 = errors;let valid171 = false;const _errs497 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing43;if((data123.cpu === undefined) && (missing43 = "cpu")){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}var _valid52 = _errs497 === errors;valid171 = valid171 || _valid52;const _errs498 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing44;if((data123.memory_mib === undefined) && (missing44 = "memory_mib")){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}var _valid52 = _errs498 === errors;valid171 = valid171 || _valid52;const _errs499 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing45;if((data123.disk_mib === undefined) && (missing45 = "disk_mib")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}var _valid52 = _errs499 === errors;valid171 = valid171 || _valid52;const _errs500 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing46;if((data123.gpu === undefined) && (missing46 = "gpu")){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}var _valid52 = _errs500 === errors;valid171 = valid171 || _valid52;const _errs501 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing47;if((data123.gpu_model === undefined) && (missing47 = "gpu_model")){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid52 = _errs501 === errors;valid171 = valid171 || _valid52;if(!valid171){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}var valid170 = _errs495 === errors;if(valid170){const err305 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}var _valid51 = _errs492 === errors;valid166 = _valid51;ifClause9 = "then";}else {const _errs502 = errors;const _errs504 = errors;let valid173 = false;const _errs505 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing48;if((data123.cpu === undefined) && (missing48 = "cpu")){const err306 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing48},message:"must have required property '"+missing48+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}var _valid53 = _errs505 === errors;valid173 = valid173 || _valid53;const _errs506 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing49;if((data123.memory_mib === undefined) && (missing49 = "memory_mib")){const err307 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing49},message:"must have required property '"+missing49+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}}var _valid53 = _errs506 === errors;valid173 = valid173 || _valid53;const _errs507 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing50;if((data123.disk_mib === undefined) && (missing50 = "disk_mib")){const err308 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing50},message:"must have required property '"+missing50+"'"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid53 = _errs507 === errors;valid173 = valid173 || _valid53;const _errs508 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing51;if((data123.gpu === undefined) && (missing51 = "gpu")){const err309 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing51},message:"must have required property '"+missing51+"'"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}var _valid53 = _errs508 === errors;valid173 = valid173 || _valid53;if(!valid173){const err310 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {errors = _errs504;if(vErrors !== null){if(_errs504){vErrors.length = _errs504;}else {vErrors = null;}}}var _valid51 = _errs502 === errors;valid166 = _valid51;ifClause9 = "else";}if(!valid166){const err311 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/if",keyword:"if",params:{failingKeyword: ifClause9},message:"must match \""+ifClause9+"\" schema"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}if(errors === _errs478){if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing52;if((((data123.source === undefined) && (missing52 = "source")) || ((data123.observed_at === undefined) && (missing52 = "observed_at"))) || ((data123.how === undefined) && (missing52 = "how"))){const err312 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/required",keyword:"required",params:{missingProperty: missing52},message:"must have required property '"+missing52+"'"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}else {if(data123.cpu !== undefined){let data125 = data123.cpu;const _errs509 = errors;const _errs510 = errors;const _errs511 = errors;const _errs512 = errors;let valid177 = false;const _errs513 = errors;if(!((typeof data125 == "number") && (isFinite(data125)))){const err313 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid54 = _errs513 === errors;valid177 = valid177 || _valid54;const _errs515 = errors;if(typeof data125 !== "bigint"){const err314 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}var _valid54 = _errs515 === errors;valid177 = valid177 || _valid54;if(!valid177){const err315 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}else {errors = _errs512;if(vErrors !== null){if(_errs512){vErrors.length = _errs512;}else {vErrors = null;}}}var valid176 = _errs511 === errors;if(valid176){if(typeof data125 === "bigint"){if(data125 <= 0){const err316 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}}if(errors === _errs510){if((typeof data125 == "number") && (isFinite(data125))){if(data125 <= 0 || isNaN(data125)){const err317 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}}var valid174 = _errs509 === errors;}else {var valid174 = true;}if(valid174){if(data123.memory_mib !== undefined){let data126 = data123.memory_mib;const _errs516 = errors;const _errs517 = errors;const _errs518 = errors;const _errs519 = errors;let valid180 = false;const _errs520 = errors;if(!(((typeof data126 == "number") && (!(data126 % 1) && !isNaN(data126))) && (isFinite(data126)))){const err318 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}var _valid55 = _errs520 === errors;valid180 = valid180 || _valid55;const _errs522 = errors;if(typeof data126 !== "bigint"){const err319 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid55 = _errs522 === errors;valid180 = valid180 || _valid55;if(!valid180){const err320 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs519;if(vErrors !== null){if(_errs519){vErrors.length = _errs519;}else {vErrors = null;}}}var valid179 = _errs518 === errors;if(valid179){if(typeof data126 === "bigint"){if(data126 < 1){const err321 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}}}if(errors === _errs517){if((typeof data126 == "number") && (isFinite(data126))){if(data126 < 1 || isNaN(data126)){const err322 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}}var valid174 = _errs516 === errors;}else {var valid174 = true;}if(valid174){if(data123.disk_mib !== undefined){let data127 = data123.disk_mib;const _errs523 = errors;const _errs524 = errors;const _errs525 = errors;const _errs526 = errors;let valid183 = false;const _errs527 = errors;if(!(((typeof data127 == "number") && (!(data127 % 1) && !isNaN(data127))) && (isFinite(data127)))){const err323 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}var _valid56 = _errs527 === errors;valid183 = valid183 || _valid56;const _errs529 = errors;if(typeof data127 !== "bigint"){const err324 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}var _valid56 = _errs529 === errors;valid183 = valid183 || _valid56;if(!valid183){const err325 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}}var valid182 = _errs525 === errors;if(valid182){if(typeof data127 === "bigint"){if(data127 < 1){const err326 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}if(errors === _errs524){if((typeof data127 == "number") && (isFinite(data127))){if(data127 < 1 || isNaN(data127)){const err327 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}}var valid174 = _errs523 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu !== undefined){const _errs530 = errors;if(0 !== data123.gpu){const err328 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/1/properties/size/properties/gpu/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}var valid174 = _errs530 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu_model !== undefined){let data129 = data123.gpu_model;const _errs531 = errors;const _errs532 = errors;if(errors === _errs532){if(typeof data129 === "string"){if(!pattern219.test(data129)){const err329 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}else {const err330 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}var valid174 = _errs531 === errors;}else {var valid174 = true;}if(valid174){if(data123.source !== undefined){let data130 = data123.source;const _errs534 = errors;if(typeof data130 !== "string"){const err331 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(!((((((data130 === "provider") || (data130 === "published")) || (data130 === "measured")) || (data130 === "recorded")) || (data130 === "calculated")) || (data130 === "unknown"))){const err332 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}var valid174 = _errs534 === errors;}else {var valid174 = true;}if(valid174){if(data123.observed_at !== undefined){let data131 = data123.observed_at;const _errs537 = errors;const _errs538 = errors;if(errors === _errs538){if(errors === _errs538){if(typeof data131 === "string"){if(!pattern78.test(data131)){const err333 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}else {if(!(formats0.validate(data131))){const err334 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}var valid174 = _errs537 === errors;}else {var valid174 = true;}if(valid174){if(data123.how !== undefined){let data132 = data123.how;const _errs540 = errors;const _errs541 = errors;if(errors === _errs541){if(typeof data132 === "string"){if(func1(data132) < 1){const err336 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}else {const err337 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}var valid174 = _errs540 === errors;}else {var valid174 = true;}}}}}}}}}}else {const err338 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}var valid161 = _errs478 === errors;}else {var valid161 = true;}if(valid161){if(data35.intervals !== undefined){const _errs543 = errors;if(!(validate350(data35.intervals, {instancePath:instancePath+"/usage/intervals",parentData:data35,parentDataProperty:"intervals",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate350.errors : vErrors.concat(validate350.errors);errors = vErrors.length;}var valid161 = _errs543 === errors;}else {var valid161 = true;}if(valid161){if(data35.creations !== undefined){const _errs544 = errors;if(!(validate354(data35.creations, {instancePath:instancePath+"/usage/creations",parentData:data35,parentDataProperty:"creations",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate354.errors : vErrors.concat(validate354.errors);errors = vErrors.length;}var valid161 = _errs544 === errors;}else {var valid161 = true;}if(valid161){if(data35.active_cpu !== undefined){const _errs545 = errors;if(!(validate356(data35.active_cpu, {instancePath:instancePath+"/usage/active_cpu",parentData:data35,parentDataProperty:"active_cpu",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate356.errors : vErrors.concat(validate356.errors);errors = vErrors.length;}var valid161 = _errs545 === errors;}else {var valid161 = true;}if(valid161){if(data35.egress !== undefined){const _errs546 = errors;if(!(validate358(data35.egress, {instancePath:instancePath+"/usage/egress",parentData:data35,parentDataProperty:"egress",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate358.errors : vErrors.concat(validate358.errors);errors = vErrors.length;}var valid161 = _errs546 === errors;}else {var valid161 = true;}}}}}}}}}}}}else {const err339 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}var _valid15 = _errs469 === errors;valid32 = valid32 || _valid15;if(_valid15){if(props14 !== true){props14 = true;}}const _errs547 = errors;if(data35 !== null){const err340 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}var _valid15 = _errs547 === errors;valid32 = valid32 || _valid15;if(!valid32){const err341 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}var valid0 = _errs134 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data137 = data.cost;const _errs549 = errors;const _errs550 = errors;let valid188 = false;const _errs551 = errors;const _errs553 = errors;const _errs554 = errors;let valid190 = true;const _errs555 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing53;if((data137.label === undefined) && (missing53 = "label")){const err342 = {};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err343 = {};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}}var _valid58 = _errs555 === errors;errors = _errs554;if(vErrors !== null){if(_errs554){vErrors.length = _errs554;}else {vErrors = null;}}let ifClause10;if(_valid58){const _errs557 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err344 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}}var _valid58 = _errs557 === errors;valid190 = _valid58;if(valid190){var props21 = {};props21.total = true;props21.label = true;}ifClause10 = "then";}else {const _errs560 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data140 = data137.total;if(!(data140 && typeof data140 == "object" && !Array.isArray(data140))){const err345 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}}var _valid58 = _errs560 === errors;valid190 = _valid58;if(valid190){if(props21 !== true){props21 = props21 || {};props21.total = true;}}ifClause10 = "else";}if(!valid190){const err346 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause10},message:"must match \""+ifClause10+"\" schema"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}var valid189 = _errs553 === errors;if(valid189){const _errs563 = errors;const _errs564 = errors;let valid194 = true;const _errs565 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing54;if((data137.label === undefined) && (missing54 = "label")){const err347 = {};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}else {if(data137.label !== undefined){if("reported" !== data137.label){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}}var _valid59 = _errs565 === errors;errors = _errs564;if(vErrors !== null){if(_errs564){vErrors.length = _errs564;}else {vErrors = null;}}let ifClause11;if(_valid59){const _errs567 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing55;if((data137.reported_figure === undefined) && (missing55 = "reported_figure")){const err349 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: missing55},message:"must have required property '"+missing55+"'"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}var _valid59 = _errs567 === errors;valid194 = _valid59;ifClause11 = "then";}else {const _errs568 = errors;const _errs569 = errors;const _errs570 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing56;if((data137.reported_figure === undefined) && (missing56 = "reported_figure")){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}var valid196 = _errs570 === errors;if(valid196){const err351 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}else {errors = _errs569;if(vErrors !== null){if(_errs569){vErrors.length = _errs569;}else {vErrors = null;}}}var _valid59 = _errs568 === errors;valid194 = _valid59;ifClause11 = "else";}if(!valid194){const err352 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause11},message:"must match \""+ifClause11+"\" schema"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid189 = _errs563 === errors;if(valid189){if(props21 !== true){props21 = props21 || {};props21.label = true;}}}if(errors === _errs551){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing57;if((((((((data137.label === undefined) && (missing57 = "label")) || ((data137.total === undefined) && (missing57 = "total"))) || ((data137.lines === undefined) && (missing57 = "lines"))) || ((data137.held_back_by === undefined) && (missing57 = "held_back_by"))) || ((data137.exclusions === undefined) && (missing57 = "exclusions"))) || ((data137.price_version === undefined) && (missing57 = "price_version"))) || ((data137.as_of === undefined) && (missing57 = "as_of"))){const err353 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/required",keyword:"required",params:{missingProperty: missing57},message:"must have required property '"+missing57+"'"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {const _errs571 = errors;for(const key3 in data137){if(!(func237.call(schema320.properties.cost.anyOf[0].properties, key3))){const err354 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;break;}}if(_errs571 === errors){if(data137.label !== undefined){let data142 = data137.label;const _errs572 = errors;if(!(((data142 === "reported") || (data142 === "calculated")) || (data142 === "unknown"))){const err355 = {instancePath:instancePath+"/cost/label",schemaPath:"#/properties/cost/anyOf/0/properties/label/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.label.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}var valid197 = _errs572 === errors;}else {var valid197 = true;}if(valid197){if(data137.total !== undefined){let data143 = data137.total;const _errs573 = errors;const _errs574 = errors;let valid198 = false;const _errs575 = errors;if(!(validate118(data143, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);errors = vErrors.length;}var _valid60 = _errs575 === errors;valid198 = valid198 || _valid60;if(_valid60){var props22 = {};props22.low = true;props22.high = true;}const _errs576 = errors;if(data143 !== null){const err356 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid60 = _errs576 === errors;valid198 = valid198 || _valid60;if(!valid198){const err357 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}else {errors = _errs574;if(vErrors !== null){if(_errs574){vErrors.length = _errs574;}else {vErrors = null;}}}var valid197 = _errs573 === errors;}else {var valid197 = true;}if(valid197){if(data137.lines !== undefined){let data144 = data137.lines;const _errs578 = errors;if(errors === _errs578){if(Array.isArray(data144)){var valid199 = true;const len1 = data144.length;for(let i1=0; i1<len1; i1++){let data145 = data144[i1];const _errs580 = errors;if(errors === _errs580){if(data145 && typeof data145 == "object" && !Array.isArray(data145)){let missing58;if(((((((data145.what === undefined) && (missing58 = "what")) || ((data145.quantity === undefined) && (missing58 = "quantity"))) || ((data145.unit === undefined) && (missing58 = "unit"))) || ((data145.rate === undefined) && (missing58 = "rate"))) || ((data145.amount === undefined) && (missing58 = "amount"))) || ((data145.quantity_source === undefined) && (missing58 = "quantity_source"))){const err358 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/required",keyword:"required",params:{missingProperty: missing58},message:"must have required property '"+missing58+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}else {if(data145.what !== undefined){let data146 = data145.what;const _errs582 = errors;if(!((((((((data146 === "cpu") || (data146 === "memory")) || (data146 === "disk")) || (data146 === "gpu")) || (data146 === "machine")) || (data146 === "creation")) || (data146 === "egress")) || (data146 === "snapshot_storage"))){const err359 = {instancePath:instancePath+"/cost/lines/" + i1+"/what",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/what/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.lines.items.properties.what.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}var valid200 = _errs582 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity !== undefined){let data147 = data145.quantity;const _errs583 = errors;const _errs584 = errors;if(errors === _errs584){if(typeof data147 === "string"){if(!pattern50.test(data147)){const err360 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}else {const err361 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}var valid200 = _errs583 === errors;}else {var valid200 = true;}if(valid200){if(data145.unit !== undefined){let data148 = data145.unit;const _errs586 = errors;if(errors === _errs586){if(typeof data148 === "string"){if(func1(data148) < 1){const err362 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}else {const err363 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}var valid200 = _errs586 === errors;}else {var valid200 = true;}if(valid200){if(data145.rate !== undefined){let data149 = data145.rate;const _errs588 = errors;const _errs589 = errors;if(errors === _errs589){if(typeof data149 === "string"){if(!pattern50.test(data149)){const err364 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}else {const err365 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}var valid200 = _errs588 === errors;}else {var valid200 = true;}if(valid200){if(data145.amount !== undefined){let data150 = data145.amount;const _errs591 = errors;const _errs592 = errors;if(errors === _errs592){if(typeof data150 === "string"){if(!pattern50.test(data150)){const err366 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}else {const err367 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}var valid200 = _errs591 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity_source !== undefined){let data151 = data145.quantity_source;const _errs594 = errors;if(typeof data151 !== "string"){const err368 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(!((((((data151 === "provider") || (data151 === "published")) || (data151 === "measured")) || (data151 === "recorded")) || (data151 === "calculated")) || (data151 === "unknown"))){const err369 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}var valid200 = _errs594 === errors;}else {var valid200 = true;}if(valid200){if(data145.text !== undefined){let data152 = data145.text;const _errs597 = errors;if(errors === _errs597){if(typeof data152 === "string"){if(func1(data152) < 1){const err370 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}else {const err371 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}var valid200 = _errs597 === errors;}else {var valid200 = true;}if(valid200){if(data145.sources !== undefined){let data153 = data145.sources;const _errs599 = errors;if(errors === _errs599){if(data153 && typeof data153 == "object" && !Array.isArray(data153)){let missing59;if((data153.amount === undefined) && (missing59 = "amount")){const err372 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/required",keyword:"required",params:{missingProperty: missing59},message:"must have required property '"+missing59+"'"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {if(data153.quantity !== undefined){let data154 = data153.quantity;const _errs601 = errors;if(errors === _errs601){if(typeof data154 === "string"){if(func1(data154) < 1){const err373 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}var valid205 = _errs601 === errors;}else {var valid205 = true;}if(valid205){if(data153.rate !== undefined){let data155 = data153.rate;const _errs603 = errors;if(errors === _errs603){if(typeof data155 === "string"){if(func1(data155) < 1){const err375 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}}else {const err376 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}var valid205 = _errs603 === errors;}else {var valid205 = true;}if(valid205){if(data153.amount !== undefined){let data156 = data153.amount;const _errs605 = errors;if(errors === _errs605){if(typeof data156 === "string"){if(func1(data156) < 1){const err377 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}else {const err378 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}var valid205 = _errs605 === errors;}else {var valid205 = true;}}}}}else {const err379 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}}var valid200 = _errs599 === errors;}else {var valid200 = true;}}}}}}}}}}else {const err380 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}var valid199 = _errs580 === errors;if(!valid199){break;}}}else {const err381 = {instancePath:instancePath+"/cost/lines",schemaPath:"#/properties/cost/anyOf/0/properties/lines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}var valid197 = _errs578 === errors;}else {var valid197 = true;}if(valid197){if(data137.held_back_by !== undefined){let data157 = data137.held_back_by;const _errs607 = errors;if(errors === _errs607){if(Array.isArray(data157)){var valid206 = true;const len2 = data157.length;for(let i2=0; i2<len2; i2++){let data158 = data157[i2];const _errs609 = errors;if(errors === _errs609){if(typeof data158 === "string"){if(func1(data158) < 1){const err382 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}else {const err383 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}var valid206 = _errs609 === errors;if(!valid206){break;}}}else {const err384 = {instancePath:instancePath+"/cost/held_back_by",schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}var valid197 = _errs607 === errors;}else {var valid197 = true;}if(valid197){if(data137.exclusions !== undefined){let data159 = data137.exclusions;const _errs611 = errors;if(errors === _errs611){if(Array.isArray(data159)){var valid207 = true;const len3 = data159.length;for(let i3=0; i3<len3; i3++){let data160 = data159[i3];const _errs613 = errors;if(errors === _errs613){if(typeof data160 === "string"){if(func1(data160) < 1){const err385 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}else {const err386 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}}var valid207 = _errs613 === errors;if(!valid207){break;}}}else {const err387 = {instancePath:instancePath+"/cost/exclusions",schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}var valid197 = _errs611 === errors;}else {var valid197 = true;}if(valid197){if(data137.price_version !== undefined){let data161 = data137.price_version;const _errs615 = errors;if((typeof data161 !== "string") && (data161 !== null)){const err388 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/type",keyword:"type",params:{type: schema320.properties.cost.anyOf[0].properties.price_version.type},message:"must be string,null"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if(errors === _errs615){if(typeof data161 === "string"){if(!pattern77.test(data161)){const err389 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"+"\""};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}}}var valid197 = _errs615 === errors;}else {var valid197 = true;}if(valid197){if(data137.as_of !== undefined){let data162 = data137.as_of;const _errs617 = errors;const _errs618 = errors;if(errors === _errs618){if(errors === _errs618){if(typeof data162 === "string"){if(!pattern78.test(data162)){const err390 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(!(formats0.validate(data162))){const err391 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}}}else {const err392 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}}var valid197 = _errs617 === errors;}else {var valid197 = true;}if(valid197){if(data137.per_hour !== undefined){const _errs620 = errors;if(!(validate122(data137.per_hour, {instancePath:instancePath+"/cost/per_hour",parentData:data137,parentDataProperty:"per_hour",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);errors = vErrors.length;}var valid197 = _errs620 === errors;}else {var valid197 = true;}if(valid197){if(data137.reported_figure !== undefined){let data164 = data137.reported_figure;const _errs621 = errors;if(errors === _errs621){if(data164 && typeof data164 == "object" && !Array.isArray(data164)){let missing60;if((((data164.source === undefined) && (missing60 = "source")) || ((data164.observed_at === undefined) && (missing60 = "observed_at"))) || ((data164.how === undefined) && (missing60 = "how"))){const err393 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/required",keyword:"required",params:{missingProperty: missing60},message:"must have required property '"+missing60+"'"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}else {if(data164.source !== undefined){let data165 = data164.source;const _errs623 = errors;const _errs624 = errors;if(typeof data165 !== "string"){const err394 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if(!((((((data165 === "provider") || (data165 === "published")) || (data165 === "measured")) || (data165 === "recorded")) || (data165 === "calculated")) || (data165 === "unknown"))){const err395 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid210 = _errs624 === errors;if(valid210){if("provider" !== data165){const err396 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/source/const",keyword:"const",params:{allowedValue: "provider"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}var valid209 = _errs623 === errors;}else {var valid209 = true;}if(valid209){if(data164.observed_at !== undefined){let data166 = data164.observed_at;const _errs626 = errors;const _errs627 = errors;if(errors === _errs627){if(errors === _errs627){if(typeof data166 === "string"){if(!pattern78.test(data166)){const err397 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}else {if(!(formats0.validate(data166))){const err398 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}}}else {const err399 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}var valid209 = _errs626 === errors;}else {var valid209 = true;}if(valid209){if(data164.how !== undefined){let data167 = data164.how;const _errs629 = errors;if(errors === _errs629){if(typeof data167 === "string"){if(func1(data167) < 1){const err400 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}else {const err401 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}var valid209 = _errs629 === errors;}else {var valid209 = true;}}}}}else {const err402 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}var valid197 = _errs621 === errors;}else {var valid197 = true;}if(valid197){if(data137.summary !== undefined){let data168 = data137.summary;const _errs631 = errors;if(errors === _errs631){if(typeof data168 === "string"){if(func1(data168) < 1){const err403 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}}else {const err404 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}var valid197 = _errs631 === errors;}else {var valid197 = true;}}}}}}}}}}}}}else {const err405 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}}var _valid57 = _errs551 === errors;valid188 = valid188 || _valid57;if(_valid57){var props23 = true;}const _errs633 = errors;const _errs635 = errors;let valid212 = true;const _errs636 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing61;if((data137.label === undefined) && (missing61 = "label")){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}}}var _valid61 = _errs636 === errors;errors = _errs635;if(vErrors !== null){if(_errs635){vErrors.length = _errs635;}else {vErrors = null;}}let ifClause12;if(_valid61){const _errs638 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err408 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}}var _valid61 = _errs638 === errors;valid212 = _valid61;if(valid212){var props24 = {};props24.total = true;props24.label = true;}ifClause12 = "then";}else {const _errs641 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data171 = data137.total;if(!(data171 && typeof data171 == "object" && !Array.isArray(data171))){const err409 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}}var _valid61 = _errs641 === errors;valid212 = _valid61;if(valid212){if(props24 !== true){props24 = props24 || {};props24.total = true;}}ifClause12 = "else";}if(!valid212){const err410 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/if",keyword:"if",params:{failingKeyword: ifClause12},message:"must match \""+ifClause12+"\" schema"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}if(errors === _errs633){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing62;if(((data137.label === undefined) && (missing62 = "label")) || ((data137.total === undefined) && (missing62 = "total"))){const err411 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/required",keyword:"required",params:{missingProperty: missing62},message:"must have required property '"+missing62+"'"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}else {const _errs644 = errors;for(const key4 in data137){if(!(((key4 === "label") || (key4 === "total")) || (key4 === "summary"))){const err412 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;break;}}if(_errs644 === errors){if(data137.label !== undefined){let data172 = data137.label;const _errs645 = errors;if(!(((data172 === "reported") || (data172 === "calculated")) || (data172 === "unknown"))){const err413 = {instancePath:instancePath+"/cost/label",schemaPath:"#/components/schemas/CostLabel/enum",keyword:"enum",params:{allowedValues: schema119.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}var valid216 = _errs645 === errors;}else {var valid216 = true;}if(valid216){if(data137.total !== undefined){const _errs647 = errors;if(!(validate117(data137.total, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);errors = vErrors.length;}var valid216 = _errs647 === errors;}else {var valid216 = true;}if(valid216){if(data137.summary !== undefined){let data174 = data137.summary;const _errs648 = errors;const _errs649 = errors;if(errors === _errs649){if(typeof data174 === "string"){if(func1(data174) < 1){const err414 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}else {const err415 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}var valid216 = _errs648 === errors;}else {var valid216 = true;}}}}}}else {const err416 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}var _valid57 = _errs633 === errors;valid188 = valid188 || _valid57;if(_valid57){if(props23 !== true){props23 = true;}}const _errs651 = errors;if(data137 !== null){const err417 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid57 = _errs651 === errors;valid188 = valid188 || _valid57;if(!valid188){const err418 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs550;if(vErrors !== null){if(_errs550){vErrors.length = _errs550;}else {vErrors = null;}}}var valid0 = _errs549 === errors;}else {var valid0 = true;}if(valid0){if(data.charge !== undefined){let data175 = data.charge;const _errs653 = errors;const _errs654 = errors;let valid219 = false;const _errs655 = errors;if(!(validate363(data175, {instancePath:instancePath+"/charge",parentData:data,parentDataProperty:"charge",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate363.errors : vErrors.concat(validate363.errors);errors = vErrors.length;}var _valid62 = _errs655 === errors;valid219 = valid219 || _valid62;const _errs656 = errors;if(data175 !== null){const err419 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}var _valid62 = _errs656 === errors;valid219 = valid219 || _valid62;if(!valid219){const err420 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs654;if(vErrors !== null){if(_errs654){vErrors.length = _errs654;}else {vErrors = null;}}}var valid0 = _errs653 === errors;}else {var valid0 = true;}if(valid0){if(data.funded_until !== undefined){let data176 = data.funded_until;const _errs658 = errors;if((typeof data176 !== "string") && (data176 !== null)){validate445.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/type",keyword:"type",params:{type: schema320.properties.funded_until.type},message:"must be string,null"}];return false;}if(errors === _errs658){if(errors === _errs658){if(typeof data176 === "string"){if(!(formats0.validate(data176))){validate445.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs658 === errors;}else {var valid0 = true;}if(valid0){if(data.connectable !== undefined){const _errs660 = errors;if(typeof data.connectable !== "boolean"){validate445.errors = [{instancePath:instancePath+"/connectable",schemaPath:"#/properties/connectable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs660 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs662 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs662 === errors;}else {var valid0 = true;}if(valid0){if(data.route !== undefined){const _errs663 = errors;if(!(validate366(data.route, {instancePath:instancePath+"/route",parentData:data,parentDataProperty:"route",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate366.errors : vErrors.concat(validate366.errors);errors = vErrors.length;}var valid0 = _errs663 === errors;}else {var valid0 = true;}if(valid0){if(data.contract !== undefined){let data180 = data.contract;const _errs664 = errors;const _errs665 = errors;let valid220 = false;const _errs666 = errors;if(!(validate375(data180, {instancePath:instancePath+"/contract",parentData:data,parentDataProperty:"contract",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate375.errors : vErrors.concat(validate375.errors);errors = vErrors.length;}var _valid63 = _errs666 === errors;valid220 = valid220 || _valid63;if(_valid63){var props27 = {};props27.spec_version = true;props27.gates = true;props27.resources = true;props27.attested = true;}const _errs667 = errors;if(data180 !== null){const err421 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}var _valid63 = _errs667 === errors;valid220 = valid220 || _valid63;if(!valid220){const err422 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs665;if(vErrors !== null){if(_errs665){vErrors.length = _errs665;}else {vErrors = null;}}}var valid0 = _errs664 === errors;}else {var valid0 = true;}if(valid0){if(data.request !== undefined){let data181 = data.request;const _errs669 = errors;const _errs670 = errors;if(errors === _errs670){if(data181 && typeof data181 == "object" && !Array.isArray(data181)){}else {validate445.errors = [{instancePath:instancePath+"/request",schemaPath:"#/components/schemas/SandboxRequestSnapshot/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs669 === errors;}else {var valid0 = true;}if(valid0){if(data.hidden_secrets !== undefined){let data182 = data.hidden_secrets;const _errs673 = errors;if((!(data182 && typeof data182 == "object" && !Array.isArray(data182))) && (data182 !== null)){validate445.errors = [{instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/type",keyword:"type",params:{type: schema320.properties.hidden_secrets.type},message:"must be object,null"}];return false;}if(errors === _errs673){if(data182 && typeof data182 == "object" && !Array.isArray(data182)){for(const key5 in data182){const _errs675 = errors;const _errs676 = errors;if(errors === _errs676){if(typeof key5 === "string"){if(func1(key5) > 128){const err423 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters",propertyName:key5};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(func1(key5) < 1){const err424 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key5};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}else {if(!pattern5.test(key5)){const err425 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]{0,127}$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]{0,127}$"+"\"",propertyName:key5};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}}}}else {const err426 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key5};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}var valid222 = _errs675 === errors;if(!valid222){const err427 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/propertyNames",keyword:"propertyNames",params:{propertyName: key5},message:"property name must be valid"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;validate445.errors = vErrors;return false;break;}}if(valid222){for(const key6 in data182){const _errs679 = errors;if(!(validate379(data182[key6], {instancePath:instancePath+"/hidden_secrets/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data182,parentDataProperty:key6,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate379.errors : vErrors.concat(validate379.errors);errors = vErrors.length;}var valid224 = _errs679 === errors;if(!valid224){break;}}}}}var valid0 = _errs673 === errors;}else {var valid0 = true;}if(valid0){if(data.tcp_ports !== undefined){let data184 = data.tcp_ports;const _errs680 = errors;if((!(Array.isArray(data184))) && (data184 !== null)){validate445.errors = [{instancePath:instancePath+"/tcp_ports",schemaPath:"#/properties/tcp_ports/type",keyword:"type",params:{type: schema320.properties.tcp_ports.type},message:"must be array,null"}];return false;}if(errors === _errs680){if(Array.isArray(data184)){var valid225 = true;const len4 = data184.length;for(let i4=0; i4<len4; i4++){let data185 = data184[i4];const _errs682 = errors;const _errs683 = errors;if(errors === _errs683){if(data185 && typeof data185 == "object" && !Array.isArray(data185)){let missing63;if((((data185.host === undefined) && (missing63 = "host")) || ((data185.port === undefined) && (missing63 = "port"))) || ((data185.tls === undefined) && (missing63 = "tls"))){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/required",keyword:"required",params:{missingProperty: missing63},message:"must have required property '"+missing63+"'"}];return false;}else {if(data185.host !== undefined){let data186 = data185.host;const _errs685 = errors;if(errors === _errs685){if(typeof data186 === "string"){if(func1(data186) < 1){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid227 = _errs685 === errors;}else {var valid227 = true;}if(valid227){if(data185.port !== undefined){let data187 = data185.port;const _errs687 = errors;const _errs688 = errors;const _errs689 = errors;let valid229 = false;const _errs690 = errors;if(!(((typeof data187 == "number") && (!(data187 % 1) && !isNaN(data187))) && (isFinite(data187)))){const err428 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}var _valid64 = _errs690 === errors;valid229 = valid229 || _valid64;const _errs692 = errors;if(typeof data187 !== "bigint"){const err429 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}var _valid64 = _errs692 === errors;valid229 = valid229 || _valid64;if(!valid229){const err430 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs689;if(vErrors !== null){if(_errs689){vErrors.length = _errs689;}else {vErrors = null;}}}var valid228 = _errs688 === errors;if(valid228){if(typeof data187 === "bigint"){if(data187 < 1){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data187 > 65535){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs687){if((typeof data187 == "number") && (isFinite(data187))){if(data187 > 65535 || isNaN(data187)){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data187 < 1 || isNaN(data187)){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid227 = _errs687 === errors;}else {var valid227 = true;}if(valid227){if(data185.tls !== undefined){let data188 = data185.tls;const _errs693 = errors;if(typeof data188 !== "string"){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data188 === "none") || (data188 === "terminated"))){validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/enum",keyword:"enum",params:{allowedValues: schema452.properties.tls.enum},message:"must be equal to one of the allowed values"}];return false;}var valid227 = _errs693 === errors;}else {var valid227 = true;}}}}}else {validate445.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid225 = _errs682 === errors;if(!valid225){break;}}}}var valid0 = _errs680 === errors;}else {var valid0 = true;}if(valid0){if(data.recorder !== undefined){let data189 = data.recorder;const _errs695 = errors;if((!(data189 && typeof data189 == "object" && !Array.isArray(data189))) && (data189 !== null)){validate445.errors = [{instancePath:instancePath+"/recorder",schemaPath:"#/properties/recorder/type",keyword:"type",params:{type: schema320.properties.recorder.type},message:"must be object,null"}];return false;}var valid0 = _errs695 === errors;}else {var valid0 = true;}if(valid0){if(data.limits !== undefined){const _errs697 = errors;if(!(validate381(data.limits, {instancePath:instancePath+"/limits",parentData:data,parentDataProperty:"limits",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate381.errors : vErrors.concat(validate381.errors);errors = vErrors.length;}var valid0 = _errs697 === errors;}else {var valid0 = true;}if(valid0){if(data.volume !== undefined){let data191 = data.volume;const _errs698 = errors;const _errs699 = errors;let valid230 = false;const _errs700 = errors;if(!(validate383(data191, {instancePath:instancePath+"/volume",parentData:data,parentDataProperty:"volume",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate383.errors : vErrors.concat(validate383.errors);errors = vErrors.length;}var _valid65 = _errs700 === errors;valid230 = valid230 || _valid65;if(_valid65){var props28 = {};props28.id = true;props28.path = true;props28.access = true;props28.restored_checkpoint = true;props28.restore_duration_ms = true;}const _errs701 = errors;if(data191 !== null){const err431 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}var _valid65 = _errs701 === errors;valid230 = valid230 || _valid65;if(!valid230){const err432 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;validate445.errors = vErrors;return false;}else {errors = _errs699;if(vErrors !== null){if(_errs699){vErrors.length = _errs699;}else {vErrors = null;}}}var valid0 = _errs698 === errors;}else {var valid0 = true;}if(valid0){if(data.operation_id !== undefined){let data192 = data.operation_id;const _errs703 = errors;if((typeof data192 !== "string") && (data192 !== null)){validate445.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/type",keyword:"type",params:{type: schema320.properties.operation_id.type},message:"must be string,null"}];return false;}if(errors === _errs703){if(typeof data192 === "string"){if(func1(data192) < 1){validate445.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs703 === errors;}else {var valid0 = true;}if(valid0){if(data.account !== undefined){let data193 = data.account;const _errs705 = errors;if(errors === _errs705){if(data193 && typeof data193 == "object" && !Array.isArray(data193)){let missing64;if(((data193.healthy === undefined) && (missing64 = "healthy")) || ((data193.detail === undefined) && (missing64 = "detail"))){validate445.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/required",keyword:"required",params:{missingProperty: missing64},message:"must have required property '"+missing64+"'"}];return false;}else {if(data193.healthy !== undefined){const _errs707 = errors;if(typeof data193.healthy !== "boolean"){validate445.errors = [{instancePath:instancePath+"/account/healthy",schemaPath:"#/properties/account/properties/healthy/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid231 = _errs707 === errors;}else {var valid231 = true;}if(valid231){if(data193.detail !== undefined){let data195 = data193.detail;const _errs709 = errors;if((typeof data195 !== "string") && (data195 !== null)){validate445.errors = [{instancePath:instancePath+"/account/detail",schemaPath:"#/properties/account/properties/detail/type",keyword:"type",params:{type: schema320.properties.account.properties.detail.type},message:"must be string,null"}];return false;}var valid231 = _errs709 === errors;}else {var valid231 = true;}}}}else {validate445.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs705 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate445.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate445.errors = vErrors;return errors === 0;}validate445.evaluated = {"props":{"id":true,"state":true,"state_reason":true,"failure":true,"native_state":true,"observed_at":true,"state_recorded_at":true,"created_at":true,"expires_at":true,"ready_at":true,"ended_at":true,"created_at_source":true,"created_at_how":true,"created_at_step":true,"ready_at_source":true,"ready_at_how":true,"ready_at_step":true,"ended_at_source":true,"ended_at_how":true,"ended_at_step":true,"cost_source":true,"cost_how":true,"cost_step":true,"origin":true,"labels":true,"name":true,"resources":true,"image":true,"image_setup":true,"usage":true,"cost":true,"charge":true,"funded_until":true,"connectable":true,"lifetime":true,"route":true,"contract":true,"request":true,"hidden_secrets":true,"tcp_ports":true,"recorder":true,"limits":true,"volume":true,"operation_id":true,"account":true},"dynamicProps":false,"dynamicItems":false};exports.validate9 = validate468;function validate468(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate468.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((((((((((data.id === undefined) && (missing0 = "id")) || ((data.state === undefined) && (missing0 = "state"))) || ((data.state_reason === undefined) && (missing0 = "state_reason"))) || ((data.failure === undefined) && (missing0 = "failure"))) || ((data.native_state === undefined) && (missing0 = "native_state"))) || ((data.observed_at === undefined) && (missing0 = "observed_at"))) || ((data.state_recorded_at === undefined) && (missing0 = "state_recorded_at"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.ready_at === undefined) && (missing0 = "ready_at"))) || ((data.ended_at === undefined) && (missing0 = "ended_at"))) || ((data.labels === undefined) && (missing0 = "labels"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))) || ((data.route === undefined) && (missing0 = "route"))) || ((data.contract === undefined) && (missing0 = "contract"))) || ((data.request === undefined) && (missing0 = "request"))) || ((data.hidden_secrets === undefined) && (missing0 = "hidden_secrets"))) || ((data.tcp_ports === undefined) && (missing0 = "tcp_ports"))) || ((data.recorder === undefined) && (missing0 = "recorder"))) || ((data.limits === undefined) && (missing0 = "limits"))){validate468.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate468.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate468.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate468.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate468.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){const _errs3 = errors;if(typeof data.state !== "string"){validate468.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.state_reason !== undefined){let data2 = data.state_reason;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate468.errors = [{instancePath:instancePath+"/state_reason",schemaPath:"#/properties/state_reason/type",keyword:"type",params:{type: schema320.properties.state_reason.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data3 = data.failure;const _errs7 = errors;const _errs8 = errors;let valid1 = false;const _errs9 = errors;if(!(validate330(data3, {instancePath:instancePath+"/failure",parentData:data,parentDataProperty:"failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate330.errors : vErrors.concat(validate330.errors);errors = vErrors.length;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.summary = true;props0.provider_state = true;props0.native_code = true;props0.native_message = true;props0.observed_at = true;}const _errs10 = errors;if(data3 !== null){const err0 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/failure",schemaPath:"#/properties/failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.native_state !== undefined){let data4 = data.native_state;const _errs12 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate468.errors = [{instancePath:instancePath+"/native_state",schemaPath:"#/properties/native_state/type",keyword:"type",params:{type: schema320.properties.native_state.type},message:"must be string,null"}];return false;}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.observed_at !== undefined){let data5 = data.observed_at;const _errs14 = errors;if(errors === _errs14){if(errors === _errs14){if(typeof data5 === "string"){if(!(formats0.validate(data5))){validate468.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate468.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.state_recorded_at !== undefined){let data6 = data.state_recorded_at;const _errs16 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate468.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/type",keyword:"type",params:{type: schema320.properties.state_recorded_at.type},message:"must be string,null"}];return false;}if(errors === _errs16){if(errors === _errs16){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate468.errors = [{instancePath:instancePath+"/state_recorded_at",schemaPath:"#/properties/state_recorded_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data7 = data.created_at;const _errs18 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate468.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: schema320.properties.created_at.type},message:"must be string,null"}];return false;}if(errors === _errs18){if(errors === _errs18){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate468.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data8 = data.expires_at;const _errs20 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate468.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: schema320.properties.expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs20){if(errors === _errs20){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate468.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at !== undefined){let data9 = data.ready_at;const _errs22 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate468.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/type",keyword:"type",params:{type: schema320.properties.ready_at.type},message:"must be string,null"}];return false;}if(errors === _errs22){if(errors === _errs22){if(typeof data9 === "string"){if(!(formats0.validate(data9))){validate468.errors = [{instancePath:instancePath+"/ready_at",schemaPath:"#/properties/ready_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at !== undefined){let data10 = data.ended_at;const _errs24 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate468.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/type",keyword:"type",params:{type: schema320.properties.ended_at.type},message:"must be string,null"}];return false;}if(errors === _errs24){if(errors === _errs24){if(typeof data10 === "string"){if(!(formats0.validate(data10))){validate468.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs24 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_source !== undefined){let data11 = data.created_at_source;const _errs26 = errors;const _errs27 = errors;let valid2 = false;const _errs28 = errors;if(typeof data11 !== "string"){const err2 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!((((((data11 === "provider") || (data11 === "published")) || (data11 === "measured")) || (data11 === "recorded")) || (data11 === "calculated")) || (data11 === "unknown"))){const err3 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs28 === errors;valid2 = valid2 || _valid1;const _errs31 = errors;if(data11 !== null){const err4 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs31 === errors;valid2 = valid2 || _valid1;if(!valid2){const err5 = {instancePath:instancePath+"/created_at_source",schemaPath:"#/properties/created_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid0 = _errs26 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_how !== undefined){let data12 = data.created_at_how;const _errs33 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate468.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/type",keyword:"type",params:{type: schema320.properties.created_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs33){if(typeof data12 === "string"){if(func1(data12) < 1){validate468.errors = [{instancePath:instancePath+"/created_at_how",schemaPath:"#/properties/created_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at_step !== undefined){let data13 = data.created_at_step;const _errs35 = errors;const _errs36 = errors;const _errs37 = errors;let valid5 = false;const _errs38 = errors;if((!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))) && (data13 !== null)){const err6 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.created_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs38 === errors;valid5 = valid5 || _valid2;const _errs40 = errors;if(typeof data13 !== "bigint"){const err7 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs40 === errors;valid5 = valid5 || _valid2;if(!valid5){const err8 = {instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid4 = _errs36 === errors;if(valid4){if(typeof data13 === "bigint"){if(data13 < 1){validate468.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs35){if((typeof data13 == "number") && (isFinite(data13))){if(data13 < 1 || isNaN(data13)){validate468.errors = [{instancePath:instancePath+"/created_at_step",schemaPath:"#/properties/created_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_source !== undefined){let data14 = data.ready_at_source;const _errs41 = errors;const _errs42 = errors;let valid6 = false;const _errs43 = errors;if(typeof data14 !== "string"){const err9 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!((((((data14 === "provider") || (data14 === "published")) || (data14 === "measured")) || (data14 === "recorded")) || (data14 === "calculated")) || (data14 === "unknown"))){const err10 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs43 === errors;valid6 = valid6 || _valid3;const _errs46 = errors;if(data14 !== null){const err11 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs46 === errors;valid6 = valid6 || _valid3;if(!valid6){const err12 = {instancePath:instancePath+"/ready_at_source",schemaPath:"#/properties/ready_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_how !== undefined){let data15 = data.ready_at_how;const _errs48 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate468.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/type",keyword:"type",params:{type: schema320.properties.ready_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs48){if(typeof data15 === "string"){if(func1(data15) < 1){validate468.errors = [{instancePath:instancePath+"/ready_at_how",schemaPath:"#/properties/ready_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs48 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_at_step !== undefined){let data16 = data.ready_at_step;const _errs50 = errors;const _errs51 = errors;const _errs52 = errors;let valid9 = false;const _errs53 = errors;if((!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))) && (data16 !== null)){const err13 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ready_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs53 === errors;valid9 = valid9 || _valid4;const _errs55 = errors;if(typeof data16 !== "bigint"){const err14 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid4 = _errs55 === errors;valid9 = valid9 || _valid4;if(!valid9){const err15 = {instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid8 = _errs51 === errors;if(valid8){if(typeof data16 === "bigint"){if(data16 < 1){validate468.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs50){if((typeof data16 == "number") && (isFinite(data16))){if(data16 < 1 || isNaN(data16)){validate468.errors = [{instancePath:instancePath+"/ready_at_step",schemaPath:"#/properties/ready_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs50 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_source !== undefined){let data17 = data.ended_at_source;const _errs56 = errors;const _errs57 = errors;let valid10 = false;const _errs58 = errors;if(typeof data17 !== "string"){const err16 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(!((((((data17 === "provider") || (data17 === "published")) || (data17 === "measured")) || (data17 === "recorded")) || (data17 === "calculated")) || (data17 === "unknown"))){const err17 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs58 === errors;valid10 = valid10 || _valid5;const _errs61 = errors;if(data17 !== null){const err18 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid5 = _errs61 === errors;valid10 = valid10 || _valid5;if(!valid10){const err19 = {instancePath:instancePath+"/ended_at_source",schemaPath:"#/properties/ended_at_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs57;if(vErrors !== null){if(_errs57){vErrors.length = _errs57;}else {vErrors = null;}}}var valid0 = _errs56 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_how !== undefined){let data18 = data.ended_at_how;const _errs63 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate468.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/type",keyword:"type",params:{type: schema320.properties.ended_at_how.type},message:"must be string,null"}];return false;}if(errors === _errs63){if(typeof data18 === "string"){if(func1(data18) < 1){validate468.errors = [{instancePath:instancePath+"/ended_at_how",schemaPath:"#/properties/ended_at_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs63 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at_step !== undefined){let data19 = data.ended_at_step;const _errs65 = errors;const _errs66 = errors;const _errs67 = errors;let valid13 = false;const _errs68 = errors;if((!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))) && (data19 !== null)){const err20 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.ended_at_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid6 = _errs68 === errors;valid13 = valid13 || _valid6;const _errs70 = errors;if(typeof data19 !== "bigint"){const err21 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid6 = _errs70 === errors;valid13 = valid13 || _valid6;if(!valid13){const err22 = {instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}}var valid12 = _errs66 === errors;if(valid12){if(typeof data19 === "bigint"){if(data19 < 1){validate468.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs65){if((typeof data19 == "number") && (isFinite(data19))){if(data19 < 1 || isNaN(data19)){validate468.errors = [{instancePath:instancePath+"/ended_at_step",schemaPath:"#/properties/ended_at_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs65 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_source !== undefined){let data20 = data.cost_source;const _errs71 = errors;const _errs72 = errors;let valid14 = false;const _errs73 = errors;if(typeof data20 !== "string"){const err23 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!((((((data20 === "provider") || (data20 === "published")) || (data20 === "measured")) || (data20 === "recorded")) || (data20 === "calculated")) || (data20 === "unknown"))){const err24 = {instancePath:instancePath+"/cost_source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid7 = _errs73 === errors;valid14 = valid14 || _valid7;const _errs76 = errors;if(data20 !== null){const err25 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid7 = _errs76 === errors;valid14 = valid14 || _valid7;if(!valid14){const err26 = {instancePath:instancePath+"/cost_source",schemaPath:"#/properties/cost_source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}var valid0 = _errs71 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_how !== undefined){let data21 = data.cost_how;const _errs78 = errors;if((typeof data21 !== "string") && (data21 !== null)){validate468.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/type",keyword:"type",params:{type: schema320.properties.cost_how.type},message:"must be string,null"}];return false;}if(errors === _errs78){if(typeof data21 === "string"){if(func1(data21) < 1){validate468.errors = [{instancePath:instancePath+"/cost_how",schemaPath:"#/properties/cost_how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs78 === errors;}else {var valid0 = true;}if(valid0){if(data.cost_step !== undefined){let data22 = data.cost_step;const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;let valid17 = false;const _errs83 = errors;if((!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) && (data22 !== null)){const err27 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.cost_step.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid8 = _errs83 === errors;valid17 = valid17 || _valid8;const _errs85 = errors;if(typeof data22 !== "bigint"){const err28 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid8 = _errs85 === errors;valid17 = valid17 || _valid8;if(!valid17){const err29 = {instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var valid16 = _errs81 === errors;if(valid16){if(typeof data22 === "bigint"){if(data22 < 1){validate468.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs80){if((typeof data22 == "number") && (isFinite(data22))){if(data22 < 1 || isNaN(data22)){validate468.errors = [{instancePath:instancePath+"/cost_step",schemaPath:"#/properties/cost_step/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs80 === errors;}else {var valid0 = true;}if(valid0){if(data.origin !== undefined){let data23 = data.origin;const _errs86 = errors;const _errs87 = errors;let valid18 = false;const _errs88 = errors;if(!(validate332(data23, {instancePath:instancePath+"/origin",parentData:data,parentDataProperty:"origin",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate332.errors : vErrors.concat(validate332.errors);errors = vErrors.length;}var _valid9 = _errs88 === errors;valid18 = valid18 || _valid9;const _errs89 = errors;if(data23 !== null){const err30 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid9 = _errs89 === errors;valid18 = valid18 || _valid9;if(!valid18){const err31 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var valid0 = _errs86 === errors;}else {var valid0 = true;}if(valid0){if(data.labels !== undefined){let data24 = data.labels;const _errs91 = errors;if(errors === _errs91){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){for(const key0 in data24){const _errs94 = errors;if(typeof data24[key0] !== "string"){validate468.errors = [{instancePath:instancePath+"/labels/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid19 = _errs94 === errors;if(!valid19){break;}}}else {validate468.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs91 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){let data26 = data.name;const _errs96 = errors;if((typeof data26 !== "string") && (data26 !== null)){validate468.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: schema320.properties.name.type},message:"must be string,null"}];return false;}var valid0 = _errs96 === errors;}else {var valid0 = true;}if(valid0){if(data.resources !== undefined){let data27 = data.resources;const _errs98 = errors;if(errors === _errs98){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.cpu !== undefined){let data28 = data27.cpu;const _errs100 = errors;const _errs101 = errors;const _errs102 = errors;let valid22 = false;const _errs103 = errors;if((!((typeof data28 == "number") && (isFinite(data28)))) && (data28 !== null)){const err32 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.cpu.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid10 = _errs103 === errors;valid22 = valid22 || _valid10;const _errs105 = errors;if(typeof data28 !== "bigint"){const err33 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid10 = _errs105 === errors;valid22 = valid22 || _valid10;if(!valid22){const err34 = {instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}var valid21 = _errs101 === errors;if(valid21){if(typeof data28 === "bigint"){if(data28 <= 0){validate468.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs100){if((typeof data28 == "number") && (isFinite(data28))){if(data28 <= 0 || isNaN(data28)){validate468.errors = [{instancePath:instancePath+"/resources/cpu",schemaPath:"#/properties/resources/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid20 = _errs100 === errors;}else {var valid20 = true;}if(valid20){if(data27.memory_mib !== undefined){let data29 = data27.memory_mib;const _errs106 = errors;const _errs107 = errors;const _errs108 = errors;let valid24 = false;const _errs109 = errors;if((!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))) && (data29 !== null)){const err35 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.memory_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid11 = _errs109 === errors;valid24 = valid24 || _valid11;const _errs111 = errors;if(typeof data29 !== "bigint"){const err36 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid11 = _errs111 === errors;valid24 = valid24 || _valid11;if(!valid24){const err37 = {instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs108;if(vErrors !== null){if(_errs108){vErrors.length = _errs108;}else {vErrors = null;}}}var valid23 = _errs107 === errors;if(valid23){if(typeof data29 === "bigint"){if(data29 < 1){validate468.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs106){if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 1 || isNaN(data29)){validate468.errors = [{instancePath:instancePath+"/resources/memory_mib",schemaPath:"#/properties/resources/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs106 === errors;}else {var valid20 = true;}if(valid20){if(data27.disk_mib !== undefined){let data30 = data27.disk_mib;const _errs112 = errors;const _errs113 = errors;const _errs114 = errors;let valid26 = false;const _errs115 = errors;if((!(((typeof data30 == "number") && (!(data30 % 1) && !isNaN(data30))) && (isFinite(data30)))) && (data30 !== null)){const err38 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.resources.properties.disk_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid12 = _errs115 === errors;valid26 = valid26 || _valid12;const _errs117 = errors;if(typeof data30 !== "bigint"){const err39 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid12 = _errs117 === errors;valid26 = valid26 || _valid12;if(!valid26){const err40 = {instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}}var valid25 = _errs113 === errors;if(valid25){if(typeof data30 === "bigint"){if(data30 < 1){validate468.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs112){if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 1 || isNaN(data30)){validate468.errors = [{instancePath:instancePath+"/resources/disk_mib",schemaPath:"#/properties/resources/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid20 = _errs112 === errors;}else {var valid20 = true;}}}}else {validate468.errors = [{instancePath:instancePath+"/resources",schemaPath:"#/properties/resources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs98 === errors;}else {var valid0 = true;}if(valid0){if(data.image !== undefined){let data31 = data.image;const _errs118 = errors;const _errs119 = errors;let valid27 = false;const _errs120 = errors;if(!(validate338(data31, {instancePath:instancePath+"/image",parentData:data,parentDataProperty:"image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate338.errors : vErrors.concat(validate338.errors);errors = vErrors.length;}var _valid13 = _errs120 === errors;valid27 = valid27 || _valid13;if(_valid13){var props2 = {};props2.value = true;props2.source = true;}const _errs121 = errors;if(data31 !== null){const err41 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid13 = _errs121 === errors;valid27 = valid27 || _valid13;if(!valid27){const err42 = {instancePath:instancePath+"/image",schemaPath:"#/properties/image/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}var valid0 = _errs118 === errors;}else {var valid0 = true;}if(valid0){if(data.image_setup !== undefined){let data32 = data.image_setup;const _errs123 = errors;const _errs124 = errors;if(errors === _errs124){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){let missing1;if(((data32.provider === undefined) && (missing1 = "provider")) || ((data32.duration_ms === undefined) && (missing1 = "duration_ms"))){validate468.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data32.provider !== undefined){let data33 = data32.provider;const _errs126 = errors;if(errors === _errs126){if(typeof data33 === "string"){if(func1(data33) < 1){validate468.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate468.errors = [{instancePath:instancePath+"/image_setup/provider",schemaPath:"#/components/schemas/SandboxImageSetup/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid29 = _errs126 === errors;}else {var valid29 = true;}if(valid29){if(data32.duration_ms !== undefined){let data34 = data32.duration_ms;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;let valid31 = false;const _errs131 = errors;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err43 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid14 = _errs131 === errors;valid31 = valid31 || _valid14;const _errs133 = errors;if(typeof data34 !== "bigint"){const err44 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid14 = _errs133 === errors;valid31 = valid31 || _valid14;if(!valid31){const err45 = {instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}var valid30 = _errs129 === errors;if(valid30){if(typeof data34 === "bigint"){if(data34 < 0){validate468.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs128){if((typeof data34 == "number") && (isFinite(data34))){if(data34 < 0 || isNaN(data34)){validate468.errors = [{instancePath:instancePath+"/image_setup/duration_ms",schemaPath:"#/components/schemas/SandboxImageSetup/properties/duration_ms/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid29 = _errs128 === errors;}else {var valid29 = true;}}}}else {validate468.errors = [{instancePath:instancePath+"/image_setup",schemaPath:"#/components/schemas/SandboxImageSetup/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs123 === errors;}else {var valid0 = true;}if(valid0){if(data.usage !== undefined){let data35 = data.usage;const _errs134 = errors;const _errs135 = errors;let valid32 = false;const _errs136 = errors;if(errors === _errs136){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing2;if(((((((data35.provider === undefined) && (missing2 = "provider")) || ((data35.started === undefined) && (missing2 = "started"))) || ((data35.region === undefined) && (missing2 = "region"))) || ((data35.size === undefined) && (missing2 = "size"))) || ((data35.intervals === undefined) && (missing2 = "intervals"))) || ((data35.creations === undefined) && (missing2 = "creations"))){const err46 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {const _errs138 = errors;for(const key1 in data35){if(!(func237.call(schema320.properties.usage.anyOf[0].properties, key1))){const err47 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;break;}}if(_errs138 === errors){if(data35.provider !== undefined){let data36 = data35.provider;const _errs139 = errors;if(errors === _errs139){if(typeof data36 === "string"){if(!pattern42.test(data36)){const err48 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/properties/usage/anyOf/0/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}var valid33 = _errs139 === errors;}else {var valid33 = true;}if(valid33){if(data35.class !== undefined){let data37 = data35.class;const _errs141 = errors;const _errs143 = errors;let valid34 = true;const _errs144 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing3;if((data37.source === undefined) && (missing3 = "source")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data37.source !== undefined){if("unknown" !== data37.source){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}var _valid16 = _errs144 === errors;errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}let ifClause0;if(_valid16){const _errs147 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(data37.name !== null){const err52 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid16 = _errs147 === errors;valid34 = _valid16;if(valid34){var props3 = {};props3.name = true;props3.source = true;}ifClause0 = "then";}else {const _errs150 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.name !== undefined){if(typeof data37.name !== "string"){const err53 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}var _valid16 = _errs150 === errors;valid34 = _valid16;if(valid34){if(props3 !== true){props3 = props3 || {};props3.name = true;}}ifClause0 = "else";}if(!valid34){const err54 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(errors === _errs141){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing4;if(((((data37.name === undefined) && (missing4 = "name")) || ((data37.source === undefined) && (missing4 = "source"))) || ((data37.observed_at === undefined) && (missing4 = "observed_at"))) || ((data37.how === undefined) && (missing4 = "how"))){const err55 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(props3 !== true){props3 = props3 || {};props3.name = true;props3.source = true;props3.observed_at = true;props3.how = true;}if(data37.name !== undefined){let data41 = data37.name;const _errs153 = errors;if((typeof data41 !== "string") && (data41 !== null)){const err56 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.class.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors === _errs153){if(typeof data41 === "string"){if(func1(data41) < 1){const err57 = {instancePath:instancePath+"/usage/class/name",schemaPath:"#/properties/usage/anyOf/0/properties/class/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var valid39 = _errs153 === errors;}else {var valid39 = true;}if(valid39){if(data37.source !== undefined){let data42 = data37.source;const _errs155 = errors;if(typeof data42 !== "string"){const err58 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(!((((((data42 === "provider") || (data42 === "published")) || (data42 === "measured")) || (data42 === "recorded")) || (data42 === "calculated")) || (data42 === "unknown"))){const err59 = {instancePath:instancePath+"/usage/class/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid39 = _errs155 === errors;}else {var valid39 = true;}if(valid39){if(data37.observed_at !== undefined){let data43 = data37.observed_at;const _errs158 = errors;const _errs159 = errors;if(errors === _errs159){if(errors === _errs159){if(typeof data43 === "string"){if(!pattern78.test(data43)){const err60 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(!(formats0.validate(data43))){const err61 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath:instancePath+"/usage/class/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var valid39 = _errs158 === errors;}else {var valid39 = true;}if(valid39){if(data37.how !== undefined){let data44 = data37.how;const _errs161 = errors;const _errs162 = errors;if(errors === _errs162){if(typeof data44 === "string"){if(func1(data44) < 1){const err63 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/usage/class/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}var valid39 = _errs161 === errors;}else {var valid39 = true;}}}}}}else {const err65 = {instancePath:instancePath+"/usage/class",schemaPath:"#/properties/usage/anyOf/0/properties/class/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid33 = _errs141 === errors;}else {var valid33 = true;}if(valid33){if(data35.started !== undefined){let data45 = data35.started;const _errs164 = errors;const _errs166 = errors;let valid43 = true;const _errs167 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing5;if((data45.source === undefined) && (missing5 = "source")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data45.source !== undefined){if("unknown" !== data45.source){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}var _valid17 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}let ifClause1;if(_valid17){const _errs170 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){if(data45.at !== null){const err68 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/then/properties/at/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid17 = _errs170 === errors;valid43 = _valid17;if(valid43){var props4 = {};props4.at = true;props4.source = true;}ifClause1 = "then";}else {const _errs173 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.at !== undefined){let data48 = data45.at;const _errs175 = errors;if(errors === _errs175){if(errors === _errs175){if(typeof data48 === "string"){if(!pattern78.test(data48)){const err69 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(!(formats0.validate(data48))){const err70 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}var _valid17 = _errs173 === errors;valid43 = _valid17;if(valid43){if(props4 !== true){props4 = props4 || {};props4.at = true;}}ifClause1 = "else";}if(!valid43){const err72 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors === _errs164){if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing6;if(((((data45.at === undefined) && (missing6 = "at")) || ((data45.source === undefined) && (missing6 = "source"))) || ((data45.observed_at === undefined) && (missing6 = "observed_at"))) || ((data45.how === undefined) && (missing6 = "how"))){const err73 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(props4 !== true){props4 = props4 || {};props4.at = true;props4.source = true;props4.observed_at = true;props4.how = true;}if(data45.at !== undefined){let data49 = data45.at;const _errs177 = errors;if((typeof data49 !== "string") && (data49 !== null)){const err74 = {instancePath:instancePath+"/usage/started/at",schemaPath:"#/properties/usage/anyOf/0/properties/started/properties/at/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.started.properties.at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid49 = _errs177 === errors;}else {var valid49 = true;}if(valid49){if(data45.source !== undefined){let data50 = data45.source;const _errs179 = errors;if(typeof data50 !== "string"){const err75 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(!((((((data50 === "provider") || (data50 === "published")) || (data50 === "measured")) || (data50 === "recorded")) || (data50 === "calculated")) || (data50 === "unknown"))){const err76 = {instancePath:instancePath+"/usage/started/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var valid49 = _errs179 === errors;}else {var valid49 = true;}if(valid49){if(data45.observed_at !== undefined){let data51 = data45.observed_at;const _errs182 = errors;const _errs183 = errors;if(errors === _errs183){if(errors === _errs183){if(typeof data51 === "string"){if(!pattern78.test(data51)){const err77 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(!(formats0.validate(data51))){const err78 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/usage/started/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var valid49 = _errs182 === errors;}else {var valid49 = true;}if(valid49){if(data45.how !== undefined){let data52 = data45.how;const _errs185 = errors;const _errs186 = errors;if(errors === _errs186){if(typeof data52 === "string"){if(func1(data52) < 1){const err80 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/usage/started/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var valid49 = _errs185 === errors;}else {var valid49 = true;}}}}}}else {const err82 = {instancePath:instancePath+"/usage/started",schemaPath:"#/properties/usage/anyOf/0/properties/started/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid33 = _errs164 === errors;}else {var valid33 = true;}if(valid33){if(data35.region !== undefined){let data53 = data35.region;const _errs188 = errors;const _errs190 = errors;let valid53 = true;const _errs191 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing7;if((data53.source === undefined) && (missing7 = "source")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data53.source !== undefined){if("unknown" !== data53.source){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}}var _valid18 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}let ifClause2;if(_valid18){const _errs194 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(data53.name !== null){const err85 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/then/properties/name/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}var _valid18 = _errs194 === errors;valid53 = _valid18;if(valid53){var props5 = {};props5.name = true;props5.source = true;}ifClause2 = "then";}else {const _errs197 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.name !== undefined){if(typeof data53.name !== "string"){const err86 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/else/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}var _valid18 = _errs197 === errors;valid53 = _valid18;if(valid53){if(props5 !== true){props5 = props5 || {};props5.name = true;}}ifClause2 = "else";}if(!valid53){const err87 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(errors === _errs188){if(data53 && typeof data53 == "object" && !Array.isArray(data53)){let missing8;if(((((data53.name === undefined) && (missing8 = "name")) || ((data53.source === undefined) && (missing8 = "source"))) || ((data53.observed_at === undefined) && (missing8 = "observed_at"))) || ((data53.how === undefined) && (missing8 = "how"))){const err88 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(props5 !== true){props5 = props5 || {};props5.name = true;props5.source = true;props5.observed_at = true;props5.how = true;}if(data53.name !== undefined){let data57 = data53.name;const _errs200 = errors;if((typeof data57 !== "string") && (data57 !== null)){const err89 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.region.properties.name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(errors === _errs200){if(typeof data57 === "string"){if(func1(data57) < 1){const err90 = {instancePath:instancePath+"/usage/region/name",schemaPath:"#/properties/usage/anyOf/0/properties/region/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}var valid58 = _errs200 === errors;}else {var valid58 = true;}if(valid58){if(data53.source !== undefined){let data58 = data53.source;const _errs202 = errors;if(typeof data58 !== "string"){const err91 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(!((((((data58 === "provider") || (data58 === "published")) || (data58 === "measured")) || (data58 === "recorded")) || (data58 === "calculated")) || (data58 === "unknown"))){const err92 = {instancePath:instancePath+"/usage/region/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid58 = _errs202 === errors;}else {var valid58 = true;}if(valid58){if(data53.observed_at !== undefined){let data59 = data53.observed_at;const _errs205 = errors;const _errs206 = errors;if(errors === _errs206){if(errors === _errs206){if(typeof data59 === "string"){if(!pattern78.test(data59)){const err93 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(!(formats0.validate(data59))){const err94 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/usage/region/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}var valid58 = _errs205 === errors;}else {var valid58 = true;}if(valid58){if(data53.how !== undefined){let data60 = data53.how;const _errs208 = errors;const _errs209 = errors;if(errors === _errs209){if(typeof data60 === "string"){if(func1(data60) < 1){const err96 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/usage/region/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var valid58 = _errs208 === errors;}else {var valid58 = true;}}}}}}else {const err98 = {instancePath:instancePath+"/usage/region",schemaPath:"#/properties/usage/anyOf/0/properties/region/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var valid33 = _errs188 === errors;}else {var valid33 = true;}if(valid33){if(data35.size !== undefined){let data61 = data35.size;const _errs211 = errors;const _errs213 = errors;const _errs214 = errors;let valid63 = true;const _errs215 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing9;if((data61.gpu === undefined) && (missing9 = "gpu")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}var _valid19 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid19){const _errs216 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing10;if((data61.gpu_model === undefined) && (missing10 = "gpu_model")){const err100 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}var _valid19 = _errs216 === errors;valid63 = _valid19;}if(!valid63){const err101 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid62 = _errs213 === errors;if(valid62){const _errs217 = errors;const _errs218 = errors;let valid64 = true;const _errs219 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing11;if((data61.gpu_model === undefined) && (missing11 = "gpu_model")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}var _valid20 = _errs219 === errors;errors = _errs218;if(vErrors !== null){if(_errs218){vErrors.length = _errs218;}else {vErrors = null;}}if(_valid20){const _errs220 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing12;if((data61.gpu === undefined) && (missing12 = "gpu")){const err103 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var _valid20 = _errs220 === errors;valid64 = _valid20;}if(!valid64){const err104 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid62 = _errs217 === errors;if(valid62){const _errs221 = errors;let valid65 = true;const _errs222 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing13;if((data61.source === undefined) && (missing13 = "source")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data61.source !== undefined){if("unknown" !== data61.source){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}}var _valid21 = _errs222 === errors;errors = _errs221;if(vErrors !== null){if(_errs221){vErrors.length = _errs221;}else {vErrors = null;}}let ifClause3;if(_valid21){const _errs225 = errors;const _errs226 = errors;const _errs227 = errors;const _errs228 = errors;let valid69 = false;const _errs229 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing14;if((data61.cpu === undefined) && (missing14 = "cpu")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}var _valid22 = _errs229 === errors;valid69 = valid69 || _valid22;const _errs230 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing15;if((data61.memory_mib === undefined) && (missing15 = "memory_mib")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}var _valid22 = _errs230 === errors;valid69 = valid69 || _valid22;const _errs231 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing16;if((data61.disk_mib === undefined) && (missing16 = "disk_mib")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid22 = _errs231 === errors;valid69 = valid69 || _valid22;const _errs232 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing17;if((data61.gpu === undefined) && (missing17 = "gpu")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid22 = _errs232 === errors;valid69 = valid69 || _valid22;const _errs233 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing18;if((data61.gpu_model === undefined) && (missing18 = "gpu_model")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}var _valid22 = _errs233 === errors;valid69 = valid69 || _valid22;if(!valid69){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}}var valid68 = _errs227 === errors;if(valid68){const err113 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}}var _valid21 = _errs225 === errors;valid65 = _valid21;ifClause3 = "then";}else {const _errs234 = errors;const _errs235 = errors;let valid70 = false;const _errs236 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing19;if((data61.cpu === undefined) && (missing19 = "cpu")){const err114 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing19},message:"must have required property '"+missing19+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid23 = _errs236 === errors;valid70 = valid70 || _valid23;const _errs237 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing20;if((data61.memory_mib === undefined) && (missing20 = "memory_mib")){const err115 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing20},message:"must have required property '"+missing20+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var _valid23 = _errs237 === errors;valid70 = valid70 || _valid23;const _errs238 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing21;if((data61.disk_mib === undefined) && (missing21 = "disk_mib")){const err116 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing21},message:"must have required property '"+missing21+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var _valid23 = _errs238 === errors;valid70 = valid70 || _valid23;const _errs239 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing22;if((data61.gpu === undefined) && (missing22 = "gpu")){const err117 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing22},message:"must have required property '"+missing22+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var _valid23 = _errs239 === errors;valid70 = valid70 || _valid23;if(!valid70){const err118 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs235;if(vErrors !== null){if(_errs235){vErrors.length = _errs235;}else {vErrors = null;}}}var _valid21 = _errs234 === errors;valid65 = _valid21;ifClause3 = "else";}if(!valid65){const err119 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}if(errors === _errs211){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing23;if((((data61.source === undefined) && (missing23 = "source")) || ((data61.observed_at === undefined) && (missing23 = "observed_at"))) || ((data61.how === undefined) && (missing23 = "how"))){const err120 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/required",keyword:"required",params:{missingProperty: missing23},message:"must have required property '"+missing23+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data61.cpu !== undefined){let data63 = data61.cpu;const _errs240 = errors;const _errs241 = errors;const _errs242 = errors;let valid73 = false;const _errs243 = errors;if(!((typeof data63 == "number") && (isFinite(data63)))){const err121 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid24 = _errs243 === errors;valid73 = valid73 || _valid24;const _errs245 = errors;if(typeof data63 !== "bigint"){const err122 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var _valid24 = _errs245 === errors;valid73 = valid73 || _valid24;if(!valid73){const err123 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {errors = _errs242;if(vErrors !== null){if(_errs242){vErrors.length = _errs242;}else {vErrors = null;}}}var valid72 = _errs241 === errors;if(valid72){if(typeof data63 === "bigint"){if(data63 <= 0){const err124 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}if(errors === _errs240){if((typeof data63 == "number") && (isFinite(data63))){if(data63 <= 0 || isNaN(data63)){const err125 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}var valid71 = _errs240 === errors;}else {var valid71 = true;}if(valid71){if(data61.memory_mib !== undefined){let data64 = data61.memory_mib;const _errs246 = errors;const _errs247 = errors;const _errs248 = errors;let valid75 = false;const _errs249 = errors;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){const err126 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid25 = _errs249 === errors;valid75 = valid75 || _valid25;const _errs251 = errors;if(typeof data64 !== "bigint"){const err127 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}var _valid25 = _errs251 === errors;valid75 = valid75 || _valid25;if(!valid75){const err128 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs248;if(vErrors !== null){if(_errs248){vErrors.length = _errs248;}else {vErrors = null;}}}var valid74 = _errs247 === errors;if(valid74){if(typeof data64 === "bigint"){if(data64 < 1){const err129 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}if(errors === _errs246){if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 1 || isNaN(data64)){const err130 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}var valid71 = _errs246 === errors;}else {var valid71 = true;}if(valid71){if(data61.disk_mib !== undefined){let data65 = data61.disk_mib;const _errs252 = errors;const _errs253 = errors;const _errs254 = errors;let valid77 = false;const _errs255 = errors;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){const err131 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid26 = _errs255 === errors;valid77 = valid77 || _valid26;const _errs257 = errors;if(typeof data65 !== "bigint"){const err132 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid26 = _errs257 === errors;valid77 = valid77 || _valid26;if(!valid77){const err133 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs254;if(vErrors !== null){if(_errs254){vErrors.length = _errs254;}else {vErrors = null;}}}var valid76 = _errs253 === errors;if(valid76){if(typeof data65 === "bigint"){if(data65 < 1){const err134 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}if(errors === _errs252){if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 1 || isNaN(data65)){const err135 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}var valid71 = _errs252 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu !== undefined){let data66 = data61.gpu;const _errs258 = errors;const _errs259 = errors;const _errs260 = errors;let valid79 = false;const _errs261 = errors;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){const err136 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid27 = _errs261 === errors;valid79 = valid79 || _valid27;const _errs263 = errors;if(typeof data66 !== "bigint"){const err137 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var _valid27 = _errs263 === errors;valid79 = valid79 || _valid27;if(!valid79){const err138 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}var valid78 = _errs259 === errors;if(valid78){if(typeof data66 === "bigint"){if(data66 < 1){const err139 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}if(errors === _errs258){if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 1 || isNaN(data66)){const err140 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}var valid71 = _errs258 === errors;}else {var valid71 = true;}if(valid71){if(data61.gpu_model !== undefined){let data67 = data61.gpu_model;const _errs264 = errors;if(errors === _errs264){if(typeof data67 === "string"){if(!pattern219.test(data67)){const err141 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}else {const err142 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/properties/usage/anyOf/0/properties/size/properties/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid71 = _errs264 === errors;}else {var valid71 = true;}if(valid71){if(data61.source !== undefined){let data68 = data61.source;const _errs266 = errors;if(typeof data68 !== "string"){const err143 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(!((((((data68 === "provider") || (data68 === "published")) || (data68 === "measured")) || (data68 === "recorded")) || (data68 === "calculated")) || (data68 === "unknown"))){const err144 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid71 = _errs266 === errors;}else {var valid71 = true;}if(valid71){if(data61.observed_at !== undefined){let data69 = data61.observed_at;const _errs269 = errors;const _errs270 = errors;if(errors === _errs270){if(errors === _errs270){if(typeof data69 === "string"){if(!pattern78.test(data69)){const err145 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(!(formats0.validate(data69))){const err146 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}var valid71 = _errs269 === errors;}else {var valid71 = true;}if(valid71){if(data61.how !== undefined){let data70 = data61.how;const _errs272 = errors;const _errs273 = errors;if(errors === _errs273){if(typeof data70 === "string"){if(func1(data70) < 1){const err148 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}else {const err149 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}var valid71 = _errs272 === errors;}else {var valid71 = true;}}}}}}}}}}else {const err150 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/0/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid33 = _errs211 === errors;}else {var valid33 = true;}if(valid33){if(data35.intervals !== undefined){let data71 = data35.intervals;const _errs275 = errors;if(errors === _errs275){if(Array.isArray(data71)){if(data71.length < 1){const err151 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {var valid83 = true;const len0 = data71.length;for(let i0=0; i0<len0; i0++){let data72 = data71[i0];const _errs277 = errors;const _errs279 = errors;let valid84 = true;const _errs280 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing24;if((data72.source === undefined) && (missing24 = "source")){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {if(data72.source !== undefined){if("unknown" !== data72.source){const err153 = {};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}}var _valid28 = _errs280 === errors;errors = _errs279;if(vErrors !== null){if(_errs279){vErrors.length = _errs279;}else {vErrors = null;}}let ifClause4;if(_valid28){const _errs283 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){if(data72.seconds !== null){const err154 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}var _valid28 = _errs283 === errors;valid84 = _valid28;if(valid84){var props6 = {};props6.seconds = true;props6.source = true;}ifClause4 = "then";}else {const _errs286 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.seconds !== undefined){let data75 = data72.seconds;const _errs289 = errors;let valid90 = false;const _errs290 = errors;if((!((typeof data75 == "number") && (isFinite(data75)))) && (!(data75 && typeof data75 == "object" && !Array.isArray(data75)))){const err155 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.intervals.items.else.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid29 = _errs290 === errors;valid90 = valid90 || _valid29;const _errs292 = errors;if(typeof data75 !== "bigint"){const err156 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid29 = _errs292 === errors;valid90 = valid90 || _valid29;if(!valid90){const err157 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs289;if(vErrors !== null){if(_errs289){vErrors.length = _errs289;}else {vErrors = null;}}}}}var _valid28 = _errs286 === errors;valid84 = _valid28;if(valid84){if(props6 !== true){props6 = props6 || {};props6.seconds = true;}}ifClause4 = "else";}if(!valid84){const err158 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(errors === _errs277){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing25;if((((((data72.state === undefined) && (missing25 = "state")) || ((data72.seconds === undefined) && (missing25 = "seconds"))) || ((data72.source === undefined) && (missing25 = "source"))) || ((data72.observed_at === undefined) && (missing25 = "observed_at"))) || ((data72.how === undefined) && (missing25 = "how"))){const err159 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/required",keyword:"required",params:{missingProperty: missing25},message:"must have required property '"+missing25+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(props6 !== true){props6 = props6 || {};props6.size = true;props6.snapshot_storage = true;props6.state = true;props6.seconds = true;props6.source = true;props6.observed_at = true;props6.how = true;}if(data72.size !== undefined){const _errs293 = errors;if(!(validate340(data72.size, {instancePath:instancePath+"/usage/intervals/" + i0+"/size",parentData:data72,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate340.errors : vErrors.concat(validate340.errors);errors = vErrors.length;}var valid91 = _errs293 === errors;}else {var valid91 = true;}if(valid91){if(data72.snapshot_storage !== undefined){const _errs294 = errors;if(!(validate342(data72.snapshot_storage, {instancePath:instancePath+"/usage/intervals/" + i0+"/snapshot_storage",parentData:data72,parentDataProperty:"snapshot_storage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate342.errors : vErrors.concat(validate342.errors);errors = vErrors.length;}var valid91 = _errs294 === errors;}else {var valid91 = true;}if(valid91){if(data72.state !== undefined){let data78 = data72.state;const _errs295 = errors;if(!(((data78 === "running") || (data78 === "paused")) || (data78 === "stopped"))){const err160 = {instancePath:instancePath+"/usage/intervals/" + i0+"/state",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/state/enum",keyword:"enum",params:{allowedValues: schema320.properties.usage.anyOf[0].properties.intervals.items.properties.state.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var valid91 = _errs295 === errors;}else {var valid91 = true;}if(valid91){if(data72.seconds !== undefined){let data79 = data72.seconds;const _errs296 = errors;const _errs297 = errors;let valid92 = false;const _errs298 = errors;const _errs299 = errors;const _errs300 = errors;let valid94 = false;const _errs301 = errors;if(!((typeof data79 == "number") && (isFinite(data79)))){const err161 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}var _valid31 = _errs301 === errors;valid94 = valid94 || _valid31;const _errs303 = errors;if(typeof data79 !== "bigint"){const err162 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var _valid31 = _errs303 === errors;valid94 = valid94 || _valid31;if(!valid94){const err163 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}var valid93 = _errs299 === errors;if(valid93){if(typeof data79 === "bigint"){if(data79 < 0){const err164 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}if(errors === _errs298){if((typeof data79 == "number") && (isFinite(data79))){if(data79 < 0 || isNaN(data79)){const err165 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}var _valid30 = _errs298 === errors;valid92 = valid92 || _valid30;const _errs304 = errors;const _errs305 = errors;if(errors === _errs305){if(data79 && typeof data79 == "object" && !Array.isArray(data79)){let missing26;if(((data79.low === undefined) && (missing26 = "low")) || ((data79.high === undefined) && (missing26 = "high"))){const err166 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/required",keyword:"required",params:{missingProperty: missing26},message:"must have required property '"+missing26+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {if(data79.low !== undefined){let data80 = data79.low;const _errs307 = errors;const _errs308 = errors;const _errs309 = errors;let valid98 = false;const _errs310 = errors;if(!((typeof data80 == "number") && (isFinite(data80)))){const err167 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}var _valid32 = _errs310 === errors;valid98 = valid98 || _valid32;const _errs312 = errors;if(typeof data80 !== "bigint"){const err168 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid32 = _errs312 === errors;valid98 = valid98 || _valid32;if(!valid98){const err169 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var valid97 = _errs308 === errors;if(valid97){if(typeof data80 === "bigint"){if(data80 < 0){const err170 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}if(errors === _errs307){if((typeof data80 == "number") && (isFinite(data80))){if(data80 < 0 || isNaN(data80)){const err171 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/low",schemaPath:"#/components/schemas/UsageRange/properties/low/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}var valid96 = _errs307 === errors;}else {var valid96 = true;}if(valid96){if(data79.high !== undefined){let data81 = data79.high;const _errs313 = errors;const _errs314 = errors;const _errs315 = errors;let valid100 = false;const _errs316 = errors;if(!((typeof data81 == "number") && (isFinite(data81)))){const err172 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var _valid33 = _errs316 === errors;valid100 = valid100 || _valid33;const _errs318 = errors;if(typeof data81 !== "bigint"){const err173 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var _valid33 = _errs318 === errors;valid100 = valid100 || _valid33;if(!valid100){const err174 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs315;if(vErrors !== null){if(_errs315){vErrors.length = _errs315;}else {vErrors = null;}}}var valid99 = _errs314 === errors;if(valid99){if(typeof data81 === "bigint"){if(data81 < 0){const err175 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}if(errors === _errs313){if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err176 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds/high",schemaPath:"#/components/schemas/UsageRange/properties/high/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}var valid96 = _errs313 === errors;}else {var valid96 = true;}}}}else {const err177 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/components/schemas/UsageRange/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}var _valid30 = _errs304 === errors;valid92 = valid92 || _valid30;if(_valid30){var props8 = {};props8.low = true;props8.high = true;}const _errs319 = errors;if(data79 !== null){const err178 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var _valid30 = _errs319 === errors;valid92 = valid92 || _valid30;if(!valid92){const err179 = {instancePath:instancePath+"/usage/intervals/" + i0+"/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/properties/seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs297;if(vErrors !== null){if(_errs297){vErrors.length = _errs297;}else {vErrors = null;}}}var valid91 = _errs296 === errors;}else {var valid91 = true;}if(valid91){if(data72.source !== undefined){let data82 = data72.source;const _errs321 = errors;if(typeof data82 !== "string"){const err180 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(!((((((data82 === "provider") || (data82 === "published")) || (data82 === "measured")) || (data82 === "recorded")) || (data82 === "calculated")) || (data82 === "unknown"))){const err181 = {instancePath:instancePath+"/usage/intervals/" + i0+"/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var valid91 = _errs321 === errors;}else {var valid91 = true;}if(valid91){if(data72.observed_at !== undefined){let data83 = data72.observed_at;const _errs324 = errors;const _errs325 = errors;if(errors === _errs325){if(errors === _errs325){if(typeof data83 === "string"){if(!pattern78.test(data83)){const err182 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {if(!(formats0.validate(data83))){const err183 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/usage/intervals/" + i0+"/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}var valid91 = _errs324 === errors;}else {var valid91 = true;}if(valid91){if(data72.how !== undefined){let data84 = data72.how;const _errs327 = errors;const _errs328 = errors;if(errors === _errs328){if(typeof data84 === "string"){if(func1(data84) < 1){const err185 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath:instancePath+"/usage/intervals/" + i0+"/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}var valid91 = _errs327 === errors;}else {var valid91 = true;}}}}}}}}}else {const err187 = {instancePath:instancePath+"/usage/intervals/" + i0,schemaPath:"#/properties/usage/anyOf/0/properties/intervals/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}var valid83 = _errs277 === errors;if(!valid83){break;}}}}else {const err188 = {instancePath:instancePath+"/usage/intervals",schemaPath:"#/properties/usage/anyOf/0/properties/intervals/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}var valid33 = _errs275 === errors;}else {var valid33 = true;}if(valid33){if(data35.creations !== undefined){let data85 = data35.creations;const _errs330 = errors;const _errs332 = errors;let valid104 = true;const _errs333 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing27;if((data85.source === undefined) && (missing27 = "source")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {if(data85.source !== undefined){if("unknown" !== data85.source){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}}var _valid34 = _errs333 === errors;errors = _errs332;if(vErrors !== null){if(_errs332){vErrors.length = _errs332;}else {vErrors = null;}}let ifClause5;if(_valid34){const _errs336 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){if(data85.count !== null){const err191 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/then/properties/count/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}var _valid34 = _errs336 === errors;valid104 = _valid34;if(valid104){var props9 = {};props9.count = true;props9.source = true;}ifClause5 = "then";}else {const _errs339 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.count !== undefined){let data88 = data85.count;const _errs342 = errors;let valid110 = false;const _errs343 = errors;if(!(((typeof data88 == "number") && (!(data88 % 1) && !isNaN(data88))) && (isFinite(data88)))){const err192 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid35 = _errs343 === errors;valid110 = valid110 || _valid35;const _errs345 = errors;if(typeof data88 !== "bigint"){const err193 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid35 = _errs345 === errors;valid110 = valid110 || _valid35;if(!valid110){const err194 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/else/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs342;if(vErrors !== null){if(_errs342){vErrors.length = _errs342;}else {vErrors = null;}}}}}var _valid34 = _errs339 === errors;valid104 = _valid34;if(valid104){if(props9 !== true){props9 = props9 || {};props9.count = true;}}ifClause5 = "else";}if(!valid104){const err195 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(errors === _errs330){if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing28;if(((((data85.count === undefined) && (missing28 = "count")) || ((data85.source === undefined) && (missing28 = "source"))) || ((data85.observed_at === undefined) && (missing28 = "observed_at"))) || ((data85.how === undefined) && (missing28 = "how"))){const err196 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/required",keyword:"required",params:{missingProperty: missing28},message:"must have required property '"+missing28+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(props9 !== true){props9 = props9 || {};props9.count = true;props9.source = true;props9.observed_at = true;props9.how = true;}if(data85.count !== undefined){let data89 = data85.count;const _errs346 = errors;const _errs347 = errors;const _errs348 = errors;let valid113 = false;const _errs349 = errors;if((!(((typeof data89 == "number") && (!(data89 % 1) && !isNaN(data89))) && (isFinite(data89)))) && (data89 !== null)){const err197 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.creations.properties.count.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var _valid36 = _errs349 === errors;valid113 = valid113 || _valid36;const _errs351 = errors;if(typeof data89 !== "bigint"){const err198 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var _valid36 = _errs351 === errors;valid113 = valid113 || _valid36;if(!valid113){const err199 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}else {errors = _errs348;if(vErrors !== null){if(_errs348){vErrors.length = _errs348;}else {vErrors = null;}}}var valid112 = _errs347 === errors;if(valid112){if(typeof data89 === "bigint"){if(data89 < 0){const err200 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}if(errors === _errs346){if((typeof data89 == "number") && (isFinite(data89))){if(data89 < 0 || isNaN(data89)){const err201 = {instancePath:instancePath+"/usage/creations/count",schemaPath:"#/properties/usage/anyOf/0/properties/creations/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}var valid111 = _errs346 === errors;}else {var valid111 = true;}if(valid111){if(data85.source !== undefined){let data90 = data85.source;const _errs352 = errors;if(typeof data90 !== "string"){const err202 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(!((((((data90 === "provider") || (data90 === "published")) || (data90 === "measured")) || (data90 === "recorded")) || (data90 === "calculated")) || (data90 === "unknown"))){const err203 = {instancePath:instancePath+"/usage/creations/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var valid111 = _errs352 === errors;}else {var valid111 = true;}if(valid111){if(data85.observed_at !== undefined){let data91 = data85.observed_at;const _errs355 = errors;const _errs356 = errors;if(errors === _errs356){if(errors === _errs356){if(typeof data91 === "string"){if(!pattern78.test(data91)){const err204 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(!(formats0.validate(data91))){const err205 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}}else {const err206 = {instancePath:instancePath+"/usage/creations/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}var valid111 = _errs355 === errors;}else {var valid111 = true;}if(valid111){if(data85.how !== undefined){let data92 = data85.how;const _errs358 = errors;const _errs359 = errors;if(errors === _errs359){if(typeof data92 === "string"){if(func1(data92) < 1){const err207 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}else {const err208 = {instancePath:instancePath+"/usage/creations/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var valid111 = _errs358 === errors;}else {var valid111 = true;}}}}}}else {const err209 = {instancePath:instancePath+"/usage/creations",schemaPath:"#/properties/usage/anyOf/0/properties/creations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}var valid33 = _errs330 === errors;}else {var valid33 = true;}if(valid33){if(data35.active_cpu !== undefined){let data93 = data35.active_cpu;const _errs361 = errors;const _errs363 = errors;let valid117 = true;const _errs364 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing29;if((data93.source === undefined) && (missing29 = "source")){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(data93.source !== undefined){if("unknown" !== data93.source){const err211 = {};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}}var _valid37 = _errs364 === errors;errors = _errs363;if(vErrors !== null){if(_errs363){vErrors.length = _errs363;}else {vErrors = null;}}let ifClause6;if(_valid37){const _errs367 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){if(data93.seconds !== null){const err212 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/then/properties/seconds/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}var _valid37 = _errs367 === errors;valid117 = _valid37;if(valid117){var props10 = {};props10.seconds = true;props10.source = true;}ifClause6 = "then";}else {const _errs370 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.seconds !== undefined){let data96 = data93.seconds;const _errs373 = errors;let valid123 = false;const _errs374 = errors;if(!((typeof data96 == "number") && (isFinite(data96)))){const err213 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid38 = _errs374 === errors;valid123 = valid123 || _valid38;const _errs376 = errors;if(typeof data96 !== "bigint"){const err214 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var _valid38 = _errs376 === errors;valid123 = valid123 || _valid38;if(!valid123){const err215 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/else/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}else {errors = _errs373;if(vErrors !== null){if(_errs373){vErrors.length = _errs373;}else {vErrors = null;}}}}}var _valid37 = _errs370 === errors;valid117 = _valid37;if(valid117){if(props10 !== true){props10 = props10 || {};props10.seconds = true;}}ifClause6 = "else";}if(!valid117){const err216 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(errors === _errs361){if(data93 && typeof data93 == "object" && !Array.isArray(data93)){let missing30;if(((((data93.seconds === undefined) && (missing30 = "seconds")) || ((data93.source === undefined) && (missing30 = "source"))) || ((data93.observed_at === undefined) && (missing30 = "observed_at"))) || ((data93.how === undefined) && (missing30 = "how"))){const err217 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/required",keyword:"required",params:{missingProperty: missing30},message:"must have required property '"+missing30+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {if(props10 !== true){props10 = props10 || {};props10.seconds = true;props10.source = true;props10.observed_at = true;props10.how = true;}if(data93.seconds !== undefined){let data97 = data93.seconds;const _errs377 = errors;const _errs378 = errors;const _errs379 = errors;let valid126 = false;const _errs380 = errors;if((!((typeof data97 == "number") && (isFinite(data97)))) && (data97 !== null)){const err218 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.active_cpu.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var _valid39 = _errs380 === errors;valid126 = valid126 || _valid39;const _errs382 = errors;if(typeof data97 !== "bigint"){const err219 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}var _valid39 = _errs382 === errors;valid126 = valid126 || _valid39;if(!valid126){const err220 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}var valid125 = _errs378 === errors;if(valid125){if(typeof data97 === "bigint"){if(data97 < 0){const err221 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}if(errors === _errs377){if((typeof data97 == "number") && (isFinite(data97))){if(data97 < 0 || isNaN(data97)){const err222 = {instancePath:instancePath+"/usage/active_cpu/seconds",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}var valid124 = _errs377 === errors;}else {var valid124 = true;}if(valid124){if(data93.source !== undefined){let data98 = data93.source;const _errs383 = errors;if(typeof data98 !== "string"){const err223 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if(!((((((data98 === "provider") || (data98 === "published")) || (data98 === "measured")) || (data98 === "recorded")) || (data98 === "calculated")) || (data98 === "unknown"))){const err224 = {instancePath:instancePath+"/usage/active_cpu/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}var valid124 = _errs383 === errors;}else {var valid124 = true;}if(valid124){if(data93.observed_at !== undefined){let data99 = data93.observed_at;const _errs386 = errors;const _errs387 = errors;if(errors === _errs387){if(errors === _errs387){if(typeof data99 === "string"){if(!pattern78.test(data99)){const err225 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(!(formats0.validate(data99))){const err226 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}else {const err227 = {instancePath:instancePath+"/usage/active_cpu/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}var valid124 = _errs386 === errors;}else {var valid124 = true;}if(valid124){if(data93.how !== undefined){let data100 = data93.how;const _errs389 = errors;const _errs390 = errors;if(errors === _errs390){if(typeof data100 === "string"){if(func1(data100) < 1){const err228 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {instancePath:instancePath+"/usage/active_cpu/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}var valid124 = _errs389 === errors;}else {var valid124 = true;}}}}}}else {const err230 = {instancePath:instancePath+"/usage/active_cpu",schemaPath:"#/properties/usage/anyOf/0/properties/active_cpu/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}var valid33 = _errs361 === errors;}else {var valid33 = true;}if(valid33){if(data35.egress !== undefined){let data101 = data35.egress;const _errs392 = errors;const _errs394 = errors;let valid130 = true;const _errs395 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing31;if((data101.source === undefined) && (missing31 = "source")){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}else {if(data101.source !== undefined){if("unknown" !== data101.source){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}}var _valid40 = _errs395 === errors;errors = _errs394;if(vErrors !== null){if(_errs394){vErrors.length = _errs394;}else {vErrors = null;}}let ifClause7;if(_valid40){const _errs398 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){if(data101.bytes !== null){const err233 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/then/properties/bytes/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}var _valid40 = _errs398 === errors;valid130 = _valid40;if(valid130){var props11 = {};props11.bytes = true;props11.source = true;}ifClause7 = "then";}else {const _errs401 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.bytes !== undefined){let data104 = data101.bytes;const _errs404 = errors;let valid136 = false;const _errs405 = errors;if(!(((typeof data104 == "number") && (!(data104 % 1) && !isNaN(data104))) && (isFinite(data104)))){const err234 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var _valid41 = _errs405 === errors;valid136 = valid136 || _valid41;const _errs407 = errors;if(typeof data104 !== "bigint"){const err235 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}var _valid41 = _errs407 === errors;valid136 = valid136 || _valid41;if(!valid136){const err236 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/else/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {errors = _errs404;if(vErrors !== null){if(_errs404){vErrors.length = _errs404;}else {vErrors = null;}}}}}var _valid40 = _errs401 === errors;valid130 = _valid40;if(valid130){if(props11 !== true){props11 = props11 || {};props11.bytes = true;}}ifClause7 = "else";}if(!valid130){const err237 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(errors === _errs392){if(data101 && typeof data101 == "object" && !Array.isArray(data101)){let missing32;if(((((data101.bytes === undefined) && (missing32 = "bytes")) || ((data101.source === undefined) && (missing32 = "source"))) || ((data101.observed_at === undefined) && (missing32 = "observed_at"))) || ((data101.how === undefined) && (missing32 = "how"))){const err238 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/required",keyword:"required",params:{missingProperty: missing32},message:"must have required property '"+missing32+"'"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(props11 !== true){props11 = props11 || {};props11.bytes = true;props11.source = true;props11.observed_at = true;props11.how = true;}if(data101.bytes !== undefined){let data105 = data101.bytes;const _errs408 = errors;const _errs409 = errors;const _errs410 = errors;let valid139 = false;const _errs411 = errors;if((!(((typeof data105 == "number") && (!(data105 % 1) && !isNaN(data105))) && (isFinite(data105)))) && (data105 !== null)){const err239 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.egress.properties.bytes.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}var _valid42 = _errs411 === errors;valid139 = valid139 || _valid42;const _errs413 = errors;if(typeof data105 !== "bigint"){const err240 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid42 = _errs413 === errors;valid139 = valid139 || _valid42;if(!valid139){const err241 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {errors = _errs410;if(vErrors !== null){if(_errs410){vErrors.length = _errs410;}else {vErrors = null;}}}var valid138 = _errs409 === errors;if(valid138){if(typeof data105 === "bigint"){if(data105 < 0){const err242 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}if(errors === _errs408){if((typeof data105 == "number") && (isFinite(data105))){if(data105 < 0 || isNaN(data105)){const err243 = {instancePath:instancePath+"/usage/egress/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/egress/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}var valid137 = _errs408 === errors;}else {var valid137 = true;}if(valid137){if(data101.source !== undefined){let data106 = data101.source;const _errs414 = errors;if(typeof data106 !== "string"){const err244 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}if(!((((((data106 === "provider") || (data106 === "published")) || (data106 === "measured")) || (data106 === "recorded")) || (data106 === "calculated")) || (data106 === "unknown"))){const err245 = {instancePath:instancePath+"/usage/egress/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}var valid137 = _errs414 === errors;}else {var valid137 = true;}if(valid137){if(data101.observed_at !== undefined){let data107 = data101.observed_at;const _errs417 = errors;const _errs418 = errors;if(errors === _errs418){if(errors === _errs418){if(typeof data107 === "string"){if(!pattern78.test(data107)){const err246 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {if(!(formats0.validate(data107))){const err247 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath:instancePath+"/usage/egress/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}var valid137 = _errs417 === errors;}else {var valid137 = true;}if(valid137){if(data101.how !== undefined){let data108 = data101.how;const _errs420 = errors;const _errs421 = errors;if(errors === _errs421){if(typeof data108 === "string"){if(func1(data108) < 1){const err249 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}else {const err250 = {instancePath:instancePath+"/usage/egress/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}var valid137 = _errs420 === errors;}else {var valid137 = true;}}}}}}else {const err251 = {instancePath:instancePath+"/usage/egress",schemaPath:"#/properties/usage/anyOf/0/properties/egress/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}var valid33 = _errs392 === errors;}else {var valid33 = true;}if(valid33){if(data35.snapshot_storage !== undefined){let data109 = data35.snapshot_storage;const _errs423 = errors;const _errs425 = errors;let valid143 = true;const _errs426 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing33;if((data109.source === undefined) && (missing33 = "source")){const err252 = {};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}else {if(data109.source !== undefined){if("unknown" !== data109.source){const err253 = {};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}}var _valid43 = _errs426 === errors;errors = _errs425;if(vErrors !== null){if(_errs425){vErrors.length = _errs425;}else {vErrors = null;}}let ifClause8;if(_valid43){const _errs429 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(data109.gb !== undefined){if(data109.gb !== null){const err254 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/then/properties/gb/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}}var _valid43 = _errs429 === errors;valid143 = _valid43;if(valid143){var props12 = {};props12.gb = true;props12.source = true;}ifClause8 = "then";}else {const _errs432 = errors;const _errs433 = errors;let valid147 = false;const _errs434 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing34;if((data109.gb === undefined) && (missing34 = "gb")){const err255 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing34},message:"must have required property '"+missing34+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}else {if(data109.gb !== undefined){let data112 = data109.gb;const _errs437 = errors;let valid150 = false;const _errs438 = errors;if(!((typeof data112 == "number") && (isFinite(data112)))){const err256 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}var _valid45 = _errs438 === errors;valid150 = valid150 || _valid45;const _errs440 = errors;if(typeof data112 !== "bigint"){const err257 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}var _valid45 = _errs440 === errors;valid150 = valid150 || _valid45;if(!valid150){const err258 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/0/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}}}}}var _valid44 = _errs434 === errors;valid147 = valid147 || _valid44;if(_valid44){var props13 = {};props13.gb = true;}const _errs441 = errors;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing35;if((data109.bytes === undefined) && (missing35 = "bytes")){const err259 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing35},message:"must have required property '"+missing35+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}var _valid44 = _errs441 === errors;valid147 = valid147 || _valid44;if(!valid147){const err260 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {errors = _errs433;if(vErrors !== null){if(_errs433){vErrors.length = _errs433;}else {vErrors = null;}}}var _valid43 = _errs432 === errors;valid143 = _valid43;if(valid143){if(props12 !== true && props13 !== undefined){if(props13 === true){props12 = true;}else {props12 = props12 || {};Object.assign(props12, props13);}}}ifClause8 = "else";}if(!valid143){const err261 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/if",keyword:"if",params:{failingKeyword: ifClause8},message:"must match \""+ifClause8+"\" schema"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(errors === _errs423){if(data109 && typeof data109 == "object" && !Array.isArray(data109)){let missing36;if((((data109.source === undefined) && (missing36 = "source")) || ((data109.observed_at === undefined) && (missing36 = "observed_at"))) || ((data109.how === undefined) && (missing36 = "how"))){const err262 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/required",keyword:"required",params:{missingProperty: missing36},message:"must have required property '"+missing36+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}else {if(props12 !== true){props12 = props12 || {};props12.gb = true;props12.max_gb = true;props12.source = true;props12.observed_at = true;props12.how = true;props12.bytes = true;}if(data109.gb !== undefined){let data113 = data109.gb;const _errs442 = errors;const _errs443 = errors;const _errs444 = errors;let valid153 = false;const _errs445 = errors;if((!((typeof data113 == "number") && (isFinite(data113)))) && (data113 !== null)){const err263 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid46 = _errs445 === errors;valid153 = valid153 || _valid46;const _errs447 = errors;if(typeof data113 !== "bigint"){const err264 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}var _valid46 = _errs447 === errors;valid153 = valid153 || _valid46;if(!valid153){const err265 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}else {errors = _errs444;if(vErrors !== null){if(_errs444){vErrors.length = _errs444;}else {vErrors = null;}}}var valid152 = _errs443 === errors;if(valid152){if(typeof data113 === "bigint"){if(data113 < 0){const err266 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}if(errors === _errs442){if((typeof data113 == "number") && (isFinite(data113))){if(data113 < 0 || isNaN(data113)){const err267 = {instancePath:instancePath+"/usage/snapshot_storage/gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}}var valid151 = _errs442 === errors;}else {var valid151 = true;}if(valid151){if(data109.max_gb !== undefined){let data114 = data109.max_gb;const _errs448 = errors;const _errs449 = errors;const _errs450 = errors;let valid155 = false;const _errs451 = errors;if((!((typeof data114 == "number") && (isFinite(data114)))) && (data114 !== null)){const err268 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema320.properties.usage.anyOf[0].properties.snapshot_storage.properties.max_gb.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}var _valid47 = _errs451 === errors;valid155 = valid155 || _valid47;const _errs453 = errors;if(typeof data114 !== "bigint"){const err269 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}var _valid47 = _errs453 === errors;valid155 = valid155 || _valid47;if(!valid155){const err270 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {errors = _errs450;if(vErrors !== null){if(_errs450){vErrors.length = _errs450;}else {vErrors = null;}}}var valid154 = _errs449 === errors;if(valid154){if(typeof data114 === "bigint"){if(data114 < 0){const err271 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}}if(errors === _errs448){if((typeof data114 == "number") && (isFinite(data114))){if(data114 < 0 || isNaN(data114)){const err272 = {instancePath:instancePath+"/usage/snapshot_storage/max_gb",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/max_gb/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}var valid151 = _errs448 === errors;}else {var valid151 = true;}if(valid151){if(data109.source !== undefined){let data115 = data109.source;const _errs454 = errors;if(typeof data115 !== "string"){const err273 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}if(!((((((data115 === "provider") || (data115 === "published")) || (data115 === "measured")) || (data115 === "recorded")) || (data115 === "calculated")) || (data115 === "unknown"))){const err274 = {instancePath:instancePath+"/usage/snapshot_storage/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}var valid151 = _errs454 === errors;}else {var valid151 = true;}if(valid151){if(data109.observed_at !== undefined){let data116 = data109.observed_at;const _errs457 = errors;const _errs458 = errors;if(errors === _errs458){if(errors === _errs458){if(typeof data116 === "string"){if(!pattern78.test(data116)){const err275 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {if(!(formats0.validate(data116))){const err276 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/usage/snapshot_storage/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}var valid151 = _errs457 === errors;}else {var valid151 = true;}if(valid151){if(data109.how !== undefined){let data117 = data109.how;const _errs460 = errors;const _errs461 = errors;if(errors === _errs461){if(typeof data117 === "string"){if(func1(data117) < 1){const err278 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}else {const err279 = {instancePath:instancePath+"/usage/snapshot_storage/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}var valid151 = _errs460 === errors;}else {var valid151 = true;}if(valid151){if(data109.bytes !== undefined){let data118 = data109.bytes;const _errs463 = errors;const _errs464 = errors;const _errs465 = errors;let valid160 = false;const _errs466 = errors;if(!(((typeof data118 == "number") && (!(data118 % 1) && !isNaN(data118))) && (isFinite(data118)))){const err280 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}var _valid48 = _errs466 === errors;valid160 = valid160 || _valid48;const _errs468 = errors;if(typeof data118 !== "bigint"){const err281 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}var _valid48 = _errs468 === errors;valid160 = valid160 || _valid48;if(!valid160){const err282 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}else {errors = _errs465;if(vErrors !== null){if(_errs465){vErrors.length = _errs465;}else {vErrors = null;}}}var valid159 = _errs464 === errors;if(valid159){if(typeof data118 === "bigint"){if(data118 < 0){const err283 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}}if(errors === _errs463){if((typeof data118 == "number") && (isFinite(data118))){if(data118 < 0 || isNaN(data118)){const err284 = {instancePath:instancePath+"/usage/snapshot_storage/bytes",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}var valid151 = _errs463 === errors;}else {var valid151 = true;}}}}}}}}else {const err285 = {instancePath:instancePath+"/usage/snapshot_storage",schemaPath:"#/properties/usage/anyOf/0/properties/snapshot_storage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}var valid33 = _errs423 === errors;}else {var valid33 = true;}}}}}}}}}}}}}else {const err286 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}var _valid15 = _errs136 === errors;valid32 = valid32 || _valid15;if(_valid15){var props14 = true;}const _errs469 = errors;if(errors === _errs469){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){let missing37;if(((((((data35.provider === undefined) && (missing37 = "provider")) || ((data35.started === undefined) && (missing37 = "started"))) || ((data35.region === undefined) && (missing37 = "region"))) || ((data35.size === undefined) && (missing37 = "size"))) || ((data35.intervals === undefined) && (missing37 = "intervals"))) || ((data35.creations === undefined) && (missing37 = "creations"))){const err287 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/required",keyword:"required",params:{missingProperty: missing37},message:"must have required property '"+missing37+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}else {const _errs471 = errors;for(const key2 in data35){if(!(func237.call(schema320.properties.usage.anyOf[1].properties, key2))){const err288 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;break;}}if(_errs471 === errors){if(data35.provider !== undefined){let data119 = data35.provider;const _errs472 = errors;const _errs473 = errors;if(errors === _errs473){if(typeof data119 === "string"){if(!pattern42.test(data119)){const err289 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {instancePath:instancePath+"/usage/provider",schemaPath:"#/components/schemas/provider/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}var valid161 = _errs472 === errors;}else {var valid161 = true;}if(valid161){if(data35.class !== undefined){const _errs475 = errors;if(!(validate344(data35.class, {instancePath:instancePath+"/usage/class",parentData:data35,parentDataProperty:"class",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate344.errors : vErrors.concat(validate344.errors);errors = vErrors.length;}var valid161 = _errs475 === errors;}else {var valid161 = true;}if(valid161){if(data35.started !== undefined){const _errs476 = errors;if(!(validate346(data35.started, {instancePath:instancePath+"/usage/started",parentData:data35,parentDataProperty:"started",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate346.errors : vErrors.concat(validate346.errors);errors = vErrors.length;}var valid161 = _errs476 === errors;}else {var valid161 = true;}if(valid161){if(data35.region !== undefined){const _errs477 = errors;if(!(validate348(data35.region, {instancePath:instancePath+"/usage/region",parentData:data35,parentDataProperty:"region",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate348.errors : vErrors.concat(validate348.errors);errors = vErrors.length;}var valid161 = _errs477 === errors;}else {var valid161 = true;}if(valid161){if(data35.size !== undefined){let data123 = data35.size;const _errs478 = errors;const _errs480 = errors;const _errs481 = errors;let valid164 = true;const _errs482 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing38;if((data123.gpu === undefined) && (missing38 = "gpu")){const err291 = {};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}var _valid49 = _errs482 === errors;errors = _errs481;if(vErrors !== null){if(_errs481){vErrors.length = _errs481;}else {vErrors = null;}}if(_valid49){const _errs483 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing39;if((data123.gpu_model === undefined) && (missing39 = "gpu_model")){const err292 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/then/required",keyword:"required",params:{missingProperty: missing39},message:"must have required property '"+missing39+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}var _valid49 = _errs483 === errors;valid164 = _valid49;}if(!valid164){const err293 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var valid163 = _errs480 === errors;if(valid163){const _errs484 = errors;const _errs485 = errors;let valid165 = true;const _errs486 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing40;if((data123.gpu_model === undefined) && (missing40 = "gpu_model")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}var _valid50 = _errs486 === errors;errors = _errs485;if(vErrors !== null){if(_errs485){vErrors.length = _errs485;}else {vErrors = null;}}if(_valid50){const _errs487 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing41;if((data123.gpu === undefined) && (missing41 = "gpu")){const err295 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/then/required",keyword:"required",params:{missingProperty: missing41},message:"must have required property '"+missing41+"'"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}var _valid50 = _errs487 === errors;valid165 = _valid50;}if(!valid165){const err296 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var valid163 = _errs484 === errors;if(valid163){const _errs488 = errors;let valid166 = true;const _errs489 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing42;if((data123.source === undefined) && (missing42 = "source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data123.source !== undefined){if("unknown" !== data123.source){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}}var _valid51 = _errs489 === errors;errors = _errs488;if(vErrors !== null){if(_errs488){vErrors.length = _errs488;}else {vErrors = null;}}let ifClause9;if(_valid51){const _errs492 = errors;const _errs494 = errors;const _errs495 = errors;const _errs496 = errors;let valid171 = false;const _errs497 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing43;if((data123.cpu === undefined) && (missing43 = "cpu")){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}var _valid52 = _errs497 === errors;valid171 = valid171 || _valid52;const _errs498 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing44;if((data123.memory_mib === undefined) && (missing44 = "memory_mib")){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}var _valid52 = _errs498 === errors;valid171 = valid171 || _valid52;const _errs499 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing45;if((data123.disk_mib === undefined) && (missing45 = "disk_mib")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}var _valid52 = _errs499 === errors;valid171 = valid171 || _valid52;const _errs500 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing46;if((data123.gpu === undefined) && (missing46 = "gpu")){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}var _valid52 = _errs500 === errors;valid171 = valid171 || _valid52;const _errs501 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing47;if((data123.gpu_model === undefined) && (missing47 = "gpu_model")){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid52 = _errs501 === errors;valid171 = valid171 || _valid52;if(!valid171){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}var valid170 = _errs495 === errors;if(valid170){const err305 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}var _valid51 = _errs492 === errors;valid166 = _valid51;ifClause9 = "then";}else {const _errs502 = errors;const _errs504 = errors;let valid173 = false;const _errs505 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing48;if((data123.cpu === undefined) && (missing48 = "cpu")){const err306 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/0/required",keyword:"required",params:{missingProperty: missing48},message:"must have required property '"+missing48+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}var _valid53 = _errs505 === errors;valid173 = valid173 || _valid53;const _errs506 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing49;if((data123.memory_mib === undefined) && (missing49 = "memory_mib")){const err307 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/1/required",keyword:"required",params:{missingProperty: missing49},message:"must have required property '"+missing49+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}}var _valid53 = _errs506 === errors;valid173 = valid173 || _valid53;const _errs507 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing50;if((data123.disk_mib === undefined) && (missing50 = "disk_mib")){const err308 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/2/required",keyword:"required",params:{missingProperty: missing50},message:"must have required property '"+missing50+"'"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid53 = _errs507 === errors;valid173 = valid173 || _valid53;const _errs508 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing51;if((data123.gpu === undefined) && (missing51 = "gpu")){const err309 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf/3/required",keyword:"required",params:{missingProperty: missing51},message:"must have required property '"+missing51+"'"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}var _valid53 = _errs508 === errors;valid173 = valid173 || _valid53;if(!valid173){const err310 = {instancePath:instancePath+"/usage/size",schemaPath:"#/components/schemas/else/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {errors = _errs504;if(vErrors !== null){if(_errs504){vErrors.length = _errs504;}else {vErrors = null;}}}var _valid51 = _errs502 === errors;valid166 = _valid51;ifClause9 = "else";}if(!valid166){const err311 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/if",keyword:"if",params:{failingKeyword: ifClause9},message:"must match \""+ifClause9+"\" schema"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}if(errors === _errs478){if(data123 && typeof data123 == "object" && !Array.isArray(data123)){let missing52;if((((data123.source === undefined) && (missing52 = "source")) || ((data123.observed_at === undefined) && (missing52 = "observed_at"))) || ((data123.how === undefined) && (missing52 = "how"))){const err312 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/required",keyword:"required",params:{missingProperty: missing52},message:"must have required property '"+missing52+"'"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}else {if(data123.cpu !== undefined){let data125 = data123.cpu;const _errs509 = errors;const _errs510 = errors;const _errs511 = errors;const _errs512 = errors;let valid177 = false;const _errs513 = errors;if(!((typeof data125 == "number") && (isFinite(data125)))){const err313 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid54 = _errs513 === errors;valid177 = valid177 || _valid54;const _errs515 = errors;if(typeof data125 !== "bigint"){const err314 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}var _valid54 = _errs515 === errors;valid177 = valid177 || _valid54;if(!valid177){const err315 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}else {errors = _errs512;if(vErrors !== null){if(_errs512){vErrors.length = _errs512;}else {vErrors = null;}}}var valid176 = _errs511 === errors;if(valid176){if(typeof data125 === "bigint"){if(data125 <= 0){const err316 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}}if(errors === _errs510){if((typeof data125 == "number") && (isFinite(data125))){if(data125 <= 0 || isNaN(data125)){const err317 = {instancePath:instancePath+"/usage/size/cpu",schemaPath:"#/components/schemas/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}}var valid174 = _errs509 === errors;}else {var valid174 = true;}if(valid174){if(data123.memory_mib !== undefined){let data126 = data123.memory_mib;const _errs516 = errors;const _errs517 = errors;const _errs518 = errors;const _errs519 = errors;let valid180 = false;const _errs520 = errors;if(!(((typeof data126 == "number") && (!(data126 % 1) && !isNaN(data126))) && (isFinite(data126)))){const err318 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}var _valid55 = _errs520 === errors;valid180 = valid180 || _valid55;const _errs522 = errors;if(typeof data126 !== "bigint"){const err319 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid55 = _errs522 === errors;valid180 = valid180 || _valid55;if(!valid180){const err320 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs519;if(vErrors !== null){if(_errs519){vErrors.length = _errs519;}else {vErrors = null;}}}var valid179 = _errs518 === errors;if(valid179){if(typeof data126 === "bigint"){if(data126 < 1){const err321 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}}}if(errors === _errs517){if((typeof data126 == "number") && (isFinite(data126))){if(data126 < 1 || isNaN(data126)){const err322 = {instancePath:instancePath+"/usage/size/memory_mib",schemaPath:"#/components/schemas/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}}var valid174 = _errs516 === errors;}else {var valid174 = true;}if(valid174){if(data123.disk_mib !== undefined){let data127 = data123.disk_mib;const _errs523 = errors;const _errs524 = errors;const _errs525 = errors;const _errs526 = errors;let valid183 = false;const _errs527 = errors;if(!(((typeof data127 == "number") && (!(data127 % 1) && !isNaN(data127))) && (isFinite(data127)))){const err323 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}var _valid56 = _errs527 === errors;valid183 = valid183 || _valid56;const _errs529 = errors;if(typeof data127 !== "bigint"){const err324 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}var _valid56 = _errs529 === errors;valid183 = valid183 || _valid56;if(!valid183){const err325 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}}var valid182 = _errs525 === errors;if(valid182){if(typeof data127 === "bigint"){if(data127 < 1){const err326 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}if(errors === _errs524){if((typeof data127 == "number") && (isFinite(data127))){if(data127 < 1 || isNaN(data127)){const err327 = {instancePath:instancePath+"/usage/size/disk_mib",schemaPath:"#/components/schemas/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}}var valid174 = _errs523 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu !== undefined){const _errs530 = errors;if(0 !== data123.gpu){const err328 = {instancePath:instancePath+"/usage/size/gpu",schemaPath:"#/properties/usage/anyOf/1/properties/size/properties/gpu/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}var valid174 = _errs530 === errors;}else {var valid174 = true;}if(valid174){if(data123.gpu_model !== undefined){let data129 = data123.gpu_model;const _errs531 = errors;const _errs532 = errors;if(errors === _errs532){if(typeof data129 === "string"){if(!pattern219.test(data129)){const err329 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*$"+"\""};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}else {const err330 = {instancePath:instancePath+"/usage/size/gpu_model",schemaPath:"#/components/schemas/gpu_model/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}var valid174 = _errs531 === errors;}else {var valid174 = true;}if(valid174){if(data123.source !== undefined){let data130 = data123.source;const _errs534 = errors;if(typeof data130 !== "string"){const err331 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(!((((((data130 === "provider") || (data130 === "published")) || (data130 === "measured")) || (data130 === "recorded")) || (data130 === "calculated")) || (data130 === "unknown"))){const err332 = {instancePath:instancePath+"/usage/size/source",schemaPath:"#/components/schemas/UsageSource/enum",keyword:"enum",params:{allowedValues: schema322.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}var valid174 = _errs534 === errors;}else {var valid174 = true;}if(valid174){if(data123.observed_at !== undefined){let data131 = data123.observed_at;const _errs537 = errors;const _errs538 = errors;if(errors === _errs538){if(errors === _errs538){if(typeof data131 === "string"){if(!pattern78.test(data131)){const err333 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}else {if(!(formats0.validate(data131))){const err334 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/usage/size/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}var valid174 = _errs537 === errors;}else {var valid174 = true;}if(valid174){if(data123.how !== undefined){let data132 = data123.how;const _errs540 = errors;const _errs541 = errors;if(errors === _errs541){if(typeof data132 === "string"){if(func1(data132) < 1){const err336 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}else {const err337 = {instancePath:instancePath+"/usage/size/how",schemaPath:"#/components/schemas/UsageHow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}var valid174 = _errs540 === errors;}else {var valid174 = true;}}}}}}}}}}else {const err338 = {instancePath:instancePath+"/usage/size",schemaPath:"#/properties/usage/anyOf/1/properties/size/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}var valid161 = _errs478 === errors;}else {var valid161 = true;}if(valid161){if(data35.intervals !== undefined){const _errs543 = errors;if(!(validate350(data35.intervals, {instancePath:instancePath+"/usage/intervals",parentData:data35,parentDataProperty:"intervals",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate350.errors : vErrors.concat(validate350.errors);errors = vErrors.length;}var valid161 = _errs543 === errors;}else {var valid161 = true;}if(valid161){if(data35.creations !== undefined){const _errs544 = errors;if(!(validate354(data35.creations, {instancePath:instancePath+"/usage/creations",parentData:data35,parentDataProperty:"creations",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate354.errors : vErrors.concat(validate354.errors);errors = vErrors.length;}var valid161 = _errs544 === errors;}else {var valid161 = true;}if(valid161){if(data35.active_cpu !== undefined){const _errs545 = errors;if(!(validate356(data35.active_cpu, {instancePath:instancePath+"/usage/active_cpu",parentData:data35,parentDataProperty:"active_cpu",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate356.errors : vErrors.concat(validate356.errors);errors = vErrors.length;}var valid161 = _errs545 === errors;}else {var valid161 = true;}if(valid161){if(data35.egress !== undefined){const _errs546 = errors;if(!(validate358(data35.egress, {instancePath:instancePath+"/usage/egress",parentData:data35,parentDataProperty:"egress",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate358.errors : vErrors.concat(validate358.errors);errors = vErrors.length;}var valid161 = _errs546 === errors;}else {var valid161 = true;}}}}}}}}}}}}else {const err339 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}var _valid15 = _errs469 === errors;valid32 = valid32 || _valid15;if(_valid15){if(props14 !== true){props14 = true;}}const _errs547 = errors;if(data35 !== null){const err340 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}var _valid15 = _errs547 === errors;valid32 = valid32 || _valid15;if(!valid32){const err341 = {instancePath:instancePath+"/usage",schemaPath:"#/properties/usage/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}var valid0 = _errs134 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data137 = data.cost;const _errs549 = errors;const _errs550 = errors;let valid188 = false;const _errs551 = errors;const _errs553 = errors;const _errs554 = errors;let valid190 = true;const _errs555 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing53;if((data137.label === undefined) && (missing53 = "label")){const err342 = {};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err343 = {};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}}var _valid58 = _errs555 === errors;errors = _errs554;if(vErrors !== null){if(_errs554){vErrors.length = _errs554;}else {vErrors = null;}}let ifClause10;if(_valid58){const _errs557 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err344 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}}var _valid58 = _errs557 === errors;valid190 = _valid58;if(valid190){var props21 = {};props21.total = true;props21.label = true;}ifClause10 = "then";}else {const _errs560 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data140 = data137.total;if(!(data140 && typeof data140 == "object" && !Array.isArray(data140))){const err345 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/allOf/0/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}}var _valid58 = _errs560 === errors;valid190 = _valid58;if(valid190){if(props21 !== true){props21 = props21 || {};props21.total = true;}}ifClause10 = "else";}if(!valid190){const err346 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause10},message:"must match \""+ifClause10+"\" schema"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}var valid189 = _errs553 === errors;if(valid189){const _errs563 = errors;const _errs564 = errors;let valid194 = true;const _errs565 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing54;if((data137.label === undefined) && (missing54 = "label")){const err347 = {};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}else {if(data137.label !== undefined){if("reported" !== data137.label){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}}var _valid59 = _errs565 === errors;errors = _errs564;if(vErrors !== null){if(_errs564){vErrors.length = _errs564;}else {vErrors = null;}}let ifClause11;if(_valid59){const _errs567 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing55;if((data137.reported_figure === undefined) && (missing55 = "reported_figure")){const err349 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: missing55},message:"must have required property '"+missing55+"'"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}var _valid59 = _errs567 === errors;valid194 = _valid59;ifClause11 = "then";}else {const _errs568 = errors;const _errs569 = errors;const _errs570 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing56;if((data137.reported_figure === undefined) && (missing56 = "reported_figure")){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}var valid196 = _errs570 === errors;if(valid196){const err351 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}else {errors = _errs569;if(vErrors !== null){if(_errs569){vErrors.length = _errs569;}else {vErrors = null;}}}var _valid59 = _errs568 === errors;valid194 = _valid59;ifClause11 = "else";}if(!valid194){const err352 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause11},message:"must match \""+ifClause11+"\" schema"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid189 = _errs563 === errors;if(valid189){if(props21 !== true){props21 = props21 || {};props21.label = true;}}}if(errors === _errs551){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing57;if((((((((data137.label === undefined) && (missing57 = "label")) || ((data137.total === undefined) && (missing57 = "total"))) || ((data137.lines === undefined) && (missing57 = "lines"))) || ((data137.held_back_by === undefined) && (missing57 = "held_back_by"))) || ((data137.exclusions === undefined) && (missing57 = "exclusions"))) || ((data137.price_version === undefined) && (missing57 = "price_version"))) || ((data137.as_of === undefined) && (missing57 = "as_of"))){const err353 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/required",keyword:"required",params:{missingProperty: missing57},message:"must have required property '"+missing57+"'"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {const _errs571 = errors;for(const key3 in data137){if(!(func237.call(schema320.properties.cost.anyOf[0].properties, key3))){const err354 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;break;}}if(_errs571 === errors){if(data137.label !== undefined){let data142 = data137.label;const _errs572 = errors;if(!(((data142 === "reported") || (data142 === "calculated")) || (data142 === "unknown"))){const err355 = {instancePath:instancePath+"/cost/label",schemaPath:"#/properties/cost/anyOf/0/properties/label/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.label.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}var valid197 = _errs572 === errors;}else {var valid197 = true;}if(valid197){if(data137.total !== undefined){let data143 = data137.total;const _errs573 = errors;const _errs574 = errors;let valid198 = false;const _errs575 = errors;if(!(validate118(data143, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);errors = vErrors.length;}var _valid60 = _errs575 === errors;valid198 = valid198 || _valid60;if(_valid60){var props22 = {};props22.low = true;props22.high = true;}const _errs576 = errors;if(data143 !== null){const err356 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid60 = _errs576 === errors;valid198 = valid198 || _valid60;if(!valid198){const err357 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/0/properties/total/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}else {errors = _errs574;if(vErrors !== null){if(_errs574){vErrors.length = _errs574;}else {vErrors = null;}}}var valid197 = _errs573 === errors;}else {var valid197 = true;}if(valid197){if(data137.lines !== undefined){let data144 = data137.lines;const _errs578 = errors;if(errors === _errs578){if(Array.isArray(data144)){var valid199 = true;const len1 = data144.length;for(let i1=0; i1<len1; i1++){let data145 = data144[i1];const _errs580 = errors;if(errors === _errs580){if(data145 && typeof data145 == "object" && !Array.isArray(data145)){let missing58;if(((((((data145.what === undefined) && (missing58 = "what")) || ((data145.quantity === undefined) && (missing58 = "quantity"))) || ((data145.unit === undefined) && (missing58 = "unit"))) || ((data145.rate === undefined) && (missing58 = "rate"))) || ((data145.amount === undefined) && (missing58 = "amount"))) || ((data145.quantity_source === undefined) && (missing58 = "quantity_source"))){const err358 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/required",keyword:"required",params:{missingProperty: missing58},message:"must have required property '"+missing58+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}else {if(data145.what !== undefined){let data146 = data145.what;const _errs582 = errors;if(!((((((((data146 === "cpu") || (data146 === "memory")) || (data146 === "disk")) || (data146 === "gpu")) || (data146 === "machine")) || (data146 === "creation")) || (data146 === "egress")) || (data146 === "snapshot_storage"))){const err359 = {instancePath:instancePath+"/cost/lines/" + i1+"/what",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/what/enum",keyword:"enum",params:{allowedValues: schema320.properties.cost.anyOf[0].properties.lines.items.properties.what.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}var valid200 = _errs582 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity !== undefined){let data147 = data145.quantity;const _errs583 = errors;const _errs584 = errors;if(errors === _errs584){if(typeof data147 === "string"){if(!pattern50.test(data147)){const err360 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}else {const err361 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}var valid200 = _errs583 === errors;}else {var valid200 = true;}if(valid200){if(data145.unit !== undefined){let data148 = data145.unit;const _errs586 = errors;if(errors === _errs586){if(typeof data148 === "string"){if(func1(data148) < 1){const err362 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}else {const err363 = {instancePath:instancePath+"/cost/lines/" + i1+"/unit",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/unit/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}var valid200 = _errs586 === errors;}else {var valid200 = true;}if(valid200){if(data145.rate !== undefined){let data149 = data145.rate;const _errs588 = errors;const _errs589 = errors;if(errors === _errs589){if(typeof data149 === "string"){if(!pattern50.test(data149)){const err364 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}else {const err365 = {instancePath:instancePath+"/cost/lines/" + i1+"/rate",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}var valid200 = _errs588 === errors;}else {var valid200 = true;}if(valid200){if(data145.amount !== undefined){let data150 = data145.amount;const _errs591 = errors;const _errs592 = errors;if(errors === _errs592){if(typeof data150 === "string"){if(!pattern50.test(data150)){const err366 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}else {const err367 = {instancePath:instancePath+"/cost/lines/" + i1+"/amount",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}var valid200 = _errs591 === errors;}else {var valid200 = true;}if(valid200){if(data145.quantity_source !== undefined){let data151 = data145.quantity_source;const _errs594 = errors;if(typeof data151 !== "string"){const err368 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(!((((((data151 === "provider") || (data151 === "published")) || (data151 === "measured")) || (data151 === "recorded")) || (data151 === "calculated")) || (data151 === "unknown"))){const err369 = {instancePath:instancePath+"/cost/lines/" + i1+"/quantity_source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}var valid200 = _errs594 === errors;}else {var valid200 = true;}if(valid200){if(data145.text !== undefined){let data152 = data145.text;const _errs597 = errors;if(errors === _errs597){if(typeof data152 === "string"){if(func1(data152) < 1){const err370 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}else {const err371 = {instancePath:instancePath+"/cost/lines/" + i1+"/text",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}var valid200 = _errs597 === errors;}else {var valid200 = true;}if(valid200){if(data145.sources !== undefined){let data153 = data145.sources;const _errs599 = errors;if(errors === _errs599){if(data153 && typeof data153 == "object" && !Array.isArray(data153)){let missing59;if((data153.amount === undefined) && (missing59 = "amount")){const err372 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/required",keyword:"required",params:{missingProperty: missing59},message:"must have required property '"+missing59+"'"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {if(data153.quantity !== undefined){let data154 = data153.quantity;const _errs601 = errors;if(errors === _errs601){if(typeof data154 === "string"){if(func1(data154) < 1){const err373 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/quantity",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/quantity/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}var valid205 = _errs601 === errors;}else {var valid205 = true;}if(valid205){if(data153.rate !== undefined){let data155 = data153.rate;const _errs603 = errors;if(errors === _errs603){if(typeof data155 === "string"){if(func1(data155) < 1){const err375 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}}else {const err376 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/rate",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/rate/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}var valid205 = _errs603 === errors;}else {var valid205 = true;}if(valid205){if(data153.amount !== undefined){let data156 = data153.amount;const _errs605 = errors;if(errors === _errs605){if(typeof data156 === "string"){if(func1(data156) < 1){const err377 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}else {const err378 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources/amount",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}var valid205 = _errs605 === errors;}else {var valid205 = true;}}}}}else {const err379 = {instancePath:instancePath+"/cost/lines/" + i1+"/sources",schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}}var valid200 = _errs599 === errors;}else {var valid200 = true;}}}}}}}}}}else {const err380 = {instancePath:instancePath+"/cost/lines/" + i1,schemaPath:"#/properties/cost/anyOf/0/properties/lines/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}var valid199 = _errs580 === errors;if(!valid199){break;}}}else {const err381 = {instancePath:instancePath+"/cost/lines",schemaPath:"#/properties/cost/anyOf/0/properties/lines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}var valid197 = _errs578 === errors;}else {var valid197 = true;}if(valid197){if(data137.held_back_by !== undefined){let data157 = data137.held_back_by;const _errs607 = errors;if(errors === _errs607){if(Array.isArray(data157)){var valid206 = true;const len2 = data157.length;for(let i2=0; i2<len2; i2++){let data158 = data157[i2];const _errs609 = errors;if(errors === _errs609){if(typeof data158 === "string"){if(func1(data158) < 1){const err382 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}else {const err383 = {instancePath:instancePath+"/cost/held_back_by/" + i2,schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}var valid206 = _errs609 === errors;if(!valid206){break;}}}else {const err384 = {instancePath:instancePath+"/cost/held_back_by",schemaPath:"#/properties/cost/anyOf/0/properties/held_back_by/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}var valid197 = _errs607 === errors;}else {var valid197 = true;}if(valid197){if(data137.exclusions !== undefined){let data159 = data137.exclusions;const _errs611 = errors;if(errors === _errs611){if(Array.isArray(data159)){var valid207 = true;const len3 = data159.length;for(let i3=0; i3<len3; i3++){let data160 = data159[i3];const _errs613 = errors;if(errors === _errs613){if(typeof data160 === "string"){if(func1(data160) < 1){const err385 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}else {const err386 = {instancePath:instancePath+"/cost/exclusions/" + i3,schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}}var valid207 = _errs613 === errors;if(!valid207){break;}}}else {const err387 = {instancePath:instancePath+"/cost/exclusions",schemaPath:"#/properties/cost/anyOf/0/properties/exclusions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}var valid197 = _errs611 === errors;}else {var valid197 = true;}if(valid197){if(data137.price_version !== undefined){let data161 = data137.price_version;const _errs615 = errors;if((typeof data161 !== "string") && (data161 !== null)){const err388 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/type",keyword:"type",params:{type: schema320.properties.cost.anyOf[0].properties.price_version.type},message:"must be string,null"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if(errors === _errs615){if(typeof data161 === "string"){if(!pattern77.test(data161)){const err389 = {instancePath:instancePath+"/cost/price_version",schemaPath:"#/properties/cost/anyOf/0/properties/price_version/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"+"\""};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}}}var valid197 = _errs615 === errors;}else {var valid197 = true;}if(valid197){if(data137.as_of !== undefined){let data162 = data137.as_of;const _errs617 = errors;const _errs618 = errors;if(errors === _errs618){if(errors === _errs618){if(typeof data162 === "string"){if(!pattern78.test(data162)){const err390 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(!(formats0.validate(data162))){const err391 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}}}else {const err392 = {instancePath:instancePath+"/cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}}var valid197 = _errs617 === errors;}else {var valid197 = true;}if(valid197){if(data137.per_hour !== undefined){const _errs620 = errors;if(!(validate122(data137.per_hour, {instancePath:instancePath+"/cost/per_hour",parentData:data137,parentDataProperty:"per_hour",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);errors = vErrors.length;}var valid197 = _errs620 === errors;}else {var valid197 = true;}if(valid197){if(data137.reported_figure !== undefined){let data164 = data137.reported_figure;const _errs621 = errors;if(errors === _errs621){if(data164 && typeof data164 == "object" && !Array.isArray(data164)){let missing60;if((((data164.source === undefined) && (missing60 = "source")) || ((data164.observed_at === undefined) && (missing60 = "observed_at"))) || ((data164.how === undefined) && (missing60 = "how"))){const err393 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/required",keyword:"required",params:{missingProperty: missing60},message:"must have required property '"+missing60+"'"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}else {if(data164.source !== undefined){let data165 = data164.source;const _errs623 = errors;const _errs624 = errors;if(typeof data165 !== "string"){const err394 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if(!((((((data165 === "provider") || (data165 === "published")) || (data165 === "measured")) || (data165 === "recorded")) || (data165 === "calculated")) || (data165 === "unknown"))){const err395 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid210 = _errs624 === errors;if(valid210){if("provider" !== data165){const err396 = {instancePath:instancePath+"/cost/reported_figure/source",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/source/const",keyword:"const",params:{allowedValue: "provider"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}var valid209 = _errs623 === errors;}else {var valid209 = true;}if(valid209){if(data164.observed_at !== undefined){let data166 = data164.observed_at;const _errs626 = errors;const _errs627 = errors;if(errors === _errs627){if(errors === _errs627){if(typeof data166 === "string"){if(!pattern78.test(data166)){const err397 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}else {if(!(formats0.validate(data166))){const err398 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}}}else {const err399 = {instancePath:instancePath+"/cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}var valid209 = _errs626 === errors;}else {var valid209 = true;}if(valid209){if(data164.how !== undefined){let data167 = data164.how;const _errs629 = errors;if(errors === _errs629){if(typeof data167 === "string"){if(func1(data167) < 1){const err400 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}else {const err401 = {instancePath:instancePath+"/cost/reported_figure/how",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/properties/how/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}var valid209 = _errs629 === errors;}else {var valid209 = true;}}}}}else {const err402 = {instancePath:instancePath+"/cost/reported_figure",schemaPath:"#/properties/cost/anyOf/0/properties/reported_figure/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}var valid197 = _errs621 === errors;}else {var valid197 = true;}if(valid197){if(data137.summary !== undefined){let data168 = data137.summary;const _errs631 = errors;if(errors === _errs631){if(typeof data168 === "string"){if(func1(data168) < 1){const err403 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}}else {const err404 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/properties/cost/anyOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}var valid197 = _errs631 === errors;}else {var valid197 = true;}}}}}}}}}}}}}else {const err405 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}}var _valid57 = _errs551 === errors;valid188 = valid188 || _valid57;if(_valid57){var props23 = true;}const _errs633 = errors;const _errs635 = errors;let valid212 = true;const _errs636 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing61;if((data137.label === undefined) && (missing61 = "label")){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}else {if(data137.label !== undefined){if("unknown" !== data137.label){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}}}var _valid61 = _errs636 === errors;errors = _errs635;if(vErrors !== null){if(_errs635){vErrors.length = _errs635;}else {vErrors = null;}}let ifClause12;if(_valid61){const _errs638 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){if(data137.total !== null){const err408 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}}var _valid61 = _errs638 === errors;valid212 = _valid61;if(valid212){var props24 = {};props24.total = true;props24.label = true;}ifClause12 = "then";}else {const _errs641 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.total !== undefined){let data171 = data137.total;if(!(data171 && typeof data171 == "object" && !Array.isArray(data171))){const err409 = {instancePath:instancePath+"/cost/total",schemaPath:"#/properties/cost/anyOf/1/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}}var _valid61 = _errs641 === errors;valid212 = _valid61;if(valid212){if(props24 !== true){props24 = props24 || {};props24.total = true;}}ifClause12 = "else";}if(!valid212){const err410 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/if",keyword:"if",params:{failingKeyword: ifClause12},message:"must match \""+ifClause12+"\" schema"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}if(errors === _errs633){if(data137 && typeof data137 == "object" && !Array.isArray(data137)){let missing62;if(((data137.label === undefined) && (missing62 = "label")) || ((data137.total === undefined) && (missing62 = "total"))){const err411 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/required",keyword:"required",params:{missingProperty: missing62},message:"must have required property '"+missing62+"'"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}else {const _errs644 = errors;for(const key4 in data137){if(!(((key4 === "label") || (key4 === "total")) || (key4 === "summary"))){const err412 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;break;}}if(_errs644 === errors){if(data137.label !== undefined){let data172 = data137.label;const _errs645 = errors;if(!(((data172 === "reported") || (data172 === "calculated")) || (data172 === "unknown"))){const err413 = {instancePath:instancePath+"/cost/label",schemaPath:"#/components/schemas/CostLabel/enum",keyword:"enum",params:{allowedValues: schema119.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}var valid216 = _errs645 === errors;}else {var valid216 = true;}if(valid216){if(data137.total !== undefined){const _errs647 = errors;if(!(validate117(data137.total, {instancePath:instancePath+"/cost/total",parentData:data137,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);errors = vErrors.length;}var valid216 = _errs647 === errors;}else {var valid216 = true;}if(valid216){if(data137.summary !== undefined){let data174 = data137.summary;const _errs648 = errors;const _errs649 = errors;if(errors === _errs649){if(typeof data174 === "string"){if(func1(data174) < 1){const err414 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}else {const err415 = {instancePath:instancePath+"/cost/summary",schemaPath:"#/components/schemas/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}var valid216 = _errs648 === errors;}else {var valid216 = true;}}}}}}else {const err416 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}var _valid57 = _errs633 === errors;valid188 = valid188 || _valid57;if(_valid57){if(props23 !== true){props23 = true;}}const _errs651 = errors;if(data137 !== null){const err417 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid57 = _errs651 === errors;valid188 = valid188 || _valid57;if(!valid188){const err418 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs550;if(vErrors !== null){if(_errs550){vErrors.length = _errs550;}else {vErrors = null;}}}var valid0 = _errs549 === errors;}else {var valid0 = true;}if(valid0){if(data.charge !== undefined){let data175 = data.charge;const _errs653 = errors;const _errs654 = errors;let valid219 = false;const _errs655 = errors;if(!(validate363(data175, {instancePath:instancePath+"/charge",parentData:data,parentDataProperty:"charge",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate363.errors : vErrors.concat(validate363.errors);errors = vErrors.length;}var _valid62 = _errs655 === errors;valid219 = valid219 || _valid62;const _errs656 = errors;if(data175 !== null){const err419 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}var _valid62 = _errs656 === errors;valid219 = valid219 || _valid62;if(!valid219){const err420 = {instancePath:instancePath+"/charge",schemaPath:"#/properties/charge/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs654;if(vErrors !== null){if(_errs654){vErrors.length = _errs654;}else {vErrors = null;}}}var valid0 = _errs653 === errors;}else {var valid0 = true;}if(valid0){if(data.funded_until !== undefined){let data176 = data.funded_until;const _errs658 = errors;if((typeof data176 !== "string") && (data176 !== null)){validate468.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/type",keyword:"type",params:{type: schema320.properties.funded_until.type},message:"must be string,null"}];return false;}if(errors === _errs658){if(errors === _errs658){if(typeof data176 === "string"){if(!(formats0.validate(data176))){validate468.errors = [{instancePath:instancePath+"/funded_until",schemaPath:"#/properties/funded_until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs658 === errors;}else {var valid0 = true;}if(valid0){if(data.connectable !== undefined){const _errs660 = errors;if(typeof data.connectable !== "boolean"){validate468.errors = [{instancePath:instancePath+"/connectable",schemaPath:"#/properties/connectable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs660 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs662 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs662 === errors;}else {var valid0 = true;}if(valid0){if(data.route !== undefined){const _errs663 = errors;if(!(validate366(data.route, {instancePath:instancePath+"/route",parentData:data,parentDataProperty:"route",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate366.errors : vErrors.concat(validate366.errors);errors = vErrors.length;}var valid0 = _errs663 === errors;}else {var valid0 = true;}if(valid0){if(data.contract !== undefined){let data180 = data.contract;const _errs664 = errors;const _errs665 = errors;let valid220 = false;const _errs666 = errors;if(!(validate375(data180, {instancePath:instancePath+"/contract",parentData:data,parentDataProperty:"contract",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate375.errors : vErrors.concat(validate375.errors);errors = vErrors.length;}var _valid63 = _errs666 === errors;valid220 = valid220 || _valid63;if(_valid63){var props27 = {};props27.spec_version = true;props27.gates = true;props27.resources = true;props27.attested = true;}const _errs667 = errors;if(data180 !== null){const err421 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}var _valid63 = _errs667 === errors;valid220 = valid220 || _valid63;if(!valid220){const err422 = {instancePath:instancePath+"/contract",schemaPath:"#/properties/contract/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs665;if(vErrors !== null){if(_errs665){vErrors.length = _errs665;}else {vErrors = null;}}}var valid0 = _errs664 === errors;}else {var valid0 = true;}if(valid0){if(data.request !== undefined){let data181 = data.request;const _errs669 = errors;const _errs670 = errors;if(errors === _errs670){if(data181 && typeof data181 == "object" && !Array.isArray(data181)){}else {validate468.errors = [{instancePath:instancePath+"/request",schemaPath:"#/components/schemas/SandboxRequestSnapshot/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs669 === errors;}else {var valid0 = true;}if(valid0){if(data.hidden_secrets !== undefined){let data182 = data.hidden_secrets;const _errs673 = errors;if((!(data182 && typeof data182 == "object" && !Array.isArray(data182))) && (data182 !== null)){validate468.errors = [{instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/type",keyword:"type",params:{type: schema320.properties.hidden_secrets.type},message:"must be object,null"}];return false;}if(errors === _errs673){if(data182 && typeof data182 == "object" && !Array.isArray(data182)){for(const key5 in data182){const _errs675 = errors;const _errs676 = errors;if(errors === _errs676){if(typeof key5 === "string"){if(func1(key5) > 128){const err423 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters",propertyName:key5};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(func1(key5) < 1){const err424 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key5};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}else {if(!pattern5.test(key5)){const err425 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]{0,127}$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]{0,127}$"+"\"",propertyName:key5};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}}}}else {const err426 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/components/schemas/SecretName/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key5};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}var valid222 = _errs675 === errors;if(!valid222){const err427 = {instancePath:instancePath+"/hidden_secrets",schemaPath:"#/properties/hidden_secrets/propertyNames",keyword:"propertyNames",params:{propertyName: key5},message:"property name must be valid"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;validate468.errors = vErrors;return false;break;}}if(valid222){for(const key6 in data182){const _errs679 = errors;if(!(validate379(data182[key6], {instancePath:instancePath+"/hidden_secrets/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data182,parentDataProperty:key6,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate379.errors : vErrors.concat(validate379.errors);errors = vErrors.length;}var valid224 = _errs679 === errors;if(!valid224){break;}}}}}var valid0 = _errs673 === errors;}else {var valid0 = true;}if(valid0){if(data.tcp_ports !== undefined){let data184 = data.tcp_ports;const _errs680 = errors;if((!(Array.isArray(data184))) && (data184 !== null)){validate468.errors = [{instancePath:instancePath+"/tcp_ports",schemaPath:"#/properties/tcp_ports/type",keyword:"type",params:{type: schema320.properties.tcp_ports.type},message:"must be array,null"}];return false;}if(errors === _errs680){if(Array.isArray(data184)){var valid225 = true;const len4 = data184.length;for(let i4=0; i4<len4; i4++){let data185 = data184[i4];const _errs682 = errors;const _errs683 = errors;if(errors === _errs683){if(data185 && typeof data185 == "object" && !Array.isArray(data185)){let missing63;if((((data185.host === undefined) && (missing63 = "host")) || ((data185.port === undefined) && (missing63 = "port"))) || ((data185.tls === undefined) && (missing63 = "tls"))){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/required",keyword:"required",params:{missingProperty: missing63},message:"must have required property '"+missing63+"'"}];return false;}else {if(data185.host !== undefined){let data186 = data185.host;const _errs685 = errors;if(errors === _errs685){if(typeof data186 === "string"){if(func1(data186) < 1){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/host",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/host/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid227 = _errs685 === errors;}else {var valid227 = true;}if(valid227){if(data185.port !== undefined){let data187 = data185.port;const _errs687 = errors;const _errs688 = errors;const _errs689 = errors;let valid229 = false;const _errs690 = errors;if(!(((typeof data187 == "number") && (!(data187 % 1) && !isNaN(data187))) && (isFinite(data187)))){const err428 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}var _valid64 = _errs690 === errors;valid229 = valid229 || _valid64;const _errs692 = errors;if(typeof data187 !== "bigint"){const err429 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}var _valid64 = _errs692 === errors;valid229 = valid229 || _valid64;if(!valid229){const err430 = {instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs689;if(vErrors !== null){if(_errs689){vErrors.length = _errs689;}else {vErrors = null;}}}var valid228 = _errs688 === errors;if(valid228){if(typeof data187 === "bigint"){if(data187 < 1){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data187 > 65535){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs687){if((typeof data187 == "number") && (isFinite(data187))){if(data187 > 65535 || isNaN(data187)){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data187 < 1 || isNaN(data187)){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/port",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid227 = _errs687 === errors;}else {var valid227 = true;}if(valid227){if(data185.tls !== undefined){let data188 = data185.tls;const _errs693 = errors;if(typeof data188 !== "string"){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data188 === "none") || (data188 === "terminated"))){validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4+"/tls",schemaPath:"#/components/schemas/TcpPortEndpoint/properties/tls/enum",keyword:"enum",params:{allowedValues: schema452.properties.tls.enum},message:"must be equal to one of the allowed values"}];return false;}var valid227 = _errs693 === errors;}else {var valid227 = true;}}}}}else {validate468.errors = [{instancePath:instancePath+"/tcp_ports/" + i4,schemaPath:"#/components/schemas/TcpPortEndpoint/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid225 = _errs682 === errors;if(!valid225){break;}}}}var valid0 = _errs680 === errors;}else {var valid0 = true;}if(valid0){if(data.recorder !== undefined){let data189 = data.recorder;const _errs695 = errors;if((!(data189 && typeof data189 == "object" && !Array.isArray(data189))) && (data189 !== null)){validate468.errors = [{instancePath:instancePath+"/recorder",schemaPath:"#/properties/recorder/type",keyword:"type",params:{type: schema320.properties.recorder.type},message:"must be object,null"}];return false;}var valid0 = _errs695 === errors;}else {var valid0 = true;}if(valid0){if(data.limits !== undefined){const _errs697 = errors;if(!(validate381(data.limits, {instancePath:instancePath+"/limits",parentData:data,parentDataProperty:"limits",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate381.errors : vErrors.concat(validate381.errors);errors = vErrors.length;}var valid0 = _errs697 === errors;}else {var valid0 = true;}if(valid0){if(data.volume !== undefined){let data191 = data.volume;const _errs698 = errors;const _errs699 = errors;let valid230 = false;const _errs700 = errors;if(!(validate383(data191, {instancePath:instancePath+"/volume",parentData:data,parentDataProperty:"volume",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate383.errors : vErrors.concat(validate383.errors);errors = vErrors.length;}var _valid65 = _errs700 === errors;valid230 = valid230 || _valid65;if(_valid65){var props28 = {};props28.id = true;props28.path = true;props28.access = true;props28.restored_checkpoint = true;props28.restore_duration_ms = true;}const _errs701 = errors;if(data191 !== null){const err431 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}var _valid65 = _errs701 === errors;valid230 = valid230 || _valid65;if(!valid230){const err432 = {instancePath:instancePath+"/volume",schemaPath:"#/properties/volume/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;validate468.errors = vErrors;return false;}else {errors = _errs699;if(vErrors !== null){if(_errs699){vErrors.length = _errs699;}else {vErrors = null;}}}var valid0 = _errs698 === errors;}else {var valid0 = true;}if(valid0){if(data.operation_id !== undefined){let data192 = data.operation_id;const _errs703 = errors;if((typeof data192 !== "string") && (data192 !== null)){validate468.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/type",keyword:"type",params:{type: schema320.properties.operation_id.type},message:"must be string,null"}];return false;}if(errors === _errs703){if(typeof data192 === "string"){if(func1(data192) < 1){validate468.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs703 === errors;}else {var valid0 = true;}if(valid0){if(data.account !== undefined){let data193 = data.account;const _errs705 = errors;if(errors === _errs705){if(data193 && typeof data193 == "object" && !Array.isArray(data193)){let missing64;if(((data193.healthy === undefined) && (missing64 = "healthy")) || ((data193.detail === undefined) && (missing64 = "detail"))){validate468.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/required",keyword:"required",params:{missingProperty: missing64},message:"must have required property '"+missing64+"'"}];return false;}else {if(data193.healthy !== undefined){const _errs707 = errors;if(typeof data193.healthy !== "boolean"){validate468.errors = [{instancePath:instancePath+"/account/healthy",schemaPath:"#/properties/account/properties/healthy/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid231 = _errs707 === errors;}else {var valid231 = true;}if(valid231){if(data193.detail !== undefined){let data195 = data193.detail;const _errs709 = errors;if((typeof data195 !== "string") && (data195 !== null)){validate468.errors = [{instancePath:instancePath+"/account/detail",schemaPath:"#/properties/account/properties/detail/type",keyword:"type",params:{type: schema320.properties.account.properties.detail.type},message:"must be string,null"}];return false;}var valid231 = _errs709 === errors;}else {var valid231 = true;}}}}else {validate468.errors = [{instancePath:instancePath+"/account",schemaPath:"#/properties/account/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs705 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate468.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate468.errors = vErrors;return errors === 0;}validate468.evaluated = {"props":{"id":true,"state":true,"state_reason":true,"failure":true,"native_state":true,"observed_at":true,"state_recorded_at":true,"created_at":true,"expires_at":true,"ready_at":true,"ended_at":true,"created_at_source":true,"created_at_how":true,"created_at_step":true,"ready_at_source":true,"ready_at_how":true,"ready_at_step":true,"ended_at_source":true,"ended_at_how":true,"ended_at_step":true,"cost_source":true,"cost_how":true,"cost_step":true,"origin":true,"labels":true,"name":true,"resources":true,"image":true,"image_setup":true,"usage":true,"cost":true,"charge":true,"funded_until":true,"connectable":true,"lifetime":true,"route":true,"contract":true,"request":true,"hidden_secrets":true,"tcp_ports":true,"recorder":true,"limits":true,"volume":true,"operation_id":true,"account":true},"dynamicProps":false,"dynamicItems":false};