|
|
|
@ -29,15 +29,16 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
tankerName: { type: "string" },
|
|
|
|
|
phoneNumber: { type: "string"},
|
|
|
|
|
typeofwater: {
|
|
|
|
|
type: "array",
|
|
|
|
|
type: "array",
|
|
|
|
|
maxItems: 2500,
|
|
|
|
|
items: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
typeofwater: { type: "string", default: null },
|
|
|
|
|
typeofwater: { type: "string", default: null },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
capacity: {
|
|
|
|
|
type: "array",
|
|
|
|
|
maxItems: 2500,
|
|
|
|
@ -45,10 +46,12 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
capacity: { type: "string", default: null },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
@ -58,7 +61,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: tankersController.addTankers,
|
|
|
|
|
// onResponse: (request, reply) => {
|
|
|
|
|
// validationHandler.sendPhoneVerificationCode(request, reply);
|
|
|
|
@ -93,8 +96,28 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
properties: {
|
|
|
|
|
tankerName: { type: "string", default: null },
|
|
|
|
|
phoneNumber: { type: "string", default: null },
|
|
|
|
|
capacity: { type: "number" },
|
|
|
|
|
typeofwater: { type: "string", default: null },
|
|
|
|
|
typeofwater: {
|
|
|
|
|
type: "array",
|
|
|
|
|
maxItems: 2500,
|
|
|
|
|
items: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
typeofwater: { type: "string", default: null },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
capacity: {
|
|
|
|
|
type: "array",
|
|
|
|
|
maxItems: 2500,
|
|
|
|
|
items: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
capacity: { type: "string", default: null },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|