Well before Sgt. Bowe Bergdahl walked away from his Army post in Afghanistan, he washed out of the Coast Guard during boot camp when he suffered a panic attack.

Two years later, though, he joined the Army, obtaining a waiver from rules that bar the enlistment of those with psychological problems.

The details about his mental health — including the Army's later diagnosis of Bergdahl as suffering from "schizotypal personality disorder" — are contained in newly released documents that offer a glimpse of the legal strategy his lawyers may use in the desertion case against him.

Bergdahl's military trial is set to begin over the summer.

His lawyers would not comment on how his psychiatric history figures in their strategy. But they argued at a hearing in late 2015 that his diagnosis is a mitigating factor.