Releases: trayio/connector-utils
Update removeEmptyObjects to preserve falsy boolean and number values
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
This release (v0.3.6) introduces the following feature:
-
Added
generateAllTypes
function that generates all available JSON schema types.
Please check the README and Generate All Types Implementation for further details. -
Updated dependencies
Input Schema Generator - Description Ending Punctuation Validation
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
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)
-
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
- deleteEmptyObjects method no longer remove string values from arrays.
v0.3.0 add formatArrayToDelimitedList method
- New method added - formatArrayToDelimitedList
- Updates to README documentation.
- Added example to formatArrayToDelimitedList in documentation.
Input Schema Generator
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
- 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
- New method added - validatePaginationRange
- Updates to README documentation.
- Added example to validatePagionationRange in documentation.