Skip to content

Wrong db name validation #291

Open
Open
@hololoev

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.

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