Return-Path: X-Original-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-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 9B9E1723F for ; Fri, 11 Nov 2011 16:57:05 +0000 (UTC) Received: (qmail 86627 invoked by uid 500); 11 Nov 2011 16:57:05 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 86612 invoked by uid 500); 11 Nov 2011 16:57:05 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 86603 invoked by uid 99); 11 Nov 2011 16:57:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2011 16:57:05 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2011 16:56:59 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pABGub8k023728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 Nov 2011 11:56:37 -0500 Received: from dhcp-29-121.brq.redhat.com (dhcp-29-121.brq.redhat.com [10.34.29.121]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pABGuZ81002096; Fri, 11 Nov 2011 11:56:36 -0500 Message-ID: <4EBD53FD.3070609@redhat.com> Date: Fri, 11 Nov 2011 17:57:33 +0100 From: Michal Fojtik User-Agent: Postbox 3.0.0 (Macintosh/20111031) MIME-Version: 1.0 To: deltacloud-dev@incubator.apache.org Subject: Re: Model layer for CIMI References: <1320873504-27543-1-git-send-email-lutter@redhat.com> In-Reply-To: <1320873504-27543-1-git-send-email-lutter@redhat.com> X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 lutter@redhat.com wrote: ACK. We should integrate this into our code base so we can start improving this and adding more collections. All tests run smoothly, applied without whitespace errors and the code looks beautiful :-) -- Michal > This is a model layer for CIMI that does both serialization and > deserialization of JSON and XML based on a simple metadata > description of the CIMI model expressed in a custom DSL. In > particular, we won't need HAML templates to format objects, and I am > reasonably sure that the metadata makes sure we serialize in a > predictable manner to XML. > > Patch 1/2 contains the basics, including the DSL, 2/2 shows how this > can be used for a specific class. > > There's a few convenience additions that should be made to the DSL, > in particular making it possible to reuse nested structures that are > used in several places, something like > > array :operations, :class => Operation > > but we can add that later. > > One small fly in the ointment is that the use of XmlSimple causes > child elements in XML to be rendered in an unpredictable order; the > CIMI standard doesn't say anything about reordering elements, though > with a strict interpretation of XML, the rendered XML does not > conform to the XML schema implicitly defined in the CIMI standard. > > David - -- - -- Michal Fojtik, mfojtik@redhat.com Deltacloud API: http://deltacloud.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOvVP9AAoJEEnFpmY+LvFRgnIH/1yKjQkRH0wndFHZzNIuudmG rEy1V5kmtSApieuWawVSnyqGGRbLZxdk/tLY/Lkks/3wrOsQs9iosV7OL5LNYrEw VrqVjCLMmd4JxKk6AoEiVTUjXMlmR1x11prsAHRIf42usTtatZvj6cfMeUQTW8/c G+RjYTxqXpXt0R19pUqGzJqNwQqDhPtnazELo4TUupbxYw3d4wig/RMBKnoC9nbV JO37IbsrXCK1dSoPtruPiOYIzSF8fHoFY1rtagJxxils6q3iZq3H+Sx+7aOTMmky CevQjZL4Rca8YiU9FOyvbVyYBK3uqgsQbk7/Rhpn4d+5gdnp5uZoTgL157LSG9k= =yPVU -----END PGP SIGNATURE-----