Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 885 Bytes

123.md

File metadata and controls

46 lines (33 loc) · 885 Bytes

DIP-123

property

Background

Following the convention of DIP-102, a new wordType will be introduced: property.

The purpose of the property word type is to serve as a building block for JSON Schemas. Properties are used as nodes in the property tree that is used to build a node of word type: jsonSchema.

Declaration

{
  "wordData": {
    "wordTypes": ["wordType"],
  },
  "wordTypeData": {
    "slug": "property"
  },
  ...
}

Properties

propertyData.type designates which JSON property type: string, object, array, etc. The subsequent properties will depend on which type it is. Future DIPs will specify further details.

Example:

{
  "wordData": {
    "wordTypes": ["property"],
  },
  "propertyData": {
    "type": "string",
  },
  ...
}