SIOS-Technology-Inc / dacrane

"Dacrane" is a Delivery as Code (DaC) tool for deploying cloud infrastructures and applications anywhere.
Apache License 2.0
61 stars 1 forks source link

default parameter function #42

Closed t-ikeda-sti closed 10 months ago

t-ikeda-sti commented 10 months ago

User Story

The module author wants to define default values for arguments.

Acceptance Criteria

https://json-schema.org/understanding-json-schema/reference/annotations

The default keyword specifies a default value. This value is not used to fill in missing values during the validation process. Non-validation tools such as documentation generators or form generators may use this value to give hints to users about how to use a value. However, default is typically used to express that if a value is missing, then the value is semantically the same as if the value was present with the default value. The value of default should validate against the schema in which it resides, but that isn't required.

t-ikeda-sti commented 10 months ago

https://json-schema.org/understanding-json-schema/reference/schema#declaring-a-dialect

t-ikeda-sti commented 10 months ago

Implemented.