Skip to content

VIVOMEDIA/neos-ui-json-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neos CMS - JSON Validator Plugin for NeosUI

Latest Stable Version Total Downloads License

A validator plugin for NeosUI to check properties for valid JSON strings.

Install

Install with composer

composer require vivomedia/neos-ui-json-validator 

Usage

To use the validator on a property, just add VIVOMEDIA.NeosUI.JsonValidator/Validation/JsonValidator to the validation within your NodeType definition.

Example:

'Some.Of.Your:NodeTypes':
  properties:
    jsonString:
      type: string
      ui:
        label: 'JSON Data'
      validation:
        'Neos.Neos/Validation/NotEmptyValidator': []
        'VIVOMEDIA.NeosUI.JsonValidator/Validation/JsonValidator': []

See also: