Return-Path: X-Original-To: apmail-streams-dev-archive@minotaur.apache.org Delivered-To: apmail-streams-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B92610D0F for ; Thu, 13 Feb 2014 16:41:45 +0000 (UTC) Received: (qmail 23428 invoked by uid 500); 13 Feb 2014 16:41:44 -0000 Delivered-To: apmail-streams-dev-archive@streams.apache.org Received: (qmail 23378 invoked by uid 500); 13 Feb 2014 16:41:44 -0000 Mailing-List: contact dev-help@streams.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@streams.incubator.apache.org Delivered-To: mailing list dev@streams.incubator.apache.org Received: (qmail 23369 invoked by uid 99); 13 Feb 2014 16:41:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 16:41:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sieverssj@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qa0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 16:41:40 +0000 Received: by mail-qa0-f52.google.com with SMTP id j15so16259891qaq.25 for ; Thu, 13 Feb 2014 08:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=GBgSlwlaU+ox515C/ca68fkHx3XwfTwGnctzFGRjDxc=; b=ne6+E0W783/qm76uKlmC5fMoQ6Fs8paY4dMWKWcwoJstHixoB3QbOUuC7aXZYjpkGs RHsLJ/g61k6z4WPeV+KpJGaHBHTQIV+U9w5pToev/zwlazYYBs88VTLrXnh1VJPZHTRn qkdH/3M5iV0Kiz/rQd2ixHPrcBtlzUHdao+E03HTMDssi/OBcXcRJmbyalhgmFVDbjVm haefKbKcGfzptAr47ONFxm/MOgtvkvwfB70wD7zTWJLkqdI6lSdNClCOiV+Jl37n/0gw 5iW3zteMfRbmGZZF8vmUde/zPi/3HvFMydmqoWr9oHU+4UspZWRsqtrvaehY++jNBZSK oXoA== MIME-Version: 1.0 X-Received: by 10.140.109.228 with SMTP id l91mr3999351qgf.72.1392309679496; Thu, 13 Feb 2014 08:41:19 -0800 (PST) Sender: sieverssj@gmail.com Received: by 10.96.160.132 with HTTP; Thu, 13 Feb 2014 08:41:19 -0800 (PST) In-Reply-To: References: Date: Thu, 13 Feb 2014 11:41:19 -0500 X-Google-Sender-Auth: OaBV2MmHoNfl61c0lzoQYp5y2W4 Message-ID: Subject: Re: Activity Object question From: Stanton Sievers To: dev@streams.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1138fa84dd217c04f24c5b8e X-Virus-Checked: Checked by ClamAV on apache.org --001a1138fa84dd217c04f24c5b8e Content-Type: text/plain; charset=ISO-8859-1 I think creating a Link pojo class would make a lot of sense. We probably want to match the Activity Streams spec for links [1] though, or at least use a superset of both the Activity Streams spec for links and the json-schema links definition if we can. Best regards, -Stanton [1] http://activitystrea.ms/specs/json/schema/activity-schema.html#links On Thu, Feb 13, 2014 at 11:18 AM, Ryan Ebanks [W2O Digital] < rebanks@w2ogroup.com> wrote: > Why is that when I have an Activity object, and do : > > Activity object = mapper.readValue(value, Activity.class); > object.getLinks() > > getLinks() returns a List instead of a list of Link Objects > defined by http://json-schema.org/links#properties, as the Activity.json > schema references. Shouldn't the object mapper map those to Link objects, > and the jsonschema2pojo object create the pojo Link class? Is this working > as intended or is this a bug that needs to be fixed? > > > Ryan Ebanks > Senior Manager, Data Sciences > W2O Digital > 3000 E Cesar Chavez St., Suite 300 Austin, Texas 78702 > direct 512.402.6364 | cell 512.773.1098 > email rebanks@w2odigital.com > twitter ebanksre | linkedin RyanEbanks > > > > --001a1138fa84dd217c04f24c5b8e--