Skip to content

Commit

Permalink
Add missing types (a.k.a. json) as comments
Browse files Browse the repository at this point in the history
  • Loading branch information
smondet committed Nov 27, 2024
1 parent 51a30ed commit 42755ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generator.ml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ let rec process_schema_type state ~ancestors (schema : schema) =
| Some Object -> process_object_type state ~ancestors schema
| None ->
(* fallback to untyped if schema type is not defined *)
maybe_nullable "json"
Printf.ksprintf maybe_nullable "json (* %s *)" (String.concat "/" (List.rev ancestors))

and process_array_type state ~ancestors schema =
match schema.items with
Expand Down

0 comments on commit 42755ed

Please sign in to comment.