Skip to content

Add an allowMissing parameter to file-based providers#73

Merged
czechboy0 merged 6 commits intoapple:mainfrom
czechboy0:hd-allow-missing
Nov 24, 2025
Merged

Add an allowMissing parameter to file-based providers#73
czechboy0 merged 6 commits intoapple:mainfrom
czechboy0:hd-allow-missing

Conversation

@czechboy0
Copy link
Contributor

@czechboy0 czechboy0 commented Nov 12, 2025

Motivation

Fixes #66.

Approved by SCO-0003: #75

Modifications

Added an allowMissing parameter to all file-based providers to treat missing files as empty.

Result

Easier to use file providers when a config file is optional.

Test Plan

Adapted and wrote new tests.

@czechboy0 czechboy0 added the 🆕 semver/minor Adds new public API. label Nov 12, 2025
@czechboy0
Copy link
Contributor Author

API breakage is red for expected reasons.

@czechboy0 czechboy0 marked this pull request as ready for review November 24, 2025 10:28
@czechboy0 czechboy0 requested a review from FranzBusch November 24, 2025 10:28
@czechboy0 czechboy0 merged commit c647945 into apple:main Nov 24, 2025
26 of 27 checks passed
@czechboy0 czechboy0 deleted the hd-allow-missing branch November 24, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revisit whether a missing file should throw an error or default to empty in file providers

2 participants