Adapt Config according to WES 1.1.0
The current version of config.yaml
doesn't work after updating to WES 1.1.0. There are two issues.
Missing default values
Some fields are required, but haven't declared a default value. That means WESkit can't be deployed out-of-the-box without setting these fields in the config. We should set default values in the config file provided in the deployment repo.
The following fields are affected in file deployment/weskit_config/config.yaml
:
static_service_info:
id: <REQUIRED>
name: <REQUIRED>
organization:
name: <REQUIRED>
url: <REQUIRED>
type:
group: <REQUIRED>
artifact: <REQUIRED>
version: <REQUIRED>
version: <REQUIRED>
Find some appropriate default values and enter them in the config.yaml
file.
Wrong date-time format
With the new version WESkit requires date-time values in RFC3339 format. The validation has default values in the wrong format.
The follwing fields are affected in file api/config/validation.yaml
:
static_service_info:
created_at:
type: datetime
required: false
default: 2021-01-01
updated_at:
type: datetime
required: false
default: 2021-01-01
The value 2021-01-01
is not valid. RFC3339 requires the format 2021-01-01T00:00:00Z
. Both default values have to be changed.