Skip to content

Commit dc4b881

Browse files
committed
feat: add verify-schema target and update SDK to v0.1.3
- Update pkg/plugin to v0.1.3 - Update pkg/plugin-conformance-tests to v0.1.6 - Add make verify-schema target for schema validation
1 parent a6fef9b commit dc4b881

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BINARY := $(PLUGIN_NAME)
2222
PLUGIN_BASE_DIR := $(HOME)/.pel/formae/plugins
2323
INSTALL_DIR := $(PLUGIN_BASE_DIR)/$(PLUGIN_NAME)/v$(PLUGIN_VERSION)
2424

25-
.PHONY: all build test test-unit test-integration lint clean install help clean-environment conformance-test conformance-test-crud conformance-test-discovery
25+
.PHONY: all build test test-unit test-integration lint verify-schema clean install help clean-environment conformance-test conformance-test-crud conformance-test-discovery
2626

2727
all: build
2828

@@ -47,6 +47,11 @@ test-integration:
4747
lint:
4848
golangci-lint run
4949

50+
## verify-schema: Validate PKL schema files
51+
## Checks that schema files are well-formed and follow formae conventions.
52+
verify-schema:
53+
$(GO) run github.com/platform-engineering-labs/formae/pkg/plugin/testutil/cmd/verify-schema --namespace $(PLUGIN_NAMESPACE) ./schema/pkl
54+
5055
## clean: Remove build artifacts
5156
clean:
5257
rm -rf bin/ dist/

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/your-org/formae-plugin-example
33
go 1.25
44

55
require (
6-
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.2
7-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.5
6+
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.3
7+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.6
88
)
99

1010
require (

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ github.com/platform-engineering-labs/formae/pkg/api/model v0.1.1 h1:ZMTgKwSomy2c
3131
github.com/platform-engineering-labs/formae/pkg/api/model v0.1.1/go.mod h1:0ncHFCsGA6b0w1kBm6m+QwJ823qAY2vL47GvoR0BTyU=
3232
github.com/platform-engineering-labs/formae/pkg/model v0.1.1 h1:WLrME6ke89UPA2c+xUTGXVWYqhsXpYO+ouiuguJUTkU=
3333
github.com/platform-engineering-labs/formae/pkg/model v0.1.1/go.mod h1:XmGJA7jNPX9cEGc8TxTiEDitBuEVJOddNakdTZ/bH4U=
34-
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.2 h1:pvSsWU6QjEU2auARpJdQbMOnpFwnAldpxOizTDdI/HM=
35-
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.2/go.mod h1:8natf83aLhyYS6gPH3ExpIo+F72TjLZTXNDpxDfUpz8=
36-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.5 h1:biaJDkQ3PKy39N+QNsDpbnzQ5f1Ch/pqozZcWrIwUNg=
37-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.5/go.mod h1:km+ogAGWDMyI5qnjd9pe270rfXm2f0reDlSS7TRNPn8=
34+
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.3 h1:e04QmBJjxPr6B6IzoBv4nHcswWhcKHdknnmqkiSPSuc=
35+
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.3/go.mod h1:8natf83aLhyYS6gPH3ExpIo+F72TjLZTXNDpxDfUpz8=
36+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.6 h1:u2mLgvZTKNPgZZHdKr37Y4TpI7rhyGNJchzEc1DsebM=
37+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.6/go.mod h1:km+ogAGWDMyI5qnjd9pe270rfXm2f0reDlSS7TRNPn8=
3838
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
3939
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
4040
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=

0 commit comments

Comments
 (0)