Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Getting defaults for optional values

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
backend

Research direction

Start by inspecting the ScheduledStopPoint JAXB model and the NeTEx schema definitions for ForBoarding and ForAlighting. Clarify how defaults should be represented for absent optional values, then verify that requesting them returns the agreed sane boolean value instead of null.

Written by the indexing model from the issue text.

Description

Consider a ScheduledStopPoint that doesn't have ForBoarding or ForAlighting. Hence requesting this would return 'null'. I wonder iff defaults are specified we could get this behavior to a boolean that always returns a sane value for optional values. Any thoughts?

Dominant language
Java
Stars
21
Forks
15
Avg merge
34m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from entur/netex-java-model

All issues in entur/netex-java-model

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.