Skip to content

Everyone gets a default

Compare
Choose a tag to compare
@mattpolzin mattpolzin released this 20 Dec 06:59
96e85ad

Schema Objects were missing the JSON Schema default property that allows you to define a default for values. This release adds defaultValue to the CoreContext and the JSONSchema type.

The defaultValue property is an AnyCodable so that you are not tied to one Swift way of representing each JSON type when defining default values.