diff --git a/bundle/schema/schema.go b/bundle/schema/schema.go index e5977a394..527239816 100644 --- a/bundle/schema/schema.go +++ b/bundle/schema/schema.go @@ -17,7 +17,7 @@ type Schema struct { type Property struct { Type JsType `json:"type"` - Items *Item `json:"item,omitempty"` + Items *Item `json:"items,omitempty"` Properities map[string]*Property `json:"properties,omitempty"` AdditionalProperities *Property `json:"additionalProperties,omitempty"` } diff --git a/bundle/schema/schema_test.go b/bundle/schema/schema_test.go index 65cf8b535..3af219888 100644 --- a/bundle/schema/schema_test.go +++ b/bundle/schema/schema_test.go @@ -136,7 +136,7 @@ func TestObjectSchema(t *testing.T) { "properties": { "stakes": { "type": "array", - "item": { + "items": { "type": "string" } }