Move swagger-schema into a separate library