Skip to content

Enhancement: Add URL input type #19

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

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Conversation

saicheck2233
Copy link
Owner

Description: Add URL input type with validation. Below is the schema used for generating the URL input.

{
  "$schema": "http://json-schema.org/draft-03/schema#",
  "type": "object",
  "properties": {
    "s1": {
      "type": "string",
      "title": "An URL input",
      "format": "url",
      "description": "Example: www.domain.com"
    }
  }
}

Custom validation pattern is also supported if user does not want to use the default pattern validation.

Changes:
image
A generated form with URL type input.

image
Form would throws validation error if the value given is not a valid URL.

image
Validation passed if a valid URL is provided.

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

Successfully merging this pull request may close these issues.

2 participants