config-file-validator icon indicating copy to clipboard operation
config-file-validator copied to clipboard

Document using the config-file-validator programatically

Open kehoecj opened this issue 2 years ago • 1 comments

Description

The config-file-validator can be included and used programmatically within other go projects but there is currently no documentation for this. This can be useful for projects that want to integrate the config file validation into existing go-based CI tooling

kehoecj avatar Apr 28 '23 17:04 kehoecj

Hi @kehoecj , Can you please shed some light on what you mean by using config-file-validator programatically within other go projects ?

The only way I can think of is to use it in a Makefile and generate a rule in makefile for this.

.PHONY: config-file-validator config-file-validator: @go install github.com/Boeing/config-file-validator/cmd/[email protected] @validator --file-types

divyansh-2001 avatar Dec 02 '24 17:12 divyansh-2001

@divyansh-2001 Still interested in working this?

kehoecj avatar Oct 10 '25 16:10 kehoecj

Hi @kehoecj , Can you please shed some light on what you mean by using config-file-validator programatically within other go projects ?

The only way I can think of is to use it in a Makefile and generate a rule in makefile for this.

.PHONY: config-file-validator config-file-validator: @go install github.com/Boeing/config-file-validator/cmd/[email protected] @validator --file-types

The intent is to document how to import and import and use the config-file-validator functionality in an existing go program.

kehoecj avatar Oct 10 '25 16:10 kehoecj