Skip to content

Commit 5cafb6f

Browse files
committed
Merge branch 'main' of github.com:gregsdennis/json-everything-docs
2 parents 17c2da2 + ee783ad commit 5cafb6f

27 files changed

+100
-90
lines changed

_docs/api/JsonPatch.Net/title.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ bookmark: JsonPatch.Net
44
permalink: /api/JsonPatch.Net/:title/
55
folder: true
66
order: "10.09"
7-
version: "3.1.0"
7+
version: "3.1.1"
88
---
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: "page"
3+
title: "NodeListBuilder Class"
4+
bookmark: "NodeListBuilder"
5+
permalink: "/api/JsonPath.Net/:title/"
6+
order: "10.08.018"
7+
---
8+
**Namespace:** Json.Path
9+
10+
**Inheritance:**
11+
`NodeListBuilder`
12+
🡒
13+
`object`
14+
15+
Allows collection expression initialization.
16+
17+
## Methods
18+
19+
### Create(ReadOnlySpan\<Node\> values)
20+
21+
Allows collection expression initialization.
22+
23+
#### Declaration
24+
25+
```c#
26+
public static NodeList Create(ReadOnlySpan<Node> values)
27+
```
28+
29+
30+
#### Returns
31+
32+
33+

_docs/api/JsonPath.Net/NodelistFunctionDefinition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "NodelistFunctionDefinition Class"
44
bookmark: "NodelistFunctionDefinition"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.018"
6+
order: "10.08.019"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/PathEvaluationOptions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "PathEvaluationOptions Class"
44
bookmark: "PathEvaluationOptions"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.019"
6+
order: "10.08.020"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/PathParseException.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "PathParseException Class"
44
bookmark: "PathParseException"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.020"
6+
order: "10.08.021"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/PathParsingOptions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "PathParsingOptions Class"
44
bookmark: "PathParsingOptions"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.021"
6+
order: "10.08.022"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/PathResult.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "PathResult Class"
44
bookmark: "PathResult"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.022"
6+
order: "10.08.023"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/PathScope.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "PathScope Enum"
44
bookmark: "PathScope"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.023"
6+
order: "10.08.024"
77
---
88
# PathScope Enum
99

_docs/api/JsonPath.Net/PathSegment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "PathSegment Class"
44
bookmark: "PathSegment"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.024"
6+
order: "10.08.025"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/SearchFunction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "SearchFunction Class"
44
bookmark: "SearchFunction"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.025"
6+
order: "10.08.026"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/SliceSelector.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "SliceSelector Class"
44
bookmark: "SliceSelector"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.026"
6+
order: "10.08.027"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/ValueFunction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "ValueFunction Class"
44
bookmark: "ValueFunction"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.027"
6+
order: "10.08.028"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/ValueFunctionDefinition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "ValueFunctionDefinition Class"
44
bookmark: "ValueFunctionDefinition"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.028"
6+
order: "10.08.029"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/WildcardSelector.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: "page"
33
title: "WildcardSelector Class"
44
bookmark: "WildcardSelector"
55
permalink: "/api/JsonPath.Net/:title/"
6-
order: "10.08.029"
6+
order: "10.08.030"
77
---
88
**Namespace:** Json.Path
99

_docs/api/JsonPath.Net/title.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ bookmark: JsonPath.Net
44
permalink: /api/JsonPath.Net/:title/
55
folder: true
66
order: "10.08"
7-
version: "1.1.1"
7+
version: "1.1.2"
88
---

_docs/api/JsonPointer.Net/title.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ bookmark: JsonPointer.Net
44
permalink: /api/JsonPointer.Net/:title/
55
folder: true
66
order: "10.10"
7-
version: "5.0.0"
7+
version: "5.0.2"
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/api/JsonSchema.Net/EvaluationOptions.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Allows configuration of the evaluation process.
1919
| Name | Type | Summary |
2020
|---|---|---|
2121
| **AddAnnotationForUnknownKeywords** | bool | Outputs an annotation that lists any unknown keywords. Can be useful for catching typos. |
22+
| **AllowReferencesIntoUnknownKeywords** | bool | Gets or sets whether `$ref` is permitted to navigate into unknown keywords where subschemas aren't expected. Default is true. |
2223
| **Culture** | CultureInfo | Gets or sets the culture for error messages. Overrides **Json.Schema.ErrorMessages.Culture**. |
2324
| **Default** | EvaluationOptions | The default settings. |
2425
| **EvaluateAs** | SpecVersion | Indicates which specification version to process as. This will filter the keywords of a schema based on their support. |

