Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect JSON array in addition to JSON objects when including a file in the config. #6307

Merged

Conversation

miklcct
Copy link
Contributor

@miklcct miklcct commented Dec 5, 2024

Summary

This detects [] in addition to {} when including JSON in config files.

Issue

Fixes #6305

Unit tests

Added for JSON array in addition for JSON object

Documentation

Updated

Changelog

Bumping the serialization version id

Not needed

@miklcct miklcct requested a review from a team as a code owner December 5, 2024 15:43
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.81%. Comparing base (20696c1) to head (e5f1f2f).
Report is 74 commits behind head on dev-2.x.

Files with missing lines Patch % Lines
...ne/config/framework/file/IncludeFileDirective.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6307      +/-   ##
=============================================
+ Coverage      69.79%   69.81%   +0.01%     
- Complexity     17798    17824      +26     
=============================================
  Files           2019     2019              
  Lines          76126    76244     +118     
  Branches        7786     7802      +16     
=============================================
+ Hits           53132    53228      +96     
- Misses         20288    20302      +14     
- Partials        2706     2714       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@leonardehrenfried leonardehrenfried left a comment

Choose a reason for hiding this comment

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

I have a small request, but otherwise this looks good.

@leonardehrenfried leonardehrenfried merged commit 7329a95 into opentripplanner:dev-2.x Dec 12, 2024
5 checks passed
t2gran pushed a commit that referenced this pull request Dec 12, 2024
@miklcct miklcct deleted the include-file-json-array branch December 17, 2024 17:18
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.

JSON config include should also include array in addition to object
3 participants