Skip to content

Conversation

dyro
Copy link
Contributor

@dyro dyro commented Jul 28, 2025

Adds an example of including an ingredient

@dyro dyro requested review from ok-nick and gpeacock July 28, 2025 17:57
Comment on lines +113 to +117
auto ingredient_json_obj = nlohmann::json::parse(ingredient_json);
std::string resource_id = ingredient_json_obj["thumbnail"]["identifier"];

builder.add_resource(resource_id, ingredient_path);
builder.add_ingredient(ingredient_json, ingredient_path);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question (cc @gpeacock): how come we don't add thumbnails as a resource implicitly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants