What does the Church say about the Protoevangelium of James and its claims about Mary?

I have a question about the Protoevangelium of James versus John 6:42. It seems both are based on public claims about Mary status; the PoJ assumes there is a publicly known office of vestal virgins in cahoots with the Temple which Mary has taken on, and that Joseph is merely her guardian advanced in years, where John 6:42 assumes Joseph is KNOWN to be the father of Jesus (at least publicly), regardless of who his mother would be. But clearly Jesus would be younger than any older siblings (as per the Eastern Church), or cousins (Talmudic Aramaic he would be “bar akha” for fraternal nephew, “bar akhata” for sororal nephew) - they call him the SON of Joseph, ben/bar Joseph - militating for Mary being his mother, as no other women are even suggested as present by any NT verses. Other verses seem clear, given Jesus is redeemed in the Temple, and obligation on a father, etc.
Mary would therefore NOT publicly known to be a vestal virgin (which is kind of obvious when you’re pregnant), but simply the wife of Joseph.
Am I missing something? - since this would seem to be question against the PoJ based on Scripture, and therefore in the forums, but I didn’t find it.

The following link should answer your question about the Protoevangelium of James. If you have any further questions, please contact Catholic Answers directly.

Recommended Reading:

How do we know that the Protoevangelium of James is credible?

DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit www.catholic.com.