Skip to content

Commit

Permalink
Add areas to location
Browse files Browse the repository at this point in the history
This key can be used to specify a list of areas that make up your
physical location. Each area has a required size (in square meters), and
an optional name and description.
  • Loading branch information
dbrgn committed Apr 11, 2024
1 parent ffd90f2 commit 7a03e17
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
38 changes: 38 additions & 0 deletions 15-draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,44 @@
"Ring the doorbell marked with HACKSPACE",
"Knock three times, say Shibboleet and follow the white rabbit"
]
},
"areas": {
"description": "A list of areas in your space. Must include at least 1 area if defined.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of this area",
"examples": [
"Hackerspace",
"Kitchen",
"Workshop"
]
},
"description": {
"type": "string",
"description": "A description of this area",
"examples": [
"Our hackerspace area",
"Woodworking machines and power tools"
]
},
"square_meters": {
"type": "number",
"description": "The size of this area in square meters",
"examples": [
23.23,
42
]
}
},
"required": [
"square_meters"
]
},
"minItems": 1
}
},
"required": [
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Changes should start with one of the following tags:
- `[changed]` for changes to the existing API
- `[removed]` for keys that have been removed from the schema

## v15 (unreleased)

`location`:

- [added] The `areas` key was added (?)

## v14

Root level:
Expand Down

0 comments on commit 7a03e17

Please sign in to comment.