Closed shinjigi closed 3 days ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 49.03%. Comparing base (
dc04d18
) to head (a5004f8
). Report is 761 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
What
This PR introduces several improvements to the API documentation and schema organization:
New Schema File for Country Codes
country-code.yaml
file to centralize country code definitionsCountryCode
enum with all supported country codesCountryValues
schema to standardize country-to-number mappingsProduct Ecoscore Schema Improvements
CountryValues
schematransportation_score
)Packaging Schema Enhancements
number_of_units
quantity_per_unit
and related fieldsrecycling
weight_measured
Agribalyse Schema Updates
agribalyse_proxy_food_code
fieldagribalyse_food_code
fieldco2_agriculture
fieldThe changes improve code organization, reduce duplication, and enhance compatibility with OpenAPI code generators while maintaining backward compatibility with existing data structures.
Related issue(s) and discussion
This refactoring improves schema maintainability and provides better type safety through proper enum definitions and standardized patterns for country-specific data.