Skip to content

Commit

Permalink
AVRO-2574: Add a default value to the spec (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko committed Oct 1, 2019
1 parent c7c2c93 commit 563c246
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions doc/src/content/xdocs/spec.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
</ul>
<p>For example, playing card suits might be defined with:</p>
<source>
{ "type": "enum",
{
"type": "enum",
"name": "Suit",
"symbols" : ["SPADES", "HEARTS", "DIAMONDS", "CLUBS"]
}
Expand All @@ -199,7 +200,13 @@
</ul>
<p>For example, an array of strings is declared
with:</p>
<source>{"type": "array", "items": "string"}</source>
<source>
{
"type": "array",
"items" : "string",
"default": []
}
</source>
</section>

<section>
Expand All @@ -212,7 +219,13 @@
<p>Map keys are assumed to be strings.</p>
<p>For example, a map from string to long is declared
with:</p>
<source>{"type": "map", "values": "long"}</source>
<source>
{
"type": "map",
"items" : "long",
"default": {}
}
</source>
</section>

<section>
Expand Down

0 comments on commit 563c246

Please sign in to comment.