prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

updates convertOnExecution to pass along default values #254

Closed awburgard closed 1 month ago

awburgard commented 2 months ago

When building a CNI with the updates to spectral and component manifest generation, we were not passing along the default values to the runner at execution time, which was causing executions to fail. We also we're ever passing default values to the type manifest.

This PR adds the default to the type manifest so that it is available at convert time.

At convert time, we now check to see if the default value is present and that the user hasn't provided that key. If there is a default value and the user has not overwritten it, we will provide the default value for them. This enables executions to run successfully.