Put a product and a navigation path in the same tag json + ld

I have an earlier ld + json tag on my products page, which worked fine (no errors and 3 warnings in Google's structured data testing tool)

I tried adding a navigation path by moving the content of my product to the main entity of an article page type as suggested here, but the tool no longer shows any warning.

How can I make sure my code is valid?