Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/guide/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ interfaces:
description: A tuner service to manages tuner stations
properties:
- name: currentStation
type: Station
type: {ref: Station}
description: current selected station
- name: stationList
type: Station[]
type: array
items: {ref: Station}
description: list of current available stations
operations:
- name: nextStation
Expand All @@ -51,20 +52,19 @@ interfaces:
description: update current station
params:
- name: stationId
- type: id
- type: int

structs:
- name: Station
fields:
- name: stationId
type: id
type: int
description: station id
- name: name
type: string
description: station name
- name: modified
type: string
format: date-time
description: station last time modified

enums:
Expand Down Expand Up @@ -99,17 +99,17 @@ interfaces:
- name: WeatherStation
- properties:
- { name: temperature, type: float }
- { name: lastError, type: Error }
- { name: lastError, type: {ref: Error} }
- operations:
- { name: reset }
- signals:
- name: error
params:
- { name: error, type: Error }
- { name: error, type: {ref: Error} }

structs:
- name: Error
fields:
- name: msg
type: string
```
```