Skip to content

Enhancement: Add URL input type#19

Merged
saicheck2233 merged 1 commit intomasterfrom
new_AddURLInputType
Jul 11, 2023
Merged

Enhancement: Add URL input type#19
saicheck2233 merged 1 commit intomasterfrom
new_AddURLInputType

Conversation

@saicheck2233
Copy link
Copy Markdown
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