Skip to content

PropertySchema

Definition for the property schema of a model. This includes the properties and example records.

---
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
examples:
- key: value
strict: true
properties:
firstName:
kind: string
sample: Jane
lastName:
kind: string
sample: Doe
question:
kind: string
sample: What is the meaning of life?
NameTypeDescription
examplesdictionary[]Example records for the input schema
strictbooleanWhether the input schema is strict - if true, only the defined properties are allowed
propertiesProperty[]The input properties for the schema (Related Types: ArrayProperty, ObjectProperty)

The following types are composed within PropertySchema: