diff --git a/package-lock.json b/package-lock.json index a7c3cdf0a..9ab9117e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "libphonenumber-js": "^1.10.8", "lz-string": "^1.4.4", "mangrove-reviews": "^0.1.3", - "moment": "^2.29.2", + "moment": "^2.29.4", "opening_hours": "^3.6.0", "osm-auth": "^1.0.2", "osmtogeojson": "^3.0.0-beta.4", @@ -9825,9 +9825,9 @@ } }, "node_modules/moment": { - "version": "2.29.2", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.2.tgz", - "integrity": "sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg==", + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", "engines": { "node": "*" } @@ -24437,9 +24437,9 @@ "integrity": "sha512-2lMlY1Yc1+CUy0gw4H95uNN7vjbpoED7NNRSBHE25nWfLBdmMzFCsPshlzbxHz+gYMcBEUN8V4pU16prcdPSgA==" }, "moment": { - "version": "2.29.2", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.2.tgz", - "integrity": "sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg==" + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==" }, "monotone-convex-hull-2d": { "version": "1.0.1", diff --git a/package.json b/package.json index 7036ea304..3987f7bf1 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "libphonenumber-js": "^1.10.8", "lz-string": "^1.4.4", "mangrove-reviews": "^0.1.3", - "moment": "^2.29.2", + "moment": "^2.29.4", "opening_hours": "^3.6.0", "osm-auth": "^1.0.2", "osmtogeojson": "^3.0.0-beta.4", diff --git a/scripts/fixSchemas.ts b/scripts/fixSchemas.ts index aa2020523..ad71e2efa 100644 --- a/scripts/fixSchemas.ts +++ b/scripts/fixSchemas.ts @@ -5,9 +5,11 @@ import {readFileSync, writeFileSync} from "fs"; * Extracts the data from the scheme file and writes them in a flatter structure */ -interface JsonSchema { +export type JsonSchemaType = string | {$ref: string, description: string} | {type: string} | JsonSchemaType[] + +export interface JsonSchema { description?: string, - type?: string, + type?: JsonSchemaType, properties?: any, items?: JsonSchema, allOf?: JsonSchema[],