Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to have a title and value for the checkbox object? (copied from jdorn repo issue #818) #67

Closed
dolv opened this issue May 22, 2018 · 3 comments

Comments

@dolv
Copy link

dolv commented May 22, 2018

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.

@dolv
Copy link
Author

dolv commented May 23, 2018

Hi, @marc7000
That is exactly what I was looking for.
Much appreciated.

P.S. It could be usefull having your example in the array section of the README.md document. Please consider adding it there.

@dolv
Copy link
Author

dolv commented May 23, 2018

The issue has successfully been resolved - thanks goes to @marc7000

@dolv dolv closed this as completed May 23, 2018
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

No branches or pull requests

2 participants