Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark payload invalid if any mandatory variable is not set #337

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

thjarvin
Copy link
Contributor

No description provided.

@@ -29,6 +29,17 @@ public static PassengerCountParser newInstance() {

@NotNull
public Optional<PassengerCount.Payload> parsePayload(@NotNull ApcJson json) {
final PassengerCount.Payload payload = parsePassengerCountPayload(json);

if (payload.hasInvalid()) {
Copy link
Contributor

@LofhJann LofhJann Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer "isInvalid" instead of "hasInvalid" here, semantically makes more sense in this context.

Guess it's auto-generated by protobuf builder though so it might not be worth the hassle to change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants