From 19c0baf069d3e967c6ecbef45f702601a39e6c59 Mon Sep 17 00:00:00 2001 From: Vasily Kulikov Date: Thu, 6 Jan 2022 19:06:51 +0300 Subject: [PATCH] OpenAPI: make only one tag entry when the state stack is matched The original code tried matching even after making a tag for a token. This change is derrived from #3258. The original commit is so large. @masatake splited the commit smaller per-topic ones. @masatake wrote this commit log. --- parsers/openapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parsers/openapi.c b/parsers/openapi.c index ffadd2c7b8..fe5b4cd9bc 100644 --- a/parsers/openapi.c +++ b/parsers/openapi.c @@ -249,6 +249,7 @@ static void handleKey(struct sOpenAPISubparser *openapi, attachYamlPosition (&tag, token, false); makeTagEntry (&tag); + break; } } }