Open sentry-io[bot] opened 3 months ago
@elias-ba:
case error do
%{expected: "uri"} ->
Changeset.add_error(changeset, field, "expected to be a URI")
%{any_of: formats} ->
In schema.ex, we don't have a case for %..{expected: "hostname"}
, so we could just add a match for that - or change the schema... I'm not sure what the hostname
type is, like how do we validate that? Who added the hostname
type? Should we care/validate that?
USE THE
2018
BRANCH. The failing test has already been built.My guess is that the customer here has a credential which, for one reason or another, no longer matches the schema required by that adaptor.
Right now, we should not be throwing a 500 on the credentials list view if one of the user's credentials doesn't match the JSON schema defined in the adaptor package.
Later, we need to handle:
1588
CaseClauseError: no case clause matching: %ExJsonSchema.Validator.Error.Format{expected: "hostname"}
Sentry Issue: LIGHTNING-B0