File tree Expand file tree Collapse file tree 10 files changed +13
-85
lines changed
JsonSchema.Net.Generation.DataAnnotations
JsonSchema.Net.Generation Expand file tree Collapse file tree 10 files changed +13
-85
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ bookmark: JsonPath.Net
4
4
permalink : /api/JsonPath.Net/:title/
5
5
folder : true
6
6
order : " 10.08"
7
- version : " 1.1.5 "
7
+ version : " 1.1.6 "
8
8
---
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Represents a JSON Pointer IAW RFC 6901.
34
34
| ---| ---| ---|
35
35
| ** Count** | int | Gets the number of segments in the pointer. |
36
36
| ** Item** | string | Gets a segment value by index. |
37
- | ** Item** | JsonPointer | Creates a new pointer with the indicated segments. |
37
+ | ** Item** | JsonPointer | |
38
38
39
39
## Methods
40
40
@@ -246,22 +246,16 @@ A new pointer.
246
246
247
247
### GetSubPointer(Range range)
248
248
249
- Creates a new pointer with the indicated segments.
250
249
251
250
#### Declaration
252
251
253
252
``` c#
254
253
public JsonPointer GetSubPointer (Range range )
255
254
```
256
255
257
- | Parameter | Type | Description |
258
- | ---| ---| ---|
259
- | range | Range | The segment range for the new pointer. |
260
-
261
256
262
257
#### Returns
263
258
264
- A new pointer.
265
259
266
260
### Parse(string source)
267
261
Original file line number Diff line number Diff line change @@ -17,34 +17,16 @@ order: "10.06.000"
17
17
- IAttributeHandler\< AllowedValuesAttribute\>
18
18
- IAttributeHandler
19
19
20
- Adds an ` enum ` keyword for the indicated values.
21
-
22
- ## Remarks
23
-
24
- For NativeAOT scenarios, only primitive JSON types are supported.
25
20
26
21
## Methods
27
22
28
23
### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
29
24
30
- Processes the type and any attributes (present on the context), and adds
31
- intents to the context.
32
25
33
26
#### Declaration
34
27
35
28
``` c#
36
29
public void AddConstraints (SchemaGenerationContextBase context , Attribute attribute )
37
30
```
38
31
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.
50
32
Original file line number Diff line number Diff line change @@ -19,24 +19,4 @@ order: "10.06.001"
19
19
- IAttributeHandler\< Base64StringAttribute\>
20
20
- IAttributeHandler
21
21
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
-
42
22
Original file line number Diff line number Diff line change @@ -17,34 +17,16 @@ order: "10.06.003"
17
17
- IAttributeHandler\< DeniedValuesAttribute\>
18
18
- IAttributeHandler
19
19
20
- Adds a ` not: {enum} ` construct for the indicated values.
21
-
22
- ## Remarks
23
-
24
- For NativeAOT scenarios, only primitive JSON types are supported.
25
20
26
21
## Methods
27
22
28
23
### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
29
24
30
- Processes the type and any attributes (present on the context), and adds
31
- intents to the context.
32
25
33
26
#### Declaration
34
27
35
28
``` c#
36
29
public void AddConstraints (SchemaGenerationContextBase context , Attribute attribute )
37
30
```
38
31
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.
50
32
Original file line number Diff line number Diff line change @@ -17,34 +17,16 @@ order: "10.06.007"
17
17
- IAttributeHandler\< LengthAttribute\>
18
18
- IAttributeHandler
19
19
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.
25
20
26
21
## Methods
27
22
28
23
### AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
29
24
30
- Processes the type and any attributes (present on the context), and adds
31
- intents to the context.
32
25
33
26
#### Declaration
34
27
35
28
``` c#
36
29
public void AddConstraints (SchemaGenerationContextBase context , Attribute attribute )
37
30
```
38
31
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.
50
32
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Indicates that the property should be excluded from generation.
22
22
23
23
This attribute functions exactly the same as the ** System.Text.Json.Serialization.JsonIgnoreAttribute** . It
24
24
is included separately to support the case where the model should be serialized with
25
- a property but schema generation should ignore it.
25
+ a property or enum member but schema generation should ignore it.
26
26
27
27
## Properties
28
28
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ bookmark: JsonSchema.Net.Generation
4
4
permalink : /api/JsonSchema.Net.Generation/:title/
5
5
folder : true
6
6
order : " 10.05"
7
- version : " 4.5.0 "
7
+ version : " 4.5.1 "
8
8
---
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ title: JsonPath.Net
4
4
icon : fas fa-tag
5
5
order : " 09.08"
6
6
---
7
+ # [ 1.1.6] ( https://github.com/gregsdennis/json-everything/pull/797 ) {#release-path-1.1.6}
8
+
9
+ [ #797 ] ( https://github.com/gregsdennis/json-everything/pull/797 ) - `` .TryParse() `` does not respect ` PathParsingOptions.AllowRelativeStart ` . Thanks to [ @mikechristiansenvae ] ( https://github.com/mikechristiansenvae ) for reporting and fixing this.
10
+
7
11
# [ 1.1.5] ( https://github.com/gregsdennis/json-everything/pull/788 ) {#release-path-1.1.5}
8
12
9
13
[ #787 ] ( https://github.com/gregsdennis/json-everything/issues/787 ) - `` .TryParse() `` would throw when encountering a ` . ` -selector at the end of the string. Thanks to [ @Nexiimil ] ( https://github.com/Nexiimil ) for reporting this.
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ title: JsonSchema.Net.Generation
4
4
icon : fas fa-tag
5
5
order : " 09.05"
6
6
---
7
- # [ 4.4.0] ( https://github.com/gregsdennis/json-everything/pull/772 ) {#release-schemagen-4.5.0}
7
+ # [ 4.5.1] ( https://github.com/gregsdennis/json-everything/pull/796 ) {#release-schemagen-4.5.1}
8
+
9
+ [ #795 ] ( https://github.com/gregsdennis/json-everything/issues/795 ) - Added support for ` [JsonExclude] ` and ` [JsonIgnore] ` (_ System.Text.Json_ ) for enum members. Thanks to [ @2BitSalute ] ( https://github.com/2BitSalute ) for suggesting and implementing the idea.
10
+
11
+ # [ 4.5.0] ( https://github.com/gregsdennis/json-everything/pull/772 ) {#release-schemagen-4.5.0}
8
12
9
13
[ #768 ] ( https://github.com/gregsdennis/json-everything/issues/768 ) - Added two ways to allow external references. Thanks to [ @luisjones ] ( https://github.com/luisjones ) for suggesting the idea.
10
14
You can’t perform that action at this time.
0 commit comments