feat: update schema id
Some checks failed
Test Branch / test (push) Has been cancelled

This commit is contained in:
Kevin Franklin Kim 2025-09-19 15:04:55 +02:00
parent aca5eb72ab
commit 1ef8e1066c
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"$schema": "https://json-schema.org/draft/2020-12/schema", "$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", "$ref": "#/$defs/Config",
"$defs": { "$defs": {
"Config": { "Config": {

View File

@ -38,6 +38,7 @@ func TestSchema(t *testing.T) {
reflector.RequiredFromJSONSchemaTags = true reflector.RequiredFromJSONSchemaTags = true
require.NoError(t, reflector.AddGoComments("github.com/foomo/posh", "./")) require.NoError(t, reflector.AddGoComments("github.com/foomo/posh", "./"))
schema := reflector.Reflect(&Config{}) schema := reflector.Reflect(&Config{})
schema.ID = "https://raw.githubusercontent.com/foomo/posh/refs/heads/main/posh.schema.json"
actual, err := json.MarshalIndent(schema, "", " ") actual, err := json.MarshalIndent(schema, "", " ")
require.NoError(t, err) require.NoError(t, err)