We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed9713 commit 907898fCopy full SHA for 907898f
atd/src/annot.ml
@@ -218,9 +218,9 @@ let validate schema root =
218
let filter_by_tags ~tags full_module =
219
let aux (annot : t) =
220
annot |> List.filter (fun (section, _) -> (
221
- match tags, fields annot ~section ~field:"tag" with
222
- | _, [] -> true
223
- | tags, fields ->
+ match fields annot ~section ~field:"tag" with
+ | [] -> true
+ | fields ->
224
fields
225
|> List.filter_map snd
226
|> List.exists (fun value -> List.mem value tags)
0 commit comments