Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty object stored instead of createTime #164

Open
digvijayy opened this issue Aug 31, 2018 · 1 comment
Open

empty object stored instead of createTime #164

digvijayy opened this issue Aug 31, 2018 · 1 comment

Comments

@digvijayy
Copy link

digvijayy commented Aug 31, 2018

   `cors : Joi.array().items(Joi.object().keys({
        "Id": Joi.string(),
        "pacs": Joi.array().items(Joi.object().keys({
            "crate": Joi.number().allow(null),
            "desc": Joi.string().allow(null),
            "gunits": Joi.number().allow(null),
            "nunits": Joi.number().allow(null),
            "srate": Joi.number().allow(null),
            "boxcount": Joi.number().allow(null)
        })),
        "scode": Joi.string(),
        "seIds": Joi.string(),
        "uid": Joi.string(),
        "createdBy": Joi.string().guid({version:['uuidv4']}).required(),
        **"createTime" : Joi.date().iso().required(),**
    })).default([])`

The createTime in some cases is getting overwritten as an empty ( {} ) object. I am trying to scratch my head for a long time with no avail. Has anyone else seen such an issue. I am just not understanding how that can be because it is checked. It's happening in production and I am unable to replicate this in test.

@digvijayy digvijayy changed the title empty map stored instead of empty object stored instead of createTime Aug 31, 2018
@cdhowie
Copy link
Collaborator

cdhowie commented Aug 31, 2018

I would suggest that you continue to try to get the issue to show up in a test. We can't easily debug something that isn't reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants