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

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

Loading…
Cancel
Save