OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xliff-omos message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [xliff-omos] 0.9.3 Feedback


Hi Phil,

This looks to me like it might be in your serialization code.  That "kind": "ec" is a little suspicious.

Both the jliff-example3-0.9.3.json file and your excerpt above are valid under the 0.9.3 schema, they're just saying different things.

On Sat, Feb 25, 2017 at 2:46 PM, Phil Ritchie <phil.ritchie@vistatec.com> wrote:

Robert

 

With my prototype implementation of source and target accepting an array of elements (or various types which implement an element interface)

 

“source”: { “$ref”: “#/definitions/elements” }

 

When trying to mimic jliff-example3-0.9.3.json

 

I get

 

{

  "id": "f1",

  "version": "1.0",

  "skeleton": {

    "ref": "Graphic Example.psd.skl"

  },

  "unit": [

    {

      "id": "1",

      "subunit": [

        {

          "source": [

            {

              "kind": "ec",

              "text": "Quetzal"

            }

          ],

          "target": [

            {

              "kind": "ec",

              "text": "Quetzal"

            }

          ]

        }

      ]

    }

  ]

}

 

That is, not “source”: [ “Quetzal” ]

 

I’m pretty new to serializing and deserializing to json so could be my code.


Phil Ritchie
Chief Technology Officer | Vistatec
Vistatec House, 700 South Circular Road,
Kilmainham, Dublin 8, Ireland.
Tel: +353 1 416 8000 | Direct: +353 1 416 8024
Email: phil.ritchie@vistatec.com
www.vistatec.com | ISO 9001 | ISO 13485 | EN 15038
Vistatec
Think Global
FacebookLinkedInTwitterGoogle Plus






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]