Skip to content

TIE 0.4.0

Choose a tag to compare

@themarioga themarioga released this 09 Nov 13:57
· 17 commits to main since this release

Records can now be found by position when their name is not known in advance, and layouts fed only by provided inputs no longer need a file name pattern. With the defaults, 0.4.0 behaves exactly like 0.3.0.

Added

  • XML imports without recordElement: every child of the root element is a record, whatever its name; sibling records may have different names. Records are read as before (attributes, dotted paths, nested layouts by nestedKey). Text, comments and processing instructions directly under the root are ignored. Exports still require recordElement.
  • json.firstArray: with no recordProperty, the records are the root array or, for a root object, its first top-level property whose value is an array. Earlier properties are skipped in streaming without being read; a root object without any array fails with STRUCTURAL. It cannot be combined with recordProperty on import and is ignored on export. JsonOptions gets a builder.
  • fileNamePattern is optional on a root import layout when every input channel is a ProvidedStreamChannel. A declared pattern is still validated.
inputChannels: [PROVIDED_STREAM]
layouts:
  - name: employees              # no fileNamePattern: only provided inputs
    allowedFormats: [XML, JSON]
    formatOptions:
      xml: {}                    # no recordElement: every child of the root is a record
      json: { firstArray: true }

Changed

  • JsonOptions has a new firstArray record component, so its canonical constructor changed; use JsonOptions.builder(). JsonOptions.DEFAULTS keeps the same values.
  • A blank (but not null) xml.recordElement on import is now reported as "must not be blank" instead of "is required".

Artifacts

Artifact
io.github.tie-integration-engine:tie-core:0.4.0 The library
io.github.tie-integration-engine:tie-spring-boot-starter:0.4.0 Optional Spring Boot 4 auto-configuration
<dependency>
    <groupId>io.github.tie-integration-engine</groupId>
    <artifactId>tie-core</artifactId>
    <version>0.4.0</version>
</dependency>

The jars, with their sources and javadoc, are attached below. Requires Java 25.

Documentation