github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/syft/formats/syftjson/format.go (about)

     1  package syftjson
     2  
     3  import (
     4  	"github.com/anchore/syft/internal"
     5  	"github.com/anchore/syft/syft/sbom"
     6  )
     7  
     8  const ID sbom.FormatID = "syft-json"
     9  
    10  func Format() sbom.Format {
    11  	return sbom.NewFormat(
    12  		internal.JSONSchemaVersion,
    13  		encoder,
    14  		decoder,
    15  		validator,
    16  		ID, "json", "syft",
    17  	)
    18  }