mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
This commit is contained in:
parent
aca5eb72ab
commit
1ef8e1066c
@ -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": {
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user