Skip to content

Commit e55f63c

Browse files
authored
feat: cemv_support - update schema (#2081)
* cemv_support - update schema * removed invalid gradle/gradle-build-action@v4
1 parent c9e822b commit e55f63c

4 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/end_to_end.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
6262
restore-keys: ${{ runner.os }}-gradle
6363
- name: Package cli app jar with Gradle
64-
uses: gradle/gradle-build-action@v4
64+
uses: gradle/actions/setup-gradle@v3
6565

6666
- name: Builds ShadowJar
6767
run: ./gradlew shadowJar

main/src/main/java/org/mobilitydata/gtfsvalidator/table/GtfsAgencySchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ public interface GtfsAgencySchema extends GtfsEntity {
4949

5050
@FieldType(FieldTypeEnum.EMAIL)
5151
String agencyEmail();
52+
53+
GtfsCemvSupport cemvSupport();
5254
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.mobilitydata.gtfsvalidator.table;
2+
3+
import org.mobilitydata.gtfsvalidator.annotation.GtfsEnumValue;
4+
5+
/**
6+
* Enum representing the cemv_support field values.
7+
*
8+
* <p>0 or empty: No cEMV information available for trips associated with this agency or route. 1:
9+
* Riders may use cEMVs as fare media for trips associated with this agency or route. 2: cEMVs are
10+
* not supported as fare media for trips associated with this agency or route.
11+
*/
12+
@GtfsEnumValue(name = "NO_INFORMATION", value = 0)
13+
@GtfsEnumValue(name = "SUPPORTED", value = 1)
14+
@GtfsEnumValue(name = "NOT_SUPPORTED", value = 2)
15+
public interface GtfsCemvSupportEnum {}

main/src/main/java/org/mobilitydata/gtfsvalidator/table/GtfsRouteSchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,6 @@ public interface GtfsRouteSchema extends GtfsEntity {
6969
@Index
7070
@ConditionallyRequired
7171
String networkId();
72+
73+
GtfsCemvSupport cemvSupport();
7274
}

0 commit comments

Comments
 (0)