# WotThingDescription

Type: WotThingDescription

A WoT Thing Description version 1.1

Schema: [WotThingDescription](https://sourcey-ditto.pages.dev/http-api-doc/models/wotthingdescription.md)

- `@context` (required)
  Type: Array<string> | string
  
  Example:
  
  ```json
  [
    "https://www.w3.org/2022/wot/td/v1.1"
  ]
  ```
  
  oneOf:
    Type: Array<string>
    
    Items:
      Type: string
      
      enum: ["https://www.w3.org/2019/wot/td/v1","http://www.w3.org/ns/td","https://www.w3.org/2022/wot/td/v1.1"]
  
    Type: string
    
    enum: ["https://www.w3.org/2019/wot/td/v1","http://www.w3.org/ns/td","https://www.w3.org/2022/wot/td/v1.1"]

- `title` (required)
  Type: string
  
  Example:
  
  ```json
  "My fancy Thing"
  ```

- `titles` (optional)
  Type: object
  
  Additional properties: 
    Type: string

- `description` (optional)
  Type: string
  
  Example:
  
  ```json
  "Does fancy stuff with IoT"
  ```

- `descriptions` (optional)
  Type: object
  
  Additional properties: 
    Type: string

- `@type` (optional)
  Type: string | Array<string>
  
  Example:
  
  ```json
  "Thing"
  ```
  
  oneOf:
    Type: string
  
    Type: Array<string>
    
    Items:
      Type: string

- `id` (optional)
  Type: string
  
  Example:
  
  ```json
  "urn:org.eclipse.ditto:my-fancy-thing"
  ```

- `base` (optional)
  Type: string, iri-reference
  
  Example:
  
  ```json
  "https://ditto.eclipseprojects.io/api/2/org.eclipse.ditto:my-fancy-thing"
  ```

- `version` (optional)
  Type: object
  
  Example:
  
  ```json
  {
    "model": "1.0.0",
    "instance": "1.0.0"
  }
  ```
  
  - `model` (optional)
    Type: string
  
  - `instance` (required)
    Type: string

- `links` (optional)
  Type: Array<object>
  
  Items:
    Type: object
    
    - `href` (required)
      Type: string, iri-reference
    
    - `rel` (optional)
      Type: string
    
    - `type` (optional)
      Type: string
    
    - `anchor` (optional)
      Type: string
    
    Additional properties: true

- `security` (required)
  Type: string | Array<string>
  
  Example:
  
  ```json
  "basic_sc"
  ```
  
  oneOf:
    Type: string
  
    Type: Array<string>
    
    Items:
      Type: string

- `securityDefinitions` (required)
  Type: object
  
  Example:
  
  ```json
  {
    "basic_sc": {
      "in": "header",
      "scheme": "basic"
    }
  }
  ```
  
  Additional properties: 
    Type: object

- `support` (optional)
  Type: string, iri-reference
  
  Example:
  
  ```json
  "https://www.eclipse.dev/ditto/"
  ```

- `created` (optional)
  Type: string, date-time

- `modified` (optional)
  Type: string, date-time

- `forms` (optional)
  Type: Array<object>
  
  Items:
    Type: object
    
    - `op` (optional)
      Type: string
    
    - `href` (optional)
      Type: string
    
    - `htv:methodName` (optional)
      Type: string
    
    - `contentType` (optional)
      Type: string
    
    - `additionalResponses` (optional)
      Type: Array<object>
      
      Items:
        Type: object
        
        - `success` (optional)
          Type: boolean
        
        - `schema` (optional)
          Type: string

- `properties` (optional)
  Type: object
  
  Additional properties: 
    Type: object

- `actions` (optional)
  Type: object
  
  Additional properties: 
    Type: object

- `events` (optional)
  Type: object
  
  Additional properties: 
    Type: object

- `uriVariables` (optional)
  Type: object
  
  Additional properties: 
    Type: object

- `schemaDefinitions` (optional)
  Type: object
  
  Additional properties: 
    Type: object

- `profile` (optional)
  Type: Array<string> | string
  
  oneOf:
    Type: Array<string>
    
    Items:
      Type: string, iri-reference
  
    Type: string, iri-reference

Additional properties: true