From 45e760e949183a186129bc7c53010e0d8c8c9548 Mon Sep 17 00:00:00 2001 From: Anton Lavrik Date: Tue, 11 Sep 2018 01:27:06 +0100 Subject: [PATCH] Update documentation --- doc/piqi-ocaml.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/piqi-ocaml.md b/doc/piqi-ocaml.md index 5942ddb..69bcfba 100644 --- a/doc/piqi-ocaml.md +++ b/doc/piqi-ocaml.md @@ -411,14 +411,14 @@ OCaml types to Piqi types. will be set to the default value during deserialization. Also, see [Limitations](#limitations) section below. - **optional** Piqi fields without type (i.e. *flags*) are mapped to `bool` - OCaml fields. The value of the field will be set to `true` if the flag is - present in the record. - **repeated** Piqi fields of type `` are mapped to fields with type ` list`. It is possible to use OCaml `array` instead of `list` by specifying an additional `.ocaml-array` property in the field definition. + It is possible for some fields to generate OCaml definitions but exclude + them during serialization/deserialization. This is achieved by adding + `.internal` flag under `.field [ ... ]`. + - Enums and Variants are mapped directly to OCaml polymorphic variants. For example, these definitions: