jdorn / json-editor

JSON Schema Based Editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to have a title and value for the checkbox object?

dolv opened this issue · comments

Hi, I have the object like this:

"events": {
	"type": "array",
	"uniqueItems": true,
	"format": "checkbox",
	"minLength": 1,
	"items":{
		"type": "string",
		"enum": ["Induction event","Shipping event"]
	},
	"default": ["Induction event","Shipping event"]
}

I'd like to have a possibility to get mapped from title to values array from the checkbox array object according to the following map:

"eventsToValuesMAP": {
	"Induction event": "IND",
	"Shipping event": "SHP"
}

How to properly define the "events" to get desired effect?
Thank you in advance.

Thank you for your time.
Created new issue in the reffered repo
json-editor/json-editor#67

The issue has been resolved