"use strict";
const validation_schema = {
  "$schema": "http://json-schema.org/draft-04/schema#",
  type: "object",
  definitions: {
    Location: {
      type: "string"
    },
    InOut: {
      type: "string"
    },
    MORef: {
      type: "string"
    },
    MODate: {
      type: "string"
    },
    CIDPersonID: {
      oneOf: [
        {
          "type": "integer"
        }, {
          "type": "null"
        }]
    },
    CurrentRFO: {
      type: "string"
    }
  },
  properties: {
    additionalProperties: false,
    cDataSet: {
      type: "array",
      additionalItems: true,
      items: {
        type: "object",
        additionalProperties: false,
        required: [
          "Location",
          "MO In/MO Out",
          "MO Ref",
          "MO Date",
          "CID Person ID",
          "Current RFO"
        ],
        properties: {
          "Location": {"$ref": "#/definitions/Location"},
          "MO In/MO Out": {"$ref": "#/definitions/InOut"},
          "MO Ref": {"$ref": "#/definitions/MORef"},
          "MO Date": {"$ref": "#/definitions/MODate"},
          "CID Person ID": {"$ref": "#/definitions/CIDPersonID"},
          "Current RFO": {"$ref": "#/definitions/CurrentRFO"}
        }
      }
    }
  },
  required: [
    "cDataSet"
  ]
};

module.exports = {
  validate: function (request_body) {
    return RequestValidatorService.validate(request_body, validation_schema);
  },
  schema: validation_schema
};

@@ -419,60 +419,14 @@
  %7D%5D%0A
-    %7D,%0A    CurrentRFO: %7B%0A      type: %22string%22%0A
     %7D%0A
+
   %7D,
@@ -757,32 +757,8 @@
 D%22,%0A
-          %22Current RFO%22%0A
     
@@ -1007,24 +1007,24 @@
 s/MODate%22%7D,%0A
+
           %22C
@@ -1081,70 +1081,8 @@
 %22%7D,%0A
-          %22Current RFO%22: %7B%22$ref%22: %22#/definitions/CurrentRFO%22%7D%0A
     

Remove RFO from schema