Skip to content

Commit

Permalink
fix(go-sdk): miss path where we validate ulid
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantam committed Jul 6, 2023
1 parent 102d7b6 commit c37485a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/clients/go/template/client/client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (client *{{appShortName}}Client) getAuthorizationModelId(authorizationModel
modelId = authorizationModelId
}

if modelId != nil && !internalutils.IsWellFormedUlidString(*modelId) {
if modelId != nil && *modelId != "" && !internalutils.IsWellFormedUlidString(*modelId) {
return nil, FgaInvalidError{param: "AuthorizationModelId", description: "ULID"}
}
return modelId, nil
Expand Down

0 comments on commit c37485a

Please sign in to comment.