#34 ✓resolved
Ryan Heimbuch

JSON Schema implementation error

Reported by Ryan Heimbuch | March 24th, 2009 @ 11:48 PM

inputEx.JsonSchema.Builder doesn't handle a json-schema without a top-level type property. It builds a form with a single textbox instead.

Adding a type property allows the form to generate properly, but the "type" property is optional according to the JSON-schema spec.

The following schema exibits the problem when used with JsonSchema.Builder.

	"id": "Address", 
	"description": "Generic Address", 
	"properties": {
		"address1": {
			"type": "string", 
			"title": "Address"
		"address2": {
			"type": "string", 
			"optional": true, 
			"title": " "
		"city": {
			"type": "string", 
			"title": "City"
		"state": {
			"type": "string", 
			"title": "State", 
			"minLength": 2, 
			"maxLength": 2
		"zip": {
			"type": "string", 
			"title": "Zip Code"

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The issue tracker has moved to http://github.com/neyric/inputex/issues

People watching this ticket