nginxinc / nginx-go-crossplane

A library for working with NGINX configs in Go
Apache License 2.0
46 stars 12 forks source link

Add `DirectiveSources` field to `ParseOptions` #97

Closed dengsh12 closed 2 months ago

dengsh12 commented 2 months ago

Proposed changes

Add a DirectiveSources field in ParseOptions. This field aims for users to indicate the OSS/N+ version, and dynamic modules they want to include for validation. If it is provided, it will be the only source of directives included in validation, and ParseOptions.MatchFuncs will be ignored

Checklist

Before creating a PR, run through this checklist and mark each as complete.