Skip to content

Commit

Permalink
Remove make_schema (deprecated since 0,174.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Dec 6, 2024
1 parent 4bfe6a7 commit cdf93ad
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 678 deletions.
21 changes: 18 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,28 @@ constructed value with static storage duration if no such key already exists.

Changes to basic_json_parser:

Until 0.179.0, a buffer of text is supplied to the parser with a call to `update()`
Until 1.0.0, a buffer of text is supplied to the parser with a call to `update()`
followed by a call to `parse_some()`. Once the parser reaches the end of the buffer,
additional JSON text can be supplied to the parser with another call to `update()`,
followed by another call to `parse_some()`. See [Incremental parsing (until 0.179.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-until-01790).
followed by another call to `parse_some()`. See [Incremental parsing (until 1.0.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-until-01790).

Since 0.179, an initial buffer of text is supplied to the parse with a call to
`set_buffer`, and parsing commences with a call to `parse_some`. The parser can be
constructed with a user provided chunk reader to obtain additional JSON text
as needed. See [Incremental parsing (since 0.179.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-since-01790).
as needed. See [Incremental parsing (since 1.0.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-since-01790).

Defect fixes:

- Fixed a bug in jmespath avg function via PR #560

- Fixed a number of issues in `uri::resolve`, used in jsonschema, related to abnormal references,
particulay ones containing dots in path segments.

Removal of deprecated jsonschema classes and functions

- The jsonschema function `make_schema`, classes `json_validator` and `validation_output`,
header file `json_validator.hpp` and example `legacy_jsonschema_examples.cpp`,
deprecated in 0.174.0, have been removed.

Enhancements:

Expand All @@ -37,6 +50,8 @@ constructed with
json j{jsoncons::null_arg};
```

- Custom jmespath functions are now supported via PR #560

0.178.0
-------

Expand Down
4 changes: 2 additions & 2 deletions doc/ref/corelib/uri.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Constructs a `uri` by parsing the given string.
jsoncons::string_view host,
jsoncons::string_view port,
jsoncons::string_view path,
jsoncons::string_view query,
jsoncons::string_view fragment)
jsoncons::string_view query = "",
jsoncons::string_view fragment = "")
Constructs a `uri` from the given unescaped parts.

uri(const uri& other, uri_fragment_part_t, jsoncons::string_view fragment);
Expand Down
2 changes: 1 addition & 1 deletion doc/ref/jsonschema/jsonschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For earlier releases, please refer to [jsonschema (until 0.174.0)](https://githu
</tr>
<tr>
<td><a href="make_schema.md">make_schema</a></td>
<td>Loads a JSON Schema and returns a shared pointer to a <code>json_schema</code>. Deprecated (since 0.174.0)
<td>Loads a JSON Schema and returns a shared pointer to a <code>json_schema</code>. Deprecated since 0.174.0. Removed in 1.0.0.
</tr>

</table>
Expand Down
4 changes: 3 additions & 1 deletion doc/ref/jsonschema/make_schema.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### jsoncons::jsonschema::make_schema: deprecated (since 0.174.0)
### jsoncons::jsonschema::make_schema:
(deprecated since 0.174.0)
(removed in 1.0.0)

```cpp
#include <jsoncons_ext/jsonschema/jsonschema.hpp>
Expand Down
Loading

0 comments on commit cdf93ad

Please sign in to comment.