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

schemas: allow extensions to be specified but None #9976

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

Khoyo
Copy link
Contributor

@Khoyo Khoyo commented Dec 6, 2024

Editoast serialize all extensions, even when not present. The pydantic validation should thus allow None

@Khoyo Khoyo requested a review from a team as a code owner December 6, 2024 07:37
@github-actions github-actions bot added the area:railjson Work on Proposed Unified Rail Assets Data Exchange Format label Dec 6, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.87%. Comparing base (eec04ff) to head (0237cc7).
Report is 1 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9976      +/-   ##
==========================================
- Coverage   79.88%   79.87%   -0.02%     
==========================================
  Files        1048     1048              
  Lines      105232   105232              
  Branches      756      756              
==========================================
- Hits        84063    84049      -14     
- Misses      21128    21142      +14     
  Partials       41       41              
Flag Coverage Δ
editoast 73.41% <ø> (-0.05%) ⬇️
front 89.35% <ø> (ø)
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 87.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Editoast serialize *all* extensions, even when not present. The pydantic
validation should thus allow None

Signed-off-by: Younes Khoudli <younes.khoudli@epita.fr>
@Khoyo Khoyo force-pushed the yk/schemas-allow-none-extensions branch from cb2a1f9 to 0237cc7 Compare December 6, 2024 07:40
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 6, 2024
@Khoyo Khoyo added this pull request to the merge queue Dec 6, 2024
Merged via the queue into dev with commit 95d3c07 Dec 6, 2024
27 checks passed
@Khoyo Khoyo deleted the yk/schemas-allow-none-extensions branch December 6, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules area:railjson Work on Proposed Unified Rail Assets Data Exchange Format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants