 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
	// Unique sequential identifier.
	ID int `json:"id" jsonschema:"required"`
	// This comment will be ignored
	Name    string         `` /* 153-byte string literal not displayed */
	Friends []int          `json:"friends,omitempty" jsonschema_description:"list of IDs, omitted when empty"`
	Tags    map[string]any `json:"tags,omitempty"`
	// An array of pets the user cares for.
	Pets nested.Pets `json:"pets"`
	// Set of animal names to pets
	NamedPets nested.NamedPets `json:"named_pets"`
	// Set of plants that the user likes
	Plants []*nested.Plant `json:"plants" jsonschema:"title=Plants"`
}
    User is used as a base to provide tests for comments. Don't forget to checkout the nested path.
 Click to show internal directories. 
   Click to hide internal directories.