Issue:
When wcm checks to make sure the yaml is valid before publishing it does not give much helpful information about the issue. This could lead to the user being unclear on what the issue with their component is.
Example:
In this case the data field in the yaml was not configured properly
C:\Users\Admin\Desktop\USC\Internships\ISI\WCM>wcm publish ecoDataTest-v6
2019-10-21 14:08:12,381 root INFO Publishing component
2019-10-21 14:08:12,491 root ERROR [] is not of type 'object'
2019-10-21 14:08:12,491 root ERROR Invalid component specification.
The yaml:
name: economicDataTest
version: v6
schemaVersion: 0.0.1
wings:
inputs:
outputs:
# Shortened yaml (removed inputs, outputs and other fields)
componentType: Economic
files:
- src\*
data:
[] # Problem line
Solution:
- Give a line number for the error in the yaml
- Tell the user the problem is with the wings-component.yaml file since it could be unclear
- If possible tell user a solution to the problem
Issue:
When wcm checks to make sure the yaml is valid before publishing it does not give much helpful information about the issue. This could lead to the user being unclear on what the issue with their component is.
Example:
In this case the
datafield in the yaml was not configured properlyThe yaml:
Solution: