Skip to content

Wrong db name validation #291

Description

@hololoev

Hello guys.

Now we have a schema:

const option = Joi.object().keys({
    name: Joi.string().token().required(),
    models: Joi.alternatives().try(Joi.string(), Joi.array().items(Joi.string())),
    ignoredModels: Joi.alternatives().try(Joi.string(), Joi.array().items(Joi.string())),
    sequelize: Joi.object().instance(Sequelize).required(),
    sync: Joi.boolean().default(false),
    forceSync: Joi.boolean().default(false),
    debug: Joi.boolean(),
    onConnect: Joi.func(),
});

Name 'must only contain alpha-numeric and underscore characters', but at least "-" is valid character for db name, for example "ololo-dbname" is valid for mysql.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions