From db70464afb6ccdaa7df6d068a625ddab9a95c3b9 Mon Sep 17 00:00:00 2001 From: Don Mendelson Date: Wed, 3 Jan 2018 09:58:59 -0600 Subject: [PATCH] Support for easy constant value setting in fields #64 --- v2-0-RC1/doc/02FieldEncoding.md | 7 +++---- v2-0-RC1/resources/Examples.xml | 11 +++++++++++ v2-0-RC1/resources/sbe.xsd | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/v2-0-RC1/doc/02FieldEncoding.md b/v2-0-RC1/doc/02FieldEncoding.md index 1b47326..c2d9555 100644 --- a/v2-0-RC1/doc/02FieldEncoding.md +++ b/v2-0-RC1/doc/02FieldEncoding.md @@ -135,7 +135,7 @@ Attributes are optional unless specified otherwise. | Schema attribute | Description | |-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | presence=required | The field must always be set. This is the default presence. Mutually exclusive with nullValue. | -| presence=constant | The field has a constant value that need not be transmitted on the wire. Mutually exclusive with value attributes. | +| presence=constant | The field has a constant value that need not be transmitted on the wire. Mutually exclusive with nullValue, minValue, and maxValue attributes. | | presence=optional | The field need not be populated. A special null value indicates that a field is not set. The presence attribute may be specified on either on a field or its encoding. | | nullValue | A special value that indicates that an optional value is not set. See encodings below for default nullValue for each type. Mutually exclusive with presence=required and constant. | | minValue | The lowest valid value of a range. Applies to scalar data types, but not to String or data types. | @@ -567,10 +567,9 @@ M S F T A character array constant specification ```xml -XEUR + - +XEUR ``` ### Variable-length string encoding diff --git a/v2-0-RC1/resources/Examples.xml b/v2-0-RC1/resources/Examples.xml index 1cfa45f..c1f233e 100644 --- a/v2-0-RC1/resources/Examples.xml +++ b/v2-0-RC1/resources/Examples.xml @@ -9,6 +9,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + @@ -122,4 +123,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + + + + + + + + + USD + diff --git a/v2-0-RC1/resources/sbe.xsd b/v2-0-RC1/resources/sbe.xsd index 9c238d9..bf7ef94 100644 --- a/v2-0-RC1/resources/sbe.xsd +++ b/v2-0-RC1/resources/sbe.xsd @@ -260,7 +260,7 @@ - + A field of a message of a specified dataType