docstr: It should perform validation on lists
docstr_tok: ["It","should","perform","validation","on","lists"]
code: def test_validation_on_list(self, app, client):
      """It should perform validation on lists"""
      api = restplus.Api(app, validate=True)
  
      person = api.model(
          "Person",
          {
              "name": restplus.fields.String(required=True),
              "age": restplus.fields.Integer(required=True),
          },
      )
  
      family = api.model(
          "Family",
          {
              "name": restplus.fields.String(required=True),
              "members": restplus.fields.List(
                  restplus.fields.Nested(person)
              ),
          },
      )
  
      @api.route("/validation/")
      class List(restplus.Resource):
          @api.expect(family)
          def post(self):
              return {}
  
      self.assert_errors(
          client,
          "/validation/",
          {"name": "Doe", "members": [{"name": "Jonn"}, {"age": 42}]},
          "members.0.age",
          "members.1.name",
      )
  
imports: from __future__ import unicode_literals
  import flask_restplus
label_desc: Use image node_id 13 for calling the PayloadTest obj's underlying member method code with example usage: obj.test_validation_on_list(app, client) and returns: dict