Property DependentValues
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
DependentValues
Gets or sets the acceptable values keyed by the value of a sibling element, for two-level taxonomies where the valid values of this element depend on another field's answer.
public DependentAllowedValues DependentValues { get; set; }
Property Value
Examples
var taxonomy = new DependentAllowedValues("category");
taxonomy.Add("Baggage", new[] { "Delay", "Damage", "Loss" });
subCategory.Format.DependentValues = taxonomy;
Remarks
Only applicable when ElementType is String.
The discriminator element must be declared immediately before this element. The
constraint is enforced by the generation grammar itself, so an undeclared
combination cannot be produced. See DependentAllowedValues for the
full contract and the JSON schema form (allOf/if/then).