packages/lobsang-formatter-schema/lib/schema.js
function schema (topic) {
  if (topic === constants.LOBSANG_CONTENT_TOPIC) {
    return wrapper.fetch(constants.LOBSANG_CONTENT_SCHEMA_URL)
  }
  return Promise.reject(new Error('Topic is not supported'))
}
function schema (topic) {
  if (topic === constants.LOBSANG_CONTENT_TOPIC) {
    return wrapper.fetch(constants.LOBSANG_CONTENT_SCHEMA_URL)
  }
  return Promise.reject(new Error('Topic is not supported'))
}
@module @lobsangnet/lobsang-formatter-matrix/schema
 
Library to get a schema for the given topic.

@private
@param {string} topic - The topic for which a schema should be fetched.
@returns {Promise<object|Error>}
Promise which resolves in a schema object.
Or an Error if the topic is not supported or fetch failed.
@todo Replace object after https://github.com/Kegsay/flow-jsdoc/issues/22