Stripe vendor extensions.
Use defaults unless overridden.
include module type of NoExt
val primitive_never_optional :
format:string option ->
enum:Json_repr.any list option ->
[ `PrimitiveAny
| `PrimitiveBoolean
| `PrimitiveInteger of Json_schema.numeric_specs
| `PrimitiveNull
| `PrimitiveNumber of Json_schema.numeric_specs
| `PrimitiveString of Json_schema.string_specs ] ->
boolprimitive_never_optional standard vendor ~format ~enum kind is always false unless overridden (by shadowing).
include DkCoder_Std.SCRIPT
Stripe supports style = DeepObject when the JSON value is an array, which violates the OpenAPI 3.0.0 specification.
Adjustments for enumeration cases (variants).
* timezone in path "/v1/reporting/report_runs/post" has indistinguishable "Etc/GMT+0" and "Etc/GMT-0" after non-alphanumeric characters are replaced by underscores. That indistinguishability repeats until "Etc/GMT-9". * timezone also has indistinguishable "GMT+0" and "GMT-0". * enabled_events in path "/v1/webhook_endpoints/post" has "*".
Data Types
* unix-time: Measured in seconds since the Unix epoch.
val maybe_pp_type_integer :
format:string option ->
'a ->
(Restapis_o.Open__.Format.formatter -> unit -> unit) optionval maybe_pp_encoder_integer :
format:string option ->
'a ->
(Restapis_o.Open__.Format.formatter -> unit -> unit) optioninclude DkCoder_Std.SCRIPT
__init context is the entry point for running a script module. The DkCoder compiler will inject this function at the top and bottom of the script module. The top __init does nothing, while the bottom __init calls the prior __init.
That means:
- calling the
__initfunction guarantees that the script module is initialized; that is, all of the script module's side-effects (ex.let () = Format.printf "Hello world@.") are executed before the__initreturns to the caller. - you can override the
__initfunction by simply defining the__initidempotently. That will shadow the top__initand when the bottom__initis executed your__initwill be called instead of the do-nothing top__init.
Future versions of DkCoder will call __init in dependency order for all `You script modules. Your __init function may be called several times.
__repl context is the entry point for debugging a script module in a REPL. The DkCoder compiler will inject this function at the top and bottom of the script module. The top __repl does nothing, while the bottom __repl calls the prior __repl.
That means:
- you can override the
__replfunction by simply defining the__replidempotently. That will shadow the top__repland when the bottom__replis executed your__replwill be called instead of the do-nothing top__repl.
The run-time module information for the script module.

