blob: 3cebcac8d1c8f80fc245fc7f4f9b8d852e1f7df9 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "jsonschema",
srcs = ["jsonschema.go"],
importpath = "go.skia.org/infra/go/jsonschema",
visibility = ["//visibility:public"],
deps = [
"//go/skerr",
"//go/sklog",
"//go/util",
"@com_github_alecthomas_jsonschema//:jsonschema",
"@com_github_xeipuuv_gojsonschema//:gojsonschema",
],
)
go_test(
name = "jsonschema_test",
srcs = ["jsonschema_test.go"],
data = glob(["testdata/**"]),
embed = [":jsonschema"],
deps = ["@com_github_stretchr_testify//require"],
)