Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Jul 4, 2024
1 parent feaec4a commit 763bff0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/rego/tmf/leftOperand.rego
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resource_type(http_part) := resource if {
reversed := array.reverse(path_elements)
# remove the (potential) id element from the path array
non_id_parts := [path_element | some path_element in reversed; not contains(path_element, "ngsi-ld")]
print(non_id_parts[0])
# after removal of the id, the resource is the first one to be retrieved
resource = non_id_parts[0]; trace(resource)
resource = non_id_parts[0]
}

0 comments on commit 763bff0

Please sign in to comment.