(Quick Reference)

inList

Purpose

Validates that a value is within a range or collection of constrained values.

Examples

name inList: ["Joe", "Fred", "Bob"]

Description

Constrains a value so that it must be contained within the given list.

This constraint influences schema generation.

Error Code: className.propertyName.not.inList