Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

JSON Schema implementation error

#34

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"
		}
	}
}

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

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. eric.abouaf (at gmail)
    eric.abouaf (at gmail)
    • State changed from new to resolved

    April 21st, 2009 @ 07:15 PM

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.