-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash: opds publicationInfoA11y Component crash with strictNullChecks issue #2537
Comments
…ncomming accessibility value (Fixes #2537)
the OPDS link above does not trigger the bug because the accessModeSufficient was removed. |
|
this link points to an invalid OPDS feed (not conforming to the JSON Schema) where accessModeSufficient is not an array. |
accessModeSufficient is an array of string arrays ... but the string arrays containing a single item can be reduced to a string value. |
It was fixed with this commit : 7eae5aa I'm closing the issue, feel free to reopen it @gautierchomel |
can we please test with a real world example like this: accessModeSufficient: [ ["textual", "visual"], "textual" ] and accessModeSufficient: [ ["textual", "visual"], ["textual"] ] http://kb.daisy.org/publishing/docs/metadata/schema.org/accessModeSufficient.html thank you :) (ps: instead of hand-crafting an OPDS feed for each case, maybe just force the values in Thorium post-parsing, pre-JSX?) |
check on type : Seems good, the issue throws by Gautier seems to be a misleading between the type |
1d48f88#diff-c5ec05104b3b03043bf6ce4a94909efdf62885f1d6799649fe183076a3ee6cd2R59-R60
https://rawcdn.githack.com/edrlab/thorium-reader-epub-tests/main/EPUB_Feeds_for_testing_purpose/opds-rare-epub-suit.json
The text was updated successfully, but these errors were encountered: