Skip to content

Commit b0a374d

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 b322b09 commit b0a374d

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_NAMESPACE)/v$(PLUGIN_VERSION)
2424

25-
.PHONY: all build test test-unit test-integration lint clean install help setup-credentials 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 setup-credentials 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
@@ -13,8 +13,8 @@ require (
1313
github.com/aws/smithy-go v1.24.0
1414
github.com/google/uuid v1.6.0
1515
github.com/platform-engineering-labs/formae/pkg/model v0.1.1
16-
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.2
17-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.5
16+
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.3
17+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.6
1818
github.com/stretchr/testify v1.11.1
1919
)
2020

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ github.com/platform-engineering-labs/formae/pkg/api/model v0.1.1 h1:ZMTgKwSomy2c
7676
github.com/platform-engineering-labs/formae/pkg/api/model v0.1.1/go.mod h1:0ncHFCsGA6b0w1kBm6m+QwJ823qAY2vL47GvoR0BTyU=
7777
github.com/platform-engineering-labs/formae/pkg/model v0.1.1 h1:WLrME6ke89UPA2c+xUTGXVWYqhsXpYO+ouiuguJUTkU=
7878
github.com/platform-engineering-labs/formae/pkg/model v0.1.1/go.mod h1:XmGJA7jNPX9cEGc8TxTiEDitBuEVJOddNakdTZ/bH4U=
79-
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.2 h1:pvSsWU6QjEU2auARpJdQbMOnpFwnAldpxOizTDdI/HM=
80-
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.2/go.mod h1:8natf83aLhyYS6gPH3ExpIo+F72TjLZTXNDpxDfUpz8=
81-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.5 h1:biaJDkQ3PKy39N+QNsDpbnzQ5f1Ch/pqozZcWrIwUNg=
82-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.5/go.mod h1:km+ogAGWDMyI5qnjd9pe270rfXm2f0reDlSS7TRNPn8=
79+
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.3 h1:e04QmBJjxPr6B6IzoBv4nHcswWhcKHdknnmqkiSPSuc=
80+
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.3/go.mod h1:8natf83aLhyYS6gPH3ExpIo+F72TjLZTXNDpxDfUpz8=
81+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.6 h1:u2mLgvZTKNPgZZHdKr37Y4TpI7rhyGNJchzEc1DsebM=
82+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.6/go.mod h1:km+ogAGWDMyI5qnjd9pe270rfXm2f0reDlSS7TRNPn8=
8383
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
8484
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
8585
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

0 commit comments

Comments
 (0)