Skip to content

[INTERNAL] Improve handling of non-empty, non-manifest JSON files - #1248

Merged
d3xter666 merged 1 commit into
v4from
refactor-improve-json-handling-of-empty-non-manifest-files
Oct 23, 2026
Merged

d3xter666 merged 1 commit into
v4from
refactor-improve-json-handling-of-empty-non-manifest-files

Conversation

@d3xter666

@d3xter666 d3xter666 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Downport of UI5/cli#1668
JIRA: CPOUI5FOUNDATION-1046

This PR steps over and extends #1249.

The reason behind this change is that besides it's not related to manifest.json parsing, it follows the same pattern for handling empty JSON files and providing more context in the error message.
Thus, we handle this edge case of parsing empty JSON files the same.

Note: There are special cases where an empty JSON is expected and is handled explicitly. Those are not touched. i.e. https://github.com/UI5/cli/blob/main/packages/builder/lib/processors/jsdoc/lib/createIndexFiles.js#L66-L68

@d3xter666
d3xter666 force-pushed the refactor-improve-json-handling-of-empty-non-manifest-files branch from 7dcd511 to acd4deb Compare October 22, 2026 08:04
@d3xter666
d3xter666 changed the base branch from v4 to refactor-manifest-messages October 22, 2026 08:08
RandomByte
RandomByte previously approved these changes Oct 22, 2026
@RandomByte
RandomByte added this pull request to stack #1250 October 22, 2026 12:50
Base automatically changed from refactor-manifest-messages to v4 October 23, 2026 08:10
@d3xter666
d3xter666 force-pushed the refactor-improve-json-handling-of-empty-non-manifest-files branch 2 times, most recently from 3d727fa to 7675b07 Compare October 23, 2026 08:26
JIRA: CPOUI5FOUNDATION-1046

This PR steps over and extends UI5/cli#1667.

The reason behind this change is that besides it's not related to
manifest.json parsing, it follows the same pattern for handling empty
JSON files and providing more context in the error message.
Thus, we handle this edge case of parsing empty JSON files the same.
@d3xter666
d3xter666 force-pushed the refactor-improve-json-handling-of-empty-non-manifest-files branch from 7675b07 to 1cf27e7 Compare October 23, 2026 08:37
@d3xter666
d3xter666 merged commit eb28356 into v4 Oct 23, 2026
22 checks passed
@d3xter666
d3xter666 deleted the refactor-improve-json-handling-of-empty-non-manifest-files branch October 23, 2026 08:46
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