Skip to content

Commit

Permalink
fix: endpoint json unmarshaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Oct 9, 2024
1 parent ba88f6c commit 5b4e6a1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ func (e *EndpointProviderDeclaration) UnmarshalJSON(data []byte) error {

*e = EndpointProviderDeclaration(temp.alias)

if len(temp.Endpoints) == 0 {
return nil
}

var raw_endpoints []json.RawMessage
if err := json.Unmarshal(temp.Endpoints, &raw_endpoints); err != nil {
return err
Expand Down

0 comments on commit 5b4e6a1

Please sign in to comment.