File: json_schema.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 880 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
### jsoncons::jsonschema::json_schema

```cpp
#include <jsoncons_ext/jsonschema/jsonschema.hpp>

template <typename Json>
class json_schema
```

A `json_schema` represents the compiled form of a JSON Schema document.
A `json_schema` is immutable and thread-safe.

The class satisfies the requirements of MoveConstructible and MoveAssignable, but not CopyConstructible or CopyAssignable.

#### Member functions

<table border="0">
  <tr>
    <td><a href="json_schema/is_valid.md">is_valid</a></td>
    <td>Validates input JSON against a JSON Schema and returns false upon the first schema violation</td> 
  </tr>
  <tr>
    <td><a href="json_schema/validate.md">validate</a></td>
    <td>Validates input JSON against a JSON Schema.</td> 
  </tr>
  <tr>
    <td><a href="json_schema/walk.md">walk</a> (since 0.175.0)</td>
    <td>Walks through a JSON Schema.</td> 
  </tr>
</table>