conformance

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoRoot

func RepoRoot() (string, error)

RepoRoot walks up from the working directory until go.mod is found.

func ValidateIG

func ValidateIG(ctx context.Context, cfg IGValidatorConfig) error

ValidateIG validates conformance examples using the built-in Go validator.

Types

type IGValidatorConfig

type IGValidatorConfig struct {
	// BaseBundleRoot is the HL7 R4 bundle root (contains structure-definitions/).
	BaseBundleRoot string
	// IGResourcesDir contains SUSHI-generated IG resources.
	IGResourcesDir string
	ValidDir       string
	InvalidDir     string
}

IGValidatorConfig configures conformance example validation.

func DefaultIGValidatorConfig

func DefaultIGValidatorConfig(repoRoot string) IGValidatorConfig

DefaultIGValidatorConfig returns paths for IG example validation under repoRoot.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL