code: func (self *ResourceOutput) Validate() error {
  	if self.Name == "" {
  		return fmt.Errorf("ResourceOutput.name is missing but is a required field")
  	} else {
  		val := Validate(RdlSchema(), "Identifier", self.Name)
  		if !val.Valid {
  			return fmt.Errorf("ResourceOutput.name does not contain a valid Identifier (%v)", val.Error)
  		}
  	}
  	if self.Type == "" {
  		return fmt.Errorf("ResourceOutput.type is missing but is a required field")
  	} else {
  		val := Validate(RdlSchema(), "TypeRef", self.Type)
  		if !val.Valid {
  			return fmt.Errorf("ResourceOutput.type does not contain a valid TypeRef (%v)", val.Error)
  		}
  	}
  	if self.Header == "" {
  		return fmt.Errorf("ResourceOutput.header is missing but is a required field")
  	} else {
  		val := Validate(RdlSchema(), "String", self.Header)
  		if !val.Valid {
  			return fmt.Errorf("ResourceOutput.header does not contain a valid String (%v)", val.Error)
  		}
  	}
  	return nil
  }
docs: //
  // Validate - checks for missing required fields, etc
  //