| 21 | } |
| 22 | |
| 23 | type Character struct { |
| 24 | Name string `json:"name"` |
| 25 | Age string `json:"age"` |
| 26 | Occupation string `json:"job_occupation"` |
| 27 | Hobbies []string `json:"hobbies"` |
| 28 | MusicTaste []string `json:"favorites_music_genres"` |
| 29 | Sex string `json:"sex"` |
| 30 | } |
| 31 | |
| 32 | func (c *Character) ToJSONSchema() jsonschema.Definition { |
| 33 | return jsonschema.Definition{ |
nothing calls this directly
no outgoing calls
no test coverage detected