-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.yaml
59 lines (59 loc) · 1.13 KB
/
schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
extensions:
- url: file://gpio.js
id: example_js
path: v1.0/gpio_output.*
policies: []
schemas:
- description: Raspberry PI Output GPIO pin
id: gpio_output
plural: gpio_outputs
prefix: /v1.0
schema:
properties:
id:
description: ID
permission:
- create
title: ID
type: string
unique: false
name:
description: Name for the GPIO resource
permission:
- create
- update
title: Name
type: string
unique: false
gpio_pin:
description: GPIO Pin number
title: GPIO Pin
permission:
- create
type: number
unique: true
is_up:
title: UP
description: Is pin UP?
permission:
- create
- update
type: boolean
default: false
tenant_id:
description: Tenant ID
permission:
- create
title: Tenant
type: string
unique: false
propertiesOrder:
- id
- name
- gpio_pin
- is_up
required:
- gpio_pin
type: object
title: GPIO Pin
singular: gpio