diff --git a/jsonschema/json.go b/jsonschema/json.go index 24af8584e..c02d250aa 100644 --- a/jsonschema/json.go +++ b/jsonschema/json.go @@ -27,7 +27,7 @@ type Definition struct { // one element, where each element is unique. You will probably only use this with strings. Enum []string `json:"enum,omitempty"` // Properties describes the properties of an object, if the schema type is Object. - Properties map[string]Definition `json:"properties,omitempty"` + Properties map[string]Definition `json:"properties"` // Required specifies which properties are required, if the schema type is Object. Required []string `json:"required,omitempty"` // Items specifies which data type an array contains, if the schema type is Array.