JSON Schema

{
  "title": "Dynamic Form Schema",
  "description": "A schema for generating dynamic forms",
  "type": "object",
  "required": [
    "name",
    "email"
  ],
  "properties": {
    "name": {
      "type": "string",
      "title": "Nome"
    },
    "rating": {
      "type": "integer",
      "title": "Classificação",
      "minimum": 0,
      "maximum": 5
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "E-mail"
    },
    "colors": {
      "type": "array",
      "title": "Cores",
      "items": {
        "type": "string",
        "enumNames": [
          "Verde",
          "Azul",
          "Vermelho",
          "Amarelo"
        ],
        "enum": [
          {
            "cor": "verde",
            "id": 1
          },
          {
            "cor": "azul",
            "id": 2
          },
          {
            "cor": "vermelho",
            "id": 3
          },
          {
            "cor": "amarelo",
            "id": 4
          }
        ]
      }
    },
    "choices": {
      "type": "integer",
      "title": "Choices",
      "enum": [
        1,
        2,
        3
      ],
      "enumNames": [
        "Option 1",
        "Option 2",
        "Option 3"
      ]
    },
    "tags": {
      "type": "array",
      "title": "Tags",
      "items": {
        "type": "string",
        "enum": [
          "website",
          "database"
        ],
        "enumNames": [
          "WebSite",
          "DataBase"
        ]
      },
      "uniqueItems": true
    }
  }
}

JSON Ui Schema

Dynamic Form Schema - Form

Initial Form Data

Saved Form Data

No data saved yet.