|
rc := ReflectContext{} |
|
rc.Context = context.Background() |
|
rc.DefinitionsPrefix = "#/definitions/" |
|
rc.PropertyNameTag = "json" |
|
rc.Path = []string{"#"} |
|
rc.typeCycles = make(map[refl.TypeString]bool) |
|
|
|
InterceptType(checkSchemaSetup)(&rc) |
|
|
|
for _, option := range r.DefaultOptions { |
|
option(&rc) |
|
} |
|
|
|
for _, option := range options { |
|
option(&rc) |
|
} |
the rc instance does not set InterceptProperty filed, so the L236 just set rc.InterceptProperty = checkSchemaSetup.
When the options applied, the InterceptProperty would be rewrite.
jsonschema-go/reflect.go
Lines 229 to 244 in d4b7536
the rc instance does not set InterceptProperty filed, so the L236 just set rc.InterceptProperty = checkSchemaSetup.
When the options applied, the InterceptProperty would be rewrite.