-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current Recap null-field handling is a bit cumbersome. I discussed with @gwukelic, @adrianisk, and @cpard. We decided to add support for an `optional` field to the CST. This will allow us to specify that a field is optional. See the conversation here: gabledata/recap#335 Users can now specify an optional field as: ```yaml type: struct fields: - name: secondary_phone type: string32 optional: true ``` This will get treated the same as: ```yaml type: struct fields: - name: secondary_phone type: "union", types: ["null", "string32"], default: null ```
- Loading branch information
1 parent
f4f390c
commit 292de0f
Showing
1 changed file
with
98 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters