You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And if I try to add type on field, it will be like : "XXX": { "$ref": "#/$defs/Coustom", "type": "string" },
It has both type and ref. I want it only have type.
func (Coustom) JSONSchema() *jsonschema.Schema { return &jsonschema.Schema{ Type:"string", } }
I just add this func to my coustom struct, and got a nil pointer from here:
I tried
func (*Coustom) JSONSchema() *jsonschema.Schema
,but still got the same error.Did I make a mistake somewhere?
The text was updated successfully, but these errors were encountered: