-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from metanivek/abstract_validation
atdgen: update `abstract` type validation to accept all input by default
- Loading branch information
Showing
9 changed files
with
98 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
(* Auto-generated from "test_abstract.atd" *) | ||
[@@@ocaml.warning "-27-32-33-35-39"] | ||
|
||
type int_assoc_list = Testj.int_assoc_list | ||
|
||
type any_items = Test_abstract_t.any_items | ||
|
||
type any = Test_abstract_t.any | ||
|
||
type 'x abs2 = 'x Test.abs2 | ||
|
||
type 'x abs1 = 'x Test_abstract_t.abs1 | ||
|
||
let validate_int_assoc_list = ( | ||
Testj.validate_int_assoc_list | ||
) | ||
let validate__1 = ( | ||
Atdgen_runtime.Ov_run.validate_list ( | ||
(fun _ _ -> None) | ||
) | ||
) | ||
let validate_any_items = ( | ||
validate__1 | ||
) | ||
let validate_any = ( | ||
(fun _ _ -> None) | ||
) | ||
let validate_abs2 validate__x = ( | ||
Test.validate_abs2 validate__x | ||
) | ||
let validate_abs1 validate__x = ( | ||
(fun _ _ -> None) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
(* Auto-generated from "test_abstract.atd" *) | ||
[@@@ocaml.warning "-27-32-33-35-39"] | ||
|
||
type int_assoc_list = Testj.int_assoc_list | ||
|
||
type any_items = Test_abstract_t.any_items | ||
|
||
type any = Test_abstract_t.any | ||
|
||
type 'x abs2 = 'x Test.abs2 | ||
|
||
type 'x abs1 = 'x Test_abstract_t.abs1 | ||
|
||
val validate_int_assoc_list : | ||
Atdgen_runtime.Util.Validation.path -> int_assoc_list -> Atdgen_runtime.Util.Validation.error option | ||
(** Validate a value of type {!type:int_assoc_list}. *) | ||
|
||
val validate_any_items : | ||
Atdgen_runtime.Util.Validation.path -> any_items -> Atdgen_runtime.Util.Validation.error option | ||
(** Validate a value of type {!type:any_items}. *) | ||
|
||
val validate_any : | ||
Atdgen_runtime.Util.Validation.path -> any -> Atdgen_runtime.Util.Validation.error option | ||
(** Validate a value of type {!type:any}. *) | ||
|
||
val validate_abs2 : | ||
(Atdgen_runtime.Util.Validation.path -> 'x -> Atdgen_runtime.Util.Validation.error option) -> | ||
Atdgen_runtime.Util.Validation.path -> 'x abs2 -> Atdgen_runtime.Util.Validation.error option | ||
(** Validate a value of type {!type:abs2}. *) | ||
|
||
val validate_abs1 : | ||
(Atdgen_runtime.Util.Validation.path -> 'x -> Atdgen_runtime.Util.Validation.error option) -> | ||
Atdgen_runtime.Util.Validation.path -> 'x abs1 -> Atdgen_runtime.Util.Validation.error option | ||
(** Validate a value of type {!type:abs1}. *) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters