Native OCaml Rego/OPA policy engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

loc,json,csv,sexp,toml,xml,opam,rego,sbom: rename Meta.textloc to Meta.loc

Follow up to the loc/json reorg: the [textloc] field of [Meta] is
renamed to [loc] across every text-codec consumer. Pure mechanical
rename, no behaviour change.

+1 -1
+1 -1
lib/rego.ml
··· 43 43 | Type_error s -> Fmt.pf ppf "type error: %s" s 44 44 45 45 let data_error_of_json_error (e : Json.Error.t) = 46 - let tl = Json.Meta.textloc e.meta in 46 + let tl = Json.Meta.loc e.meta in 47 47 let loc = if Loc.is_none tl then None else Some (Fmt.str "%a" Loc.pp tl) in 48 48 Data_error { reason = Json.Error.to_string e; loc } 49 49