arrayb for capacity and type in tankers

master
varun 3 years ago
parent bd9f8531ac
commit b384644672

@ -16,7 +16,7 @@ module.exports = function (fastify, opts, next) {
source: { type: "string" }, source: { type: "string" },
inputConnections: { inputConnections: {
type: "array", type: "array",
maxItems: 2, maxItems: 2500,
items: { items: {
type: "object", type: "object",
properties: { properties: {
@ -26,7 +26,7 @@ module.exports = function (fastify, opts, next) {
}, },
outputConnections: { outputConnections: {
type: "array", type: "array",
maxItems: 2, maxItems: 2500,
items: { items: {
type: "object", type: "object",
properties: { properties: {
@ -76,7 +76,7 @@ module.exports = function (fastify, opts, next) {
source: { type: "string" }, source: { type: "string" },
inputConnections: { inputConnections: {
type: "array", type: "array",
maxItems: 2, maxItems: 2500,
items: { items: {
type: "object", type: "object",
properties: { properties: {
@ -86,7 +86,7 @@ module.exports = function (fastify, opts, next) {
}, },
outputConnections: { outputConnections: {
type: "array", type: "array",
maxItems: 2, maxItems: 2500,
items: { items: {
type: "object", type: "object",
properties: { properties: {

@ -28,8 +28,27 @@ module.exports = function (fastify, opts, next) {
properties: { properties: {
tankerName: { type: "string" }, tankerName: { type: "string" },
phoneNumber: { type: "string"}, phoneNumber: { type: "string"},
typeofwater: { type: "string" }, typeofwater: {
capacity: { type: "string" }, 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: [ security: [

Loading…
Cancel
Save