#7 only 1 recipe being displayed

Closed
opened 9 months ago by jk_na · 4 comments
jk_na commented 9 months ago

Hello,

I currently have 7 recipes in nextcloud cookbook which all render via the cookbook app in nextcloud, but the app on my phone only seems to recognise 1 of them.

The nextcloud directory is synchronised and all of the recipes are there but for some reason only 1 is listed.

I've attached the working and one of the non-working recipes.

Displaying fine: Vegan Mushroom Pasta.json
Not showing: Green Lentil Ragu.json

Hello, I currently have 7 recipes in nextcloud cookbook which all render via the cookbook app in nextcloud, but the app on my phone only seems to recognise 1 of them. The nextcloud directory is synchronised and all of the recipes are there but for some reason only 1 is listed. I've attached the working and one of the non-working recipes. Displaying fine: Vegan Mushroom Pasta.json Not showing: Green Lentil Ragu.json
MicMun commented 9 months ago
Owner

Seems to be a problem with parsing the json. In the not showing file is no "datePublished" field.
I will have a look later on and fix this.

Seems to be a problem with parsing the json. In the not showing file is no "datePublished" field. I will have a look later on and fix this.
MicMun added the
bug
label 9 months ago
MicMun self-assigned this 9 months ago
jk_na commented 9 months ago
Poster

I may have removed that field whilst trouble-shooting, so attaching another non-working json which I haven't tampered with!

I may have removed that field whilst trouble-shooting, so attaching another non-working json which I haven't tampered with!
MicMun commented 9 months ago
Owner

Okay, I found the problem: the field "recipeCuisine" is an array and I declared it as a string.
I misunderstood the definition of recipe scheme (https://schema.org/Recipe), a text is a string.
But a lot of fields can have array of strings, so I fix my JSON parser.

Okay, I found the problem: the field "recipeCuisine" is an array and I declared it as a string. I misunderstood the definition of recipe scheme (https://schema.org/Recipe), a text is a string. But a lot of fields can have array of strings, so I fix my JSON parser.
MicMun added this to the 1.1.0 milestone 9 months ago
jk_na commented 9 months ago
Poster

Great, thank you!

Great, thank you!
MicMun closed this issue 9 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.