File tree Expand file tree Collapse file tree 7 files changed +86
-2
lines changed
JsonSchema.Net.Generation.DataAnnotations Expand file tree Collapse file tree 7 files changed +86
-2
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ bookmark: JsonE.Net
44permalink : /api/JsonE.Net/:title/
55folder : true
66order : " 10.12"
7- version : " 2.1.2 "
7+ version : " 2.2.0 "
88---
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Represents a JSON Pointer IAW RFC 6901.
3434| ---| ---| ---|
3535| ** Count** | int | Gets the number of segments in the pointer. |
3636| ** Item** | string | Gets a segment value by index. |
37- | ** Item** | JsonPointer | |
37+ | ** Item** | JsonPointer | Creates a new pointer with the indicated segments. |
3838
3939## Methods
4040
@@ -246,16 +246,22 @@ A new pointer.
246246
247247### GetSubPointer(Range range)
248248
249+ Creates a new pointer with the indicated segments.
249250
250251#### Declaration
251252
252253``` c#
253254public JsonPointer GetSubPointer (Range range )
254255```
255256
257+ | Parameter | Type | Description |
258+ | ---| ---| ---|
259+ | range | Range | The segment range for the new pointer. |
260+
256261
257262#### Returns
258263
264+ A new pointer.
259265
260266### Parse(string source)
261267
Original file line number Diff line number Diff line change @@ -17,16 +17,34 @@ 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.
2025
2126## Methods
2227
2328### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
2429
30+ Processes the type and any attributes (present on the context), and adds
31+ intents to the context.
2532
2633#### Declaration
2734
2835``` c#
2936public void AddConstraints (SchemaGenerationContextBase context , Attribute attribute )
3037```
3138
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.
3250
Original file line number Diff line number Diff line change @@ -19,4 +19,24 @@ 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+
2242
Original file line number Diff line number Diff line change @@ -17,16 +17,34 @@ 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.
2025
2126## Methods
2227
2328### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
2429
30+ Processes the type and any attributes (present on the context), and adds
31+ intents to the context.
2532
2633#### Declaration
2734
2835``` c#
2936public void AddConstraints (SchemaGenerationContextBase context , Attribute attribute )
3037```
3138
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.
3250
Original file line number Diff line number Diff line change @@ -17,16 +17,34 @@ 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.
2025
2126## Methods
2227
2328### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
2429
30+ Processes the type and any attributes (present on the context), and adds
31+ intents to the context.
2532
2633#### Declaration
2734
2835``` c#
2936public void AddConstraints (SchemaGenerationContextBase context , Attribute attribute )
3037```
3138
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.
3250
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ title: JsonE.Net
44icon : fas fa-tag
55order : " 09.12"
66---
7+ # [ 2.2.0] ( https://github.com/gregsdennis/json-everything/pull/805 ) {#release-e-2.2.0}
8+
9+ Adds the newly introduced ` $reduce ` operator and ` range() ` functions.
10+
711# [ 2.1.2] ( https://github.com/gregsdennis/json-everything/commits/6a426380c5597312945d4e743d44c3f530f7f18e ) {#release-e-2.1.2}
812
913` InterpreterException ` now derives from ` JsonEException ` like all of the other exceptions.
You can’t perform that action at this time.
0 commit comments