Skip to content

Commit

Permalink
feat: add both empty and value set check
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Aug 2, 2023
1 parent f7aa47e commit 5e0d30b
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/user_docs/support/faq-kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ Or use the default parameter of the option function.
value = option("key", default="default_value") # When the value of key exists, take the value of option("key"), otherwise take "default_value"
```

## 40. How to check that multiple attributes cannot be empty at the same time in schema in KCL?
## 40. How to check that multiple attributes cannot be empty or set values at the same time in schema in KCL?

In KCL, a single attribute of schema cannot be empty by default, unless we use the attribute optional operator `?`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ value = option("key") or "default_value" # 当 key 的值存在时,取 option
value = option("key", default="default_value") # 当 key 的值存在时,取 option("key") 的值,否则取 "default_value"
```

## 40. KCL 中 schema 怎么检查多个属性不能同时为空
## 40. KCL 中 schema 怎么检查多个属性不能同时为空或同时设置

在 KCL 中,对于 schema 的单个属性不能为空可以使用属性非空标记

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ value = option("key") or "default_value" # 当 key 的值存在时,取 option
value = option("key", default="default_value") # 当 key 的值存在时,取 option("key") 的值,否则取 "default_value"
```

## 40. KCL 中 schema 怎么检查多个属性不能同时为空
## 40. KCL 中 schema 怎么检查多个属性不能同时为空或同时设置

在 KCL 中,对于 schema 的单个属性不能为空可以使用属性非空标记

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ value = option("key") or "default_value" # 当 key 的值存在时,取 option
value = option("key", default="default_value") # 当 key 的值存在时,取 option("key") 的值,否则取 "default_value"
```

## 40. KCL 中 schema 怎么检查多个属性不能同时为空
## 40. KCL 中 schema 怎么检查多个属性不能同时为空或同时设置

在 KCL 中,对于 schema 的单个属性不能为空可以使用属性非空标记

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ value = option("key") or "default_value" # 当 key 的值存在时,取 option
value = option("key", default="default_value") # 当 key 的值存在时,取 option("key") 的值,否则取 "default_value"
```

## 40. KCL 中 schema 怎么检查多个属性不能同时为空
## 40. KCL 中 schema 怎么检查多个属性不能同时为空或同时设置

在 KCL 中,对于 schema 的单个属性不能为空可以使用属性非空标记

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ value = option("key") or "default_value" # 当 key 的值存在时,取 option
value = option("key", default="default_value") # 当 key 的值存在时,取 option("key") 的值,否则取 "default_value"
```

## 40. KCL 中 schema 怎么检查多个属性不能同时为空
## 40. KCL 中 schema 怎么检查多个属性不能同时为空或同时设置

在 KCL 中,对于 schema 的单个属性不能为空可以使用属性非空标记

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ value = option("key") or "default_value" # 当 key 的值存在时,取 option
value = option("key", default="default_value") # 当 key 的值存在时,取 option("key") 的值,否则取 "default_value"
```

## 40. KCL 中 schema 怎么检查多个属性不能同时为空
## 40. KCL 中 schema 怎么检查多个属性不能同时为空或同时设置

在 KCL 中,对于 schema 的单个属性不能为空可以使用属性非空标记

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ value = option("key") or "default_value" # 当 key 的值存在时,取 option
value = option("key", default="default_value") # 当 key 的值存在时,取 option("key") 的值,否则取 "default_value"
```

## 40. KCL 中 schema 怎么检查多个属性不能同时为空
## 40. KCL 中 schema 怎么检查多个属性不能同时为空或同时设置

在 KCL 中,对于 schema 的单个属性不能为空可以使用属性非空标记

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.3/user_docs/support/faq-kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ Or use the default parameter of the option function.
value = option("key", default="default_value") # When the value of key exists, take the value of option("key"), otherwise take "default_value"
```

## 40. How to check that multiple attributes cannot be empty at the same time in schema in KCL?
## 40. How to check that multiple attributes cannot be empty or set values at the same time in schema in KCL?

In KCL, a single attribute of schema cannot be empty by default, unless we use the attribute optional operator `?`.

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.4/user_docs/support/faq-kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ Or use the default parameter of the option function.
value = option("key", default="default_value") # When the value of key exists, take the value of option("key"), otherwise take "default_value"
```

## 40. How to check that multiple attributes cannot be empty at the same time in schema in KCL?
## 40. How to check that multiple attributes cannot be empty or set values at the same time in schema in KCL?

In KCL, a single attribute of schema cannot be empty by default, unless we use the attribute optional operator `?`.

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.5/user_docs/support/faq-kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ Or use the default parameter of the option function.
value = option("key", default="default_value") # When the value of key exists, take the value of option("key"), otherwise take "default_value"
```

## 40. How to check that multiple attributes cannot be empty at the same time in schema in KCL?
## 40. How to check that multiple attributes cannot be empty or set values at the same time in schema in KCL?

In KCL, a single attribute of schema cannot be empty by default, unless we use the attribute optional operator `?`.

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.6/user_docs/support/faq-kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ Or use the default parameter of the option function.
value = option("key", default="default_value") # When the value of key exists, take the value of option("key"), otherwise take "default_value"
```

## 40. How to check that multiple attributes cannot be empty at the same time in schema in KCL?
## 40. How to check that multiple attributes cannot be empty or set values at the same time in schema in KCL?

In KCL, a single attribute of schema cannot be empty by default, unless we use the attribute optional operator `?`.

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.0/user_docs/support/faq-kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ Or use the default parameter of the option function.
value = option("key", default="default_value") # When the value of key exists, take the value of option("key"), otherwise take "default_value"
```

## 40. How to check that multiple attributes cannot be empty at the same time in schema in KCL?
## 40. How to check that multiple attributes cannot be empty or set values at the same time in schema in KCL?

In KCL, a single attribute of schema cannot be empty by default, unless we use the attribute optional operator `?`.

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.1/user_docs/support/faq-kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ Or use the default parameter of the option function.
value = option("key", default="default_value") # When the value of key exists, take the value of option("key"), otherwise take "default_value"
```

## 40. How to check that multiple attributes cannot be empty at the same time in schema in KCL?
## 40. How to check that multiple attributes cannot be empty or set values at the same time in schema in KCL?

In KCL, a single attribute of schema cannot be empty by default, unless we use the attribute optional operator `?`.

Expand Down

0 comments on commit 5e0d30b

Please sign in to comment.