"main" and "types" should either both have brackets or both not. Also add a comma after "properties".