code: function parse(any, opts) {
    var schemaOrProtocol = specs.read(any);
    return schemaOrProtocol.protocol ?
      services.Service.forProtocol(schemaOrProtocol, opts) :
      types.Type.forSchema(schemaOrProtocol, opts);
  }
docs: Parse a schema and return the corresponding type or service.