Skip to content

Commit

Permalink
Merge pull request xapi-project#5926 from contificate/is_required_param
Browse files Browse the repository at this point in the history
Output if parameter is required in JSON backend
  • Loading branch information
contificate authored Aug 12, 2024
2 parents cc66500 + cc90d32 commit 2f7d39c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ocaml/idl/json_backend/gen_json.ml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ end = struct
("type", `String t)
; ("name", `String p.param_name)
; ("doc", `String p.param_doc)
; ("required", `Bool (Option.is_none p.param_default))
]
:: params
, enums @ e
Expand Down

0 comments on commit 2f7d39c

Please sign in to comment.