nginxinc / crossplane

Quick and reliable way to convert NGINX configurations into JSON and back.
Apache License 2.0
719 stars 87 forks source link

"includes" key should point to an Array of indices. #12

Closed aluttik closed 7 years ago

aluttik commented 7 years ago

currently if the "directive" key of a Directive Object in the JSON schema is set to "include", an "includes" key will be available as well that specifies which files are actually being included by the directive. Instead of setting this "includes" key to an Array of paths, we should use an Array of integers that are the indices of the Config Objects in the "config" Array of the Response Object.