@golemio/parkings
Version:
Golemio Parkings Module
58 lines • 2.26 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.iptOictParkingMachinesSchema = void 0;
exports.iptOictParkingMachinesSchema = {
type: "object",
properties: {
type: {
type: "string",
enum: ["FeatureCollection"],
},
features: {
type: "array",
items: {
type: "object",
properties: {
type: {
type: "string",
enum: ["Feature"],
},
geometry: {
type: "object",
properties: {
type: {
type: "string",
enum: ["Point"],
},
coordinates: {
type: "array",
items: {
type: "number",
},
minItems: 2,
maxItems: 2,
},
},
required: ["type", "coordinates"],
},
properties: {
type: "object",
properties: {
source: { type: "string" },
source_id: { type: "string" },
parking_id: { type: "string" },
code: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
machine_type: { type: "string", enum: ["payment_machine", "info_box"] },
valid_from: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
},
required: ["source", "source_id", "parking_id", "machine_type"],
},
},
required: ["type", "geometry", "properties"],
},
},
},
required: ["type", "features"],
additionalProperties: false,
};
//# sourceMappingURL=IptOictParkingMachinesSchema.js.map