From 5d20e54f85242f69d6f46996121e8924632dfb2e Mon Sep 17 00:00:00 2001 From: dorotaphanSiili <108282075+dorotaphanSiili@users.noreply.github.com> Date: Mon, 27 Jun 2022 17:01:29 +0200 Subject: [PATCH 1/2] Update tutorial.md --- docs/guide/tutorial.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/guide/tutorial.md b/docs/guide/tutorial.md index 86ee91d..4805f9f 100644 --- a/docs/guide/tutorial.md +++ b/docs/guide/tutorial.md @@ -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 @@ -99,17 +100,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 -``` \ No newline at end of file +``` From cdb862d8dd08f79f1a51a0e3f0978682b8ead793 Mon Sep 17 00:00:00 2001 From: dorotaphanSiili <108282075+dorotaphanSiili@users.noreply.github.com> Date: Mon, 27 Jun 2022 17:05:33 +0200 Subject: [PATCH 2/2] fixes remove use of "id" type - changed to int remove not working format of string --- docs/guide/tutorial.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/guide/tutorial.md b/docs/guide/tutorial.md index 4805f9f..94f37f8 100644 --- a/docs/guide/tutorial.md +++ b/docs/guide/tutorial.md @@ -52,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: