Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RELEASE_TYPE: patch

Internal refactor.
3 changes: 2 additions & 1 deletion include/hegel/generators/combinators.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ namespace hegel::generators {

hegel::internal::json::json generators =
hegel::internal::json::json::array();
generators.push_back(hegel::internal::json::json{{"type", "null"}});
generators.push_back(hegel::internal::json::json{
{"type", "constant"}, {"value", nullptr}});
generators.push_back(basic->schema);
hegel::internal::json::json schema = {{"type", "one_of"},
{"generators", generators}};
Expand Down
12 changes: 6 additions & 6 deletions nix/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
hegel.url = "git+https://github.com/hegeldev/hegel-core?dir=nix&ref=refs/tags/v0.5.0";
hegel.url = "git+https://github.com/hegeldev/hegel-core?dir=nix&ref=refs/tags/v0.6.0";
};

outputs =
Expand Down
4 changes: 2 additions & 2 deletions src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
using hegel::internal::json::ImplUtil;

namespace hegel::impl {
static constexpr const char* MIN_PROTOCOL_VERSION = "0.11";
static constexpr const char* MAX_PROTOCOL_VERSION = "0.11";
static constexpr const char* MIN_PROTOCOL_VERSION = "0.12";
static constexpr const char* MAX_PROTOCOL_VERSION = "0.12";
static constexpr const char* HANDSHAKE_STRING = "hegel_handshake_start";

Connection::Connection(int read_fd, int write_fd)
Expand Down
2 changes: 1 addition & 1 deletion src/generators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ namespace hegel::generators {
std::optional<BasicGenerator<std::string>>
as_basic() const override {
return BasicGenerator<std::string>{
{{"type", version_ == 4 ? "ipv4" : "ipv6"}},
{{"type", "ip_address"}, {"version", version_}},
&default_parse_raw<std::string>};
}

Expand Down
2 changes: 1 addition & 1 deletion src/installer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace hegel::impl {

/// hegel-core version that this library is built against. Kept in sync
/// with the Rust library's `HEGEL_SERVER_VERSION`.
constexpr const char* HEGEL_SERVER_VERSION = "0.5.0";
constexpr const char* HEGEL_SERVER_VERSION = "0.6.0";

/// Returns the argv prefix used to invoke the hegel server.
///
Expand Down
Loading