def test_update_val_size(self):
        """
        REST Api: Test update validate size
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model1_data(self.appbuilder.session, 2):
            model1 = (
                self.appbuilder.get_session.query(Model1)
                .filter_by(field_string="test0")
                .one_or_none()
            )
            pk = model1.id
            field_string = "a" * 51
            item = dict(field_string=field_string, field_integer=11, field_float=11.0)
            uri = f"api/v1/model1api/{pk}"
            rv = self.auth_client_put(client, token, uri, item)
            self.assertEqual(rv.status_code, 422)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(
                data["message"]["field_string"][0], "Longer than maximum length 50."
            )

        REST Api: Test update validate size
        
tests/test_api.py