Skip to content

Commit ec405f7

Browse files
Karl Riebbraincore
authored andcommitted
Fixing Babel examples in documentation
1 parent e8f2d6c commit ec405f7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ service. Our hypothetical spec lives in a file called ``users.babel``::
168168
account_id="id-48sa2f0"
169169
email="alex@example.org"
170170
name="Alexander the Great"
171+
status=active
171172

172173
# This struct represents the input data to the route.
173174
struct GetAccountReq

doc/lang_ref.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ The spec should live in a file called ``users.babel``::
4343
account_id="id-48sa2f0"
4444
email="alex@example.org"
4545
name="Alexander the Great"
46+
status=active
4647

4748
# This struct represents the input data to the route.
4849
struct GetAccountReq
@@ -310,11 +311,13 @@ representation of the general case for the type::
310311
account_id = "id-48sa2f0"
311312
email = "alex@example.org"
312313
name = "Alexander the Great"
314+
status = active
313315

314316
example unnamed "An anonymous user"
315317
account_id = "id-29sk2p1"
316318
email = "anony@example.org"
317319
name = null
320+
status = active
318321

319322
Every required field (not nullable and no default) must be specified, otherwise
320323
an error will be returned. ``null`` can be used to mark that a nullable type
@@ -331,11 +334,13 @@ fields only. Here's an example where ``Name`` is now its own struct::
331334
account_id = "id-48sa2f0"
332335
email = "alex@example.org"
333336
name = default
337+
status = active
334338

335339
example anonymous
336340
account_id = "id-29sk2p1"
337341
email = "anony@example.org"
338342
name = anonymous
343+
status = active
339344

340345
struct Name
341346
first_name String?

0 commit comments

Comments
 (0)