File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
319322Every required field (not nullable and no default) must be specified, otherwise
320323an 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?
You can’t perform that action at this time.
0 commit comments