Undefined Fields

The Undefined Fields constraint is a Schema Constraint that checks that a field is defined by the schema when a value is assigned to it.

Usage Example

schema:
  name: TimerAlert
  package: alarm_clock
  root: timer_alert
  description: Data structure for timer alerts.
  fields:
    - name: name
      type: string
    - name: triggeredTime
      type: Timestamp
    - name: alarmNoise
      type: AlarmNoise

In the above example, the schema TimerAlert has three defined fields: name, triggeredTime, and alarmNoise. If you attempt to assign a value to a field that does not exist, the Undefined Fields constraint will fail.