default value for a property calculated with an optional variable #28

Open
opened 2024-07-12 08:27:04 +02:00 by egarette · 0 comments
Owner

This example:

---
version: 1.1
variable:
  hidden:
    type: variable
    variable: _.unknown
    optional: true

Is equivalent to:

---
version: 1.1
variable:

But, sometime, we want have:

---
version: 1.1
variable:
  hidden: true

We should support:

---
version: 1.1
variable:
  hidden:
    type: variable
    variable: _.unknown
    optional: true
    default: true

This modification must be available only for version 1.1.
"default" is only avalaible to property.

This example: ``` --- version: 1.1 variable: hidden: type: variable variable: _.unknown optional: true ``` Is equivalent to: ``` --- version: 1.1 variable: ``` But, sometime, we want have: ``` --- version: 1.1 variable: hidden: true ``` We should support: ``` --- version: 1.1 variable: hidden: type: variable variable: _.unknown optional: true default: true ``` This modification must be available only for version 1.1. "default" is only avalaible to property.
gremond was assigned by egarette 2024-07-12 08:27:04 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stove/rougail#28
No description provided.