code: func (pTypeDef *MapTest) Validate() error {
  	if pTypeDef.Locations == nil {
  		return fmt.Errorf("MapTest: Missing required field: locations")
  	}
  	return nil
  }
docs: //
  // Validate - checks for missing required fields, etc
  //