Skip to content

Remove error thrown if list of converted files is empty#5633

Merged
danlapid merged 1 commit intocloudflare:mainfrom
Naapperas:nunopereira/relax-errors-in-to-markdown-binding
Dec 5, 2025
Merged

Remove error thrown if list of converted files is empty#5633
danlapid merged 1 commit intocloudflare:mainfrom
Naapperas:nunopereira/relax-errors-in-to-markdown-binding

Conversation

@Naapperas
Copy link
Copy Markdown
Member

Before this PR, if the list of converted markdown files that were returned by the call to the internal service was empty we would throw an error.

This makes sense if we only want to convert a single file (the service only accepts a list so we always have to convert a single file to a list of files) because it would mean we got no conversion to return to the user.

For the case where we take a list as input, this doesn't make much sense: it is valid for a user to give us an empty list to begin with.

With this PR, the previous situation becomes valid.

@Naapperas Naapperas requested a review from a team as a code owner December 3, 2025 15:55
@Naapperas Naapperas force-pushed the nunopereira/relax-errors-in-to-markdown-binding branch 2 times, most recently from df5ea96 to 9c8588d Compare December 3, 2025 15:57
@Naapperas Naapperas force-pushed the nunopereira/relax-errors-in-to-markdown-binding branch from 9c8588d to 68db536 Compare December 3, 2025 16:30
@Naapperas Naapperas force-pushed the nunopereira/relax-errors-in-to-markdown-binding branch 3 times, most recently from 1d27e41 to 439b7e3 Compare December 3, 2025 18:54
@Naapperas Naapperas force-pushed the nunopereira/relax-errors-in-to-markdown-binding branch 5 times, most recently from 4886e51 to d92ab7a Compare December 5, 2025 12:18
@Naapperas Naapperas force-pushed the nunopereira/relax-errors-in-to-markdown-binding branch from d92ab7a to 379e761 Compare December 5, 2025 12:44
@danlapid danlapid merged commit 18139f1 into cloudflare:main Dec 5, 2025
17 of 18 checks passed
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.

5 participants