diff --git a/posh.schema.json b/posh.schema.json index a7ab9c4..1284d14 100644 --- a/posh.schema.json +++ b/posh.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/foomo/posh_test/config", + "$id": "https://raw.githubusercontent.com/foomo/posh/refs/heads/main/posh.schema.json", "$ref": "#/$defs/Config", "$defs": { "Config": { diff --git a/schema_test.go b/schema_test.go index ee46977..8653f53 100644 --- a/schema_test.go +++ b/schema_test.go @@ -38,6 +38,7 @@ func TestSchema(t *testing.T) { reflector.RequiredFromJSONSchemaTags = true require.NoError(t, reflector.AddGoComments("github.com/foomo/posh", "./")) schema := reflector.Reflect(&Config{}) + schema.ID = "https://raw.githubusercontent.com/foomo/posh/refs/heads/main/posh.schema.json" actual, err := json.MarshalIndent(schema, "", " ") require.NoError(t, err)