types is a "map-like" directive meaning its body does not contain additional NGINX directives. Previously, if the body of the types directive was not empty, crossplane would fail to parse it because it did not recognize its contents as NGINX directives. This fixes this behavior by adding types to the set of map-like directives and validating only that each entry has the correct number of arguments, 1 or more.
Proposed changes
types
is a "map-like" directive meaning its body does not contain additional NGINX directives. Previously, if the body of thetypes
directive was not empty, crossplane would fail to parse it because it did not recognize its contents as NGINX directives. This fixes this behavior by addingtypes
to the set of map-like directives and validating only that each entry has the correct number of arguments, 1 or more.For an example of the
types
directive, see http://nginx.org/en/docs/http/ngx_http_core_module.html#types.Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentREADME.md
)