Skip to content

Releases: trayio/connector-utils

Update removeEmptyObjects to preserve falsy boolean and number values

27 Apr 12:16
64b207c
Compare
Choose a tag to compare

This release (v0.4.0) introduces the following updates:

  • Updates 'removeEmptyObjects', to preserve falsy boolean and number values, while removing empty objects & arrays and undefined & null values.

  • Updates dependencies

All types Generator

29 Oct 14:51
150cf6a
Compare
Choose a tag to compare

This release (v0.3.6) introduces the following feature:

Input Schema Generator - Description Ending Punctuation Validation

26 Oct 10:33
88bbb80
Compare
Choose a tag to compare

This release (v0.3.5) introduces the following features to the input schema generator:

Please check the README and Input Schema Documentation for further details.

Validation for ending punctuation in descriptions

  • Automatically checks that all descriptions end in either a full stop, a question mark or an exclamation mark.

Input Schema Generator - Deep Merge, Alias, Full Stop Description Validation

19 Oct 16:24
6ae182a
Compare
Choose a tag to compare

This release (v0.3.4) introduces the following features to the input schema generator:

Please check the README and Input Schema Documentation for further details.

Deep Merge overrides

  • Deep merging of schema objects at any level
  • Choose the Array merging algorithm to use:
    • concatenate - merge arrays by concatenating values (default)
    • combineByIndex - merge/combine arrays by index value
      • arrays of objects will merge by index (if possible)
      • other types will concatenate (ignoring value duplication overlap)
    • overwriteByIndex - merge/overwrite arrays by index value
      • arrays of objects will merge by index (if possible)
      • other types will overwrite by index value
    • overwrite - overwrite original array with specified array

Alias

  • Allow schema keys to be dynamically renamed
  • This allows you to build a schema from reusable objects and rename the keys to match the individual operations

Validation of full stops in descriptions

  • Automatically checks that all descriptions end in a full stop

0.3.3: [CSP-3702] add generic auth params keys omit method (#42)

10 Jun 14:12
3dd94fa
Compare
Choose a tag to compare
  • The removeAuthKeys function has been added. This function removes top levels '#' keys and additional top level keys from a collection.

  • Removed devDepenecy of connector-test-runner

  • Removed the tests that were using test runner as the DDL tests already exist.

  • Added MIT license.

V0.3.1 deleteEmptyObjects bug fix

08 Jun 16:41
abc46dc
Compare
Choose a tag to compare
  • deleteEmptyObjects method no longer remove string values from arrays.

v0.3.0 add formatArrayToDelimitedList method

08 Jun 15:26
a402013
Compare
Choose a tag to compare
  • New method added - formatArrayToDelimitedList
  • Updates to README documentation.
  • Added example to formatArrayToDelimitedList in documentation.

Input Schema Generator

27 Mar 15:09
10d79dd
Compare
Choose a tag to compare

A standardised way of generating operation input schemas in manual connectors.
Includes validation for missing schema elements.

  • New method added - generateInputSchema
  • Updates to README.md documentation.
  • Added schema-generation.md document to provide guidance on usage.
  • Added example of real-world usage to repo's sut connector.

Add fallback for DDL

12 Mar 13:28
73fdd22
Compare
Choose a tag to compare
  • DDL will now throw connector error
  • DDL will now fallback to the 'value' path
  • Deep Map Keys now works for nested arrays

V0.1.1 Add validatePaginationRange method

21 Feb 10:55
8e24eba
Compare
Choose a tag to compare
  • New method added - validatePaginationRange
  • Updates to README documentation.
  • Added example to validatePagionationRange in documentation.