We spray foamed our detached shop and the inspector told us to either cover it up with and approved fire rated barrier (drywall or equiv.) or to spray the foam with an intumescent paint. The walls were covered with T1-11, but we opted to spray the underside of the roof foam to keep the space as open as possible on the second floor.