Skip to content

handle in path params#5

Open
DIDONAX wants to merge 5 commits into
triptix-tech:masterfrom
DIDONAX:handle-in-path-params
Open

handle in path params#5
DIDONAX wants to merge 5 commits into
triptix-tech:masterfrom
DIDONAX:handle-in-path-params

Conversation

@DIDONAX

@DIDONAX DIDONAX commented May 25, 2026

Copy link
Copy Markdown

Comment thread include/openapi/gen_types.h Outdated
Comment thread test/parameter_test.cc Outdated
Comment thread include/openapi/parse.h Outdated
Comment thread src/gen_types.cc Outdated
if (sv.ends_with('}')) {
sv.remove_suffix(1);
}
seg_idx.emplace(sv, i - 1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 - 1 underflows?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

Comment thread src/gen_types.cc Outdated
Comment thread src/gen_types.cc Outdated
Comment on lines +443 to +444
auto const in_path =
p["in"].IsDefined() && p["in"].as<std::string_view>() == "path";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't repeat yourself - write a utility function

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

@DIDONAX
DIDONAX requested a review from felixguendling June 4, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants