Skip to content

Validation rules can't be disabled globally #136

@adamberecz

Description

@adamberecz

Environment

Reproduction

import '@vueform/builder/index.css';
import { defineConfig } from '@vueform/builder'

export default defineConfig({
  import: true,
  element: {
    props: {
      default: {
        validation: {
          validation: {
            // This does not have an effect
            nullable: false,
            regex: false,
            active_url: false,
            after: false,
            after_or_equal: false,
            before: false,
            before_or_equal: false,
            in: false,
            alpha: false,
            alpha_dash: false,
            alpha_num: false,
          },
        }
      },
      text: {
        validation: {
          validation: {
            in: true,
            alpha: true,
            alpha_dash: true,
            alpha_num: true,
          }
        }
      },
    },
  }
})

Describe the bug

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions