MCPcopy Create free account
hub / github.com/compose-spec/compose-go / TestValidateAllowsXTopLevelFields

Function TestValidateAllowsXTopLevelFields

schema/schema_test.go:55–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestValidateAllowsXTopLevelFields(t *testing.T) {
56 config := map[string]any{
57 "x-extra-stuff": map[string]any{},
58 }
59
60 assert.NilError(t, Validate(config))
61 assert.NilError(t, Validate(config))
62}
63
64func TestValidateAllowsXFields(t *testing.T) {
65 config := map[string]any{

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…