Skip to content

Validate URI domain #1705

@sm2017

Description

@sm2017

I want to validate uri

const schema = Joi
    .string()
    .uri({
      scheme: [
        /https?/,
      ],
    });

I know that https://github is valid but in my use case I want to treat as invalid

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions