+1
.ocamlformat
+1
.ocamlformat
···
···
+1
.tangled/workflows/build.yml
+1
.tangled/workflows/build.yml
+11
CHANGES.md
+11
CHANGES.md
+11
-1
README.md
+11
-1
README.md
···
···
+3
-3
dune-project
+3
-3
dune-project
+5
example/dune
+5
example/dune
+33
example/feed_echo.ml
+33
example/feed_echo.ml
···
···
+95
-105
example/feed_example.ml
+95
-105
example/feed_example.ml
············
············
+88
-88
example/feed_parser.ml
+88
-88
example/feed_parser.ml
···············
···············
+28
-298
example/feed_validator.ml
+28
-298
example/feed_validator.ml
···
···
+4
-3
jsonfeed.opam
+4
-3
jsonfeed.opam
······
+1
jsonfeed.opam.template
+1
jsonfeed.opam.template
···
···
+24
-40
lib/attachment.ml
+24
-40
lib/attachment.ml
······-let create ~url ~mime_type ?title ?size_in_bytes ?duration_in_seconds ?(unknown = Unknown.empty) () =······-enc = fun (type acc) (f : Jsont.Meta.t -> string -> Jsont.json -> acc -> acc) unknown (acc : acc) ->
············
+27
-32
lib/attachment.mli
+27
-32
lib/attachment.mli
············
············
+5
-12
lib/cito.ml
+5
-12
lib/cito.ml
·········
·········
+82
-79
lib/cito.mli
+82
-79
lib/cito.mli
···
···
+8
-34
lib/hub.ml
+8
-34
lib/hub.ml
···-enc = fun (type acc) (f : Jsont.Meta.t -> string -> Jsont.json -> acc -> acc) unknown (acc : acc) ->
···
+7
-17
lib/hub.mli
+7
-17
lib/hub.mli
············
············
+67
-85
lib/item.ml
+67
-85
lib/item.ml
···············-enc = fun (type acc) (f : Jsont.Meta.t -> string -> Jsont.json -> acc -> acc) unknown (acc : acc) ->
···············
+14
-23
lib/item.mli
+14
-23
lib/item.mli
············
············
+31
-55
lib/jsonfeed.ml
+31
-55
lib/jsonfeed.ml
············-enc = fun (type acc) (f : Jsont.Meta.t -> string -> Jsont.json -> acc -> acc) unknown (acc : acc) ->············
························
+157
-28
lib/jsonfeed.mli
+157
-28
lib/jsonfeed.mli
···············
···············
+5
-25
lib/reference.ml
+5
-25
lib/reference.ml
······-enc = fun (type acc) (f : Jsont.Meta.t -> string -> Jsont.json -> acc -> acc) unknown (acc : acc) ->
······
+25
-29
lib/reference.mli
+25
-29
lib/reference.mli
···-@see <https://github.com/egonw/JSONFeed-extensions/blob/main/references.md> References Extension Specification···············
··················
+8
-10
lib/rfc3339.ml
+8
-10
lib/rfc3339.ml
···
···
+4
-5
lib/rfc3339.mli
+4
-5
lib/rfc3339.mli
······
······
+3
-2
test/dune
+3
-2
test/dune
+386
-159
test/test_jsonfeed.ml
+386
-159
test/test_jsonfeed.ml
···-Alcotest.(check (option string)) "avatar" (Some "https://example.com/avatar.png") (Author.avatar author);···-Alcotest.(check (option int64)) "size_in_bytes" (Some 15_728_640L) (Attachment.size_in_bytes att);-Alcotest.(check (option int)) "duration_in_seconds" (Some 1800) (Attachment.duration_in_seconds att)···-Alcotest.(check (option string)) "content_html" (Some "<p>Hello</p>") (Item.content_html item);-Alcotest.(check (option string)) "content_html" (Some "<p>Hello</p>") (Item.content_html item);·········-Alcotest.(check (option string)) "content_html" (Some "<p>Hello</p>") (Item.content_html item)···
·····················
+24
-29
test/test_location_errors.ml
+24
-29
test/test_location_errors.ml
·········-Printf.printf {|{"status":"error","message":"%s","location":{"file":"%s","line":%d,"column":%d,"byte_start":%d,"byte_end":%d},"context":"%s"}|}···
·········+{|{"status":"error","message":"%s","location":{"file":"%s","line":%d,"column":%d,"byte_start":%d,"byte_end":%d},"context":"%s"}|}···
+10
-12
test/test_serialization.ml
+10
-12
test/test_serialization.ml
···
···