I mistakenly tried using write for the on.roles property instead of specifying it as an array of [write], and this resulted in a misleading compiler error:
error: 'roles': value must be 'all'. Expected format: {"create":null,"gollum":null,"page_build":null}
This pointed me down the wrong path, suggesting that I open roles up to all users instead of correcting the value to use [write] or to simply omit on.roles to get the default of [admin,maintainer,write] (which I realized is actually what I needed).
Ideally, the compiler error would indicate that roles needs to be either 'all' or an array of roles, showing the valid role values, with an additional statement of what the default value is if the property is omitted.
I mistakenly tried using
writefor theon.rolesproperty instead of specifying it as an array of[write], and this resulted in a misleading compiler error:This pointed me down the wrong path, suggesting that I open
rolesup to all users instead of correcting the value to use[write]or to simply omiton.rolesto get the default of[admin,maintainer,write](which I realized is actually what I needed).Ideally, the compiler error would indicate that
rolesneeds to be either 'all' or an array of roles, showing the valid role values, with an additional statement of what the default value is if the property is omitted.