Skip to content

Commit

Permalink
Merge pull request #85 from nasa/jk/CUMULUS-2751-v2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jkovarik authored Jan 10, 2022
2 parents 2091a63 + 71d66fd commit 48703cf
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


## [v2.0.2] 2022-01-10

## Fixed

- **CUMULUS-2751**

- Resolve inter-compatibility bug/regression with cumulus-message-adapter-js, as the current releases strictly check the message return schema
for the existence of a config object. This fix restores the original behavior.

## [v2.0.1] 2022-01-07

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions examples/messages/basic_no_config.output.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"foo": "bar"
},
"payload": {
"input": { "anykey": "anyvalue" }
},
"input": { "anykey": "anyvalue" },
"config": {}
},
"exception": "None"
}
3 changes: 3 additions & 0 deletions examples/schemas/examples-messages-no-config.output.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"properties": {
"input": {
"type": "object"
},
"config": {
"type": "object"
}
},
"additionalProperties": false
Expand Down
2 changes: 2 additions & 0 deletions message_adapter/message_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def load_nested_event(self, event):
if final_config:
self.__validate_json(final_config, 'config')
response['config'] = final_config
else:
response['config'] = {}
if 'cumulus_message' in config:
response['messageConfig'] = config['cumulus_message']

Expand Down
2 changes: 1 addition & 1 deletion message_adapter/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = 'v2.0.1'
__version__ = 'v2.0.2'

0 comments on commit 48703cf

Please sign in to comment.