Skip to content

Add back optional record fields for 4 exercises - #209

Open
ageron wants to merge 6 commits into
exercism:mainfrom
ageron:add-default-fields
Open

Add back optional record fields for 4 exercises#209
ageron wants to merge 6 commits into
exercism:mainfrom
ageron:add-default-fields

Conversation

@ageron

@ageron ageron commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This PR makes some fields optional for four exercises that used to have optional fields: clock, killer-sudoku-helper, rest-api and robot-simulator.

This makes the tests nicer to read, and gives the user some experience with default fields.

For clock, killer-sudoku-helper and robot-simulator, the optional field has a default value, which is preconfigured in the exercise stub, so this doesn't make the exercise any harder. In the case of rest-api, the payload field for the get function is optional without any default value, so the user needs to handle the Err(MissingField) case.

@github-actions

Copy link
Copy Markdown
Contributor

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

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.

1 participant