Skip to content

Commit b2239c2

Browse files
author
json-everything-ci
committed
regenerated api docs
1 parent 3440cad commit b2239c2

File tree

7 files changed

+45
-76
lines changed

7 files changed

+45
-76
lines changed

_docs/api/JsonLogic/JsonLogic.md

+40-1
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,25 @@ public static Rule Subtract(Rule a, params Rule[] more)
794794

795795
A `-` rule.
796796

797+
### Variable(Rule input)
798+
799+
Creates a `var` rule that accesses data.
800+
801+
#### Declaration
802+
803+
```c#
804+
public static Rule Variable(Rule input)
805+
```
806+
807+
| Parameter | Type | Description |
808+
|---|---|---|
809+
| input | Rule | A rule that produces the dot-delimited path. |
810+
811+
812+
#### Returns
813+
814+
A variable rule.
815+
797816
### Variable(string path)
798817

799818
Creates a `var` rule that accesses data.
@@ -806,7 +825,27 @@ public static Rule Variable(string path)
806825

807826
| Parameter | Type | Description |
808827
|---|---|---|
809-
| path | string | |
828+
| path | string | The dot-delimited path. |
829+
830+
831+
#### Returns
832+
833+
A variable rule.
834+
835+
### Variable(Rule input, Rule defaultValue)
836+
837+
Creates a `var` rule that accesses data.
838+
839+
#### Declaration
840+
841+
```c#
842+
public static Rule Variable(Rule input, Rule defaultValue)
843+
```
844+
845+
| Parameter | Type | Description |
846+
|---|---|---|
847+
| input | Rule | A rule that produces the dot-delimited path. |
848+
| defaultValue | Rule | A default value to use if the path is not found. |
810849

811850

812851
#### Returns

_docs/api/JsonLogic/title.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ bookmark: JsonLogic
44
permalink: /api/JsonLogic/:title/
55
folder: true
66
order: "10.11"
7-
version: "5.2.1"
7+
version: "5.3.0"
88
---

_docs/api/JsonSchema.Net.Generation.DataAnnotations/AllowedValuesAttributeHandler.md

-18
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,16 @@ order: "10.06.000"
1717
- IAttributeHandler\<AllowedValuesAttribute\>
1818
- IAttributeHandler
1919

20-
Adds an `enum` keyword for the indicated values.
21-
22-
## Remarks
23-
24-
For NativeAOT scenarios, only primitive JSON types are supported.
2520

2621
## Methods
2722

2823
### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
2924

30-
Processes the type and any attributes (present on the context), and adds
31-
intents to the context.
3225

3326
#### Declaration
3427

3528
```c#
3629
public void AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
3730
```
3831

39-
| Parameter | Type | Description |
40-
|---|---|---|
41-
| context | SchemaGenerationContextBase | The generation context. |
42-
| attribute | Attribute | The attribute. |
43-
44-
45-
#### Remarks
46-
47-
A common pattern is to implement **Json.Schema.Generation.IAttributeHandler** on the
48-
attribute itself. In this case, the <paramref name="attribute" /> parameter
49-
will be the same instance as the handler and can likely be ignored.
5032

_docs/api/JsonSchema.Net.Generation.DataAnnotations/Base64StringAttributeAttributeHandler.md

-20
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,4 @@ order: "10.06.001"
1919
- IAttributeHandler\<Base64StringAttribute\>
2020
- IAttributeHandler
2121

22-
Adds a `format` keyword with `base64`.
23-
24-
## Remarks
25-
26-
By default, `format` is an annotation only. No validation will occur unless configured to do so.
27-
28-
The `base64` format is defined by the OpenAPI 3.1 specification.
29-
30-
## Constructors
31-
32-
### Base64StringAttributeAttributeHandler()
33-
34-
Creates a new **Json.Schema.Generation.DataAnnotations.Base64StringAttributeAttributeHandler**.
35-
36-
#### Declaration
37-
38-
```c#
39-
public Base64StringAttributeAttributeHandler()
40-
```
41-
4222

_docs/api/JsonSchema.Net.Generation.DataAnnotations/DeniedValuesAttributeHandler.md

-18
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,16 @@ order: "10.06.003"
1717
- IAttributeHandler\<DeniedValuesAttribute\>
1818
- IAttributeHandler
1919

20-
Adds a `not: {enum}` construct for the indicated values.
21-
22-
## Remarks
23-
24-
For NativeAOT scenarios, only primitive JSON types are supported.
2520

2621
## Methods
2722

2823
### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
2924

30-
Processes the type and any attributes (present on the context), and adds
31-
intents to the context.
3225

3326
#### Declaration
3427

3528
```c#
3629
public void AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
3730
```
3831

39-
| Parameter | Type | Description |
40-
|---|---|---|
41-
| context | SchemaGenerationContextBase | The generation context. |
42-
| attribute | Attribute | The attribute. |
43-
44-
45-
#### Remarks
46-
47-
A common pattern is to implement **Json.Schema.Generation.IAttributeHandler** on the
48-
attribute itself. In this case, the <paramref name="attribute" /> parameter
49-
will be the same instance as the handler and can likely be ignored.
5032

_docs/api/JsonSchema.Net.Generation.DataAnnotations/LengthAttributeHandler.md

-18
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,16 @@ order: "10.06.007"
1717
- IAttributeHandler\<LengthAttribute\>
1818
- IAttributeHandler
1919

20-
Adds `minLength` and `maxLength` keywords.
21-
22-
## Remarks
23-
24-
`minLength` will be not be added if the value is less than or equal to zero.
2520

2621
## Methods
2722

2823
### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
2924

30-
Processes the type and any attributes (present on the context), and adds
31-
intents to the context.
3225

3326
#### Declaration
3427

3528
```c#
3629
public void AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
3730
```
3831

39-
| Parameter | Type | Description |
40-
|---|---|---|
41-
| context | SchemaGenerationContextBase | The generation context. |
42-
| attribute | Attribute | The attribute. |
43-
44-
45-
#### Remarks
46-
47-
A common pattern is to implement **Json.Schema.Generation.IAttributeHandler** on the
48-
attribute itself. In this case, the <paramref name="attribute" /> parameter
49-
will be the same instance as the handler and can likely be ignored.
5032

_docs/release-notes/rn-json-logic.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ title: JsonLogic
44
icon: fas fa-tag
55
order: "09.11"
66
---
7+
# [5.3.0](https://github.com/gregsdennis/json-everything/pull/808) {#release-logic-5.3.0}
8+
9+
[#807](https://github.com/gregsdennis/json-everything/issues/807) - Added `JsonLogic.Variable()` overload that takes a rule as a parameter instead of just a variable path string.
10+
711
# [5.2.1](https://github.com/gregsdennis/json-everything/pull/717) {#release-logic-5.2.1}
812

913
Fixed an exception message.

0 commit comments

Comments
 (0)