Skip to content

Commit

Permalink
Fix unknown messageName schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bart0003 committed Dec 14, 2023
1 parent cced28e commit d99fbe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smart_kit/message/validators/json_schema_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def _log(self, exception: VALIDATOR_EXCEPTION, message: SmartAppMessage, level="

def _validate(self, message: SmartAppFromMessage):
validator = self._schemas.get(message.message_name)
validator(message.payload)
if validator:
validator(message.payload)


class FastJSONSchemaValidator(JSONSchemaValidator):
Expand Down

0 comments on commit d99fbe9

Please sign in to comment.