Skip to content

Commit

Permalink
fix(InputArgumentValidator): remove CheckLinkedData in CheckAndValida…
Browse files Browse the repository at this point in the history
…te()
  • Loading branch information
MingboPeng committed May 11, 2023
1 parent 8571c90 commit 0a2cfb5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/PollinationSDK/Wrapper/InputArgumentValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ public static object CheckAndValidate(PollinationSDK.Interface.Io.Inputs.IDag da
public object CheckAndValidate(object value, HandlerChecker handlerChecker)
{
if (value == null) return null;
// check linked input
var linkValue = CheckLinkedData(handlerChecker);

// validate Alias input
if (!this.ValidateWithAliasSpec(linkValue)) return null;
if (!this.ValidateWithAliasSpec(value)) return null;
// convert with handlers
var obj = this.CheckInputWithHandler(linkValue, handlerChecker);
var obj = this.CheckInputWithHandler(value, handlerChecker);
// validate input specs
if (!this.ValidateWithSpec(obj)) return null;
return obj;
Expand Down

0 comments on commit 0a2cfb5

Please sign in to comment.