Mandatory swagger (fixes #1097)

Fixes #1097.