_docs/api/JsonSchema.Net/SchemaRegistry.md

+21
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,24 @@ public void Register(Uri uri, IBaseDocument document)
9090
| document | IBaseDocument | The schema. |
9191

9292

93+
### RegisterNewSpecVersion(Uri metaSchemaUri, SpecVersion specVersion)
94+
95+
Registers a new meta-schema URI and establishes a new recognized value for the
96+
**Json.Schema.SpecVersion** enumeration.
97+
98+
#### Declaration
99+
100+
```c#
101+
public static void RegisterNewSpecVersion(Uri metaSchemaUri, SpecVersion specVersion)
102+
```
103+
104+
| Parameter | Type | Description |
105+
|---|---|---|
106+
| metaSchemaUri | Uri | The meta-schema URI. |
107+
| specVersion | SpecVersion | The value of the enum to associate with the meta-schema. |
108+
109+
110+
#### Remarks
111+
112+
**WARNING** There be dragons here. Use only if you know what you're doing.
113+

_docs/api/JsonSchema.Net/title.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ bookmark: JsonSchema.Net
44
permalink: /api/JsonSchema.Net/:title/
55
folder: true
66
order: "10.01"
7-
version: "7.0.4"
7+
version: "7.1.2"
88
---

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

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ title: JsonPatch.Net
44
icon: fas fa-tag
55
order: "09.09"
66
---
7+
# [3.1.1](https://github.com/gregsdennis/json-everything/pull/759) {#release-patch-3.1.1}
8+
9+
Update to use _JsonPointer.Net_ v5.0.2.
10+
711
# [3.1.0](https://github.com/gregsdennis/json-everything/pull/719) {#release-patch-3.1.0}
812

913
Updated to use _JsonPointer.Net_ v5.0.0, which contains breaking changes ([release notes](/rn-json-pointer/#release-pointer-5.0.0)).

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

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ title: JsonPath.Net
44
icon: fas fa-tag
55
order: "09.08"
66
---
7+
# [1.1.2](https://github.com/gregsdennis/json-everything/pull/750) {#release-path-1.1.2}
8+
9+
- Improved parsing to account for a few missed scenarios involving math operations.
10+
- Greatly improved `.ToString()` to render a re-parsable path.
11+
712
# [1.1.1](https://github.com/gregsdennis/json-everything/pull/750) {#release-path-1.1.1}
813

914
[JSON Path Test Suite #83](https://github.com/jsonpath-standard/jsonpath-compliance-test-suite/pull/83) - Fixes some order of operations issues with parsing filter expressions with boolean operators.

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

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ title: JsonPointer.Net
44
icon: fas fa-tag
55
order: "09.10"
66
---
7+
# [5.0.2](https://github.com/gregsdennis/json-everything/pull/759) {#release-pointer-5.0.2}
8+
9+
Fixed a problem with `.ToString()` where pointers constructed using `JsonPointer.Create()` would not properly escape segments.
10+
11+
# [5.0.1](https://github.com/gregsdennis/json-everything/pull/757) {#release-pointer-5.0.1}
12+
13+
For some reason v5.0.0 was missing two methods: `.GetAncestor()` and `.GetLocal()`. This is a republish to include those methods.
14+
715
# [5.0.0](https://github.com/gregsdennis/json-everything/pull/719) {#release-pointer-5.0.0}
816

917
Complete overhaul of `JsonPointer` to reduce memory usage for consuming applications.

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

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ title: JsonSchema.Net
44
icon: fas fa-tag
55
order: "09.01"
66
---
7+
# [7.1.2](https://github.com/gregsdennis/json-everything/pull/759) {#release-schema-7.1.2}
8+
9+
Update to use _JsonPointer.Net_ v5.0.2.
10+
11+
# [7.1.1](https://github.com/gregsdennis/json-everything/pull/755) {#release-schema-7.1.1}
12+
13+
Added a backdoor to allow Graeae to support draft 4 schemas.
14+
15+
# [7.1.0](https://github.com/gregsdennis/json-everything/pull/752) {#release-schema-7.1.0}
16+
17+
Adds `EvaluationOptions.AllowReferencesIntoUnknownKeywords` to optionally disallow `$ref` navigation into unknown keywords.
18+
719
# [7.0.4](https://github.com/gregsdennis/json-everything/pull/746) {#release-schema-7.0.4}
820

921
`minContains` and `maxContains` annotations were still being discovered by `contains` when validating as Draft 6/7 even though `minContains` and `maxContains` are Draft 2019-90+ keywords.

0 commit comments

Comments
 (0)