Skip to content

vppapigen: Fix parsing of paths for case of single array#266

Merged
VladoLavor merged 2 commits intomasterfrom
fix-binapigen
Mar 4, 2025
Merged

vppapigen: Fix parsing of paths for case of single array#266
VladoLavor merged 2 commits intomasterfrom
fix-binapigen

Conversation

@ondrej-fabry
Copy link
Copy Markdown
Member

This fixes panic that occurs when paths is defined as:

  "paths": [
    {
      "path": "/PATH",
      "counter": "COUNTER"
    }
  ]

instead of:

 "paths": [
    [
      {
        "path": "/PATH",
        "counter": "COUNTER"
      }
    ]
  ]

Signed-off-by: Ondrej Fabry <ondrej@fabry.dev>
@ondrej-fabry
Copy link
Copy Markdown
Member Author

@VladoLavor could you have alook?

@VladoLavor VladoLavor merged commit 9c3f9c1 into master Mar 4, 2025
@VladoLavor VladoLavor deleted the fix-binapigen branch March 4, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants