Skip to content

Releases: LiveUI/XMLCoding

Support compilation under Swift 5.1, remove warnings under 5.x

27 Sep 19:07
f0fbfe1
Compare
Choose a tag to compare
  • Removed unnecessary duplicate XMLHeader.init
  • Fix Swift 5 Build Warnings
  • Support compilation under Swift 5.1.

Added strategies for decoding and encoding maps.

25 Oct 16:46
8c760e9
Compare
Choose a tag to compare

Add the ability to collapse and expand an XML structure that has explicit Key and Value tags-

<Result>
  <Tag>
    <Key>QueueType</Key>
    <Value>Production</Value>
  </Tag>
  <Tag>
    <Key>Owner</Key>
    <Value>Developer123</Value>
  </Tag>
</Result>

Decoded into or encoding from a structure like-

struct Result {
    let tags: [String: String]
}

Can also be combined with the collapsing/expanding ListDecodingStrategy where there is an outer element for the list of entries.

Empty element refinement and Linux encoding fix

20 Aug 23:23
65d576b
Compare
Choose a tag to compare

Added some refinement around how empty XML elements are handled, specifically a empty string ("") and empty Data will be seen as empty elements. These changes will cause the decoder to

  • effectively ignore empty tags for optional parameters
  • interpret an empty tag for a required String parameter as an empty string
  • interpret an empty tag for a required Data parameter as an empty Data instance
  • fail on any other empty tags for required elements

Moved the encoder to native Swift Types from NS* to be more typesafe and to avoid differences between platforms. This fixes encoding on Linux.

Fix to handle singleton lists with ListDecodingStrategy.

11 Aug 11:59
4a53225
Compare
Choose a tag to compare

Fix to handle singleton lists with ListDecodingStrategy.collapseListUsingItemTag.

Add ListEncodingStrategy and ListDecodingStrategy

10 Aug 16:24
f5d46f4
Compare
Choose a tag to compare

Provides an option to more compactly represent a list in a type hierarchy by collapsing a list with all items under a single tag when decoding and expanding all items to be under that tag when encoding. No change to default behavior.

Empty XML elements fix

02 Aug 14:23
a4475f1
Compare
Choose a tag to compare

Add a fix to handle empty XML elements that can be decoded into types with no required properties.

Compiles on Linux

24 May 16:36
Compare
Choose a tag to compare
0.1.1

coding works on linux now

First release

16 May 11:24
Compare
Choose a tag to compare

First release with little mods after forking