diff --git a/src/commit_request.cpp b/src/commit_request.cpp index bef08aa..268a8d3 100644 --- a/src/commit_request.cpp +++ b/src/commit_request.cpp @@ -104,7 +104,7 @@ void CommitRequest::on_end_object(void *userdata) { } ParseState current_state = ctx.current_state; - + // Handle state transitions on object end if (current_state == ParseState::PreconditionObject) { ctx.current_state = ParseState::PreconditionsArray; @@ -244,7 +244,7 @@ void CommitRequest::on_end_array(void *userdata) { } // Transition back to Root state when arrays end - if (ctx.current_state == ParseState::PreconditionsArray || + if (ctx.current_state == ParseState::PreconditionsArray || ctx.current_state == ParseState::OperationsArray) { ctx.current_state = ParseState::Root; } diff --git a/src/commit_request.hpp b/src/commit_request.hpp index 83a1712..629c3be 100644 --- a/src/commit_request.hpp +++ b/src/commit_request.hpp @@ -99,8 +99,7 @@ public: // Constructor to initialize arena-allocated containers explicit ParserContext() - : - current_key(ArenaStlAllocator(&arena)), + : current_key(ArenaStlAllocator(&arena)), current_string(ArenaStlAllocator(&arena)), current_number(ArenaStlAllocator(&arena)), precondition_type(ArenaStlAllocator(&arena)),