PropertySchema
Definition for the property schema of a model. This includes the properties and example records.
Class Diagram
Section titled “Class Diagram”---
title: PropertySchema
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class PropertySchema {
+dictionary[] examples
+boolean strict
+Property[] properties
}
class Property {
+string name
+string kind
+string description
+boolean required
+unknown default
+unknown example
+unknown[] enumValues
}
PropertySchema *-- Property
Yaml Example
Section titled “Yaml Example”examples: - key: valuestrict: trueproperties: firstName: kind: string sample: Jane lastName: kind: string sample: Doe question: kind: string sample: What is the meaning of life?Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| examples | dictionary[] | Example records for the input schema |
| strict | boolean | Whether the input schema is strict - if true, only the defined properties are allowed |
| properties | Property[] | The input properties for the schema (Related Types: ArrayProperty, ObjectProperty) |
Composed Types
Section titled “Composed Types”The following types are composed within PropertySchema: