Open geofflane opened 9 years ago
I believe the way that it's stated, its requiring transit feeds to include both a short_name AND a long_name, BUT since a route REALLY only needs one or the other, it's okay to have one of them be an empty string. However the field is still required and null values will not be accepted. Theoretically you could add a validation for this still:
validate :name_is_present
def name_is_present
if self.short_name.empty? && self.long_name.empty?
self.errors.add :base, 'Route must have a name'
end
end
According to the spec:
The current validation on a Route requires both short_name and long_name and so those missing one of the values will be excluded from the data returned.
https://developers.google.com/transit/gtfs/reference#routes_fields