Skip to content

Commit

Permalink
Simulation AST: ModelChannel alias is mandatory.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Rule (VM/EMT3) <Timothy.Rule@de.bosch.com>
  • Loading branch information
timrulebosch committed Jan 20, 2025
1 parent 0052899 commit d1de6bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/go/dse/ast/Simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ type Model struct {
Workflows *[]Workflow `yaml:"workflows,omitempty"`
}
type ModelChannel struct {
Alias *string `yaml:"alias,omitempty"`
Name string `yaml:"name"`
Alias string `yaml:"alias"`
Name string `yaml:"name"`
}
type Simulation struct {
Kind SimulationKind `yaml:"kind"`
Expand Down
2 changes: 1 addition & 1 deletion doc/content/schemas/yaml/Simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ A model <-> simulation channel mapping.
|Name|Type|Required|Description|
|---|---|---|---|
|name|string|true|The name of the channel in the simulation.|
|alias|string|false|The name (alias) of the channel in the model.|
|alias|string|true|The name (alias) of the channel in the model.|
<h2 id="tocS_Uses">Uses</h2>
Expand Down
1 change: 1 addition & 0 deletions schemas/yaml/Simulation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ components:
description: A model <-> simulation channel mapping.
required:
- name
- alias
properties:
name:
type: string
Expand Down

0 comments on commit d1de6bd

Please sign in to comment.