Skip to content

Simplify class management and change of density value formats#59

Merged
jgarciahospital merged 1 commit intomainfrom
jgarciahospital-patch-4
Dec 19, 2024
Merged

Simplify class management and change of density value formats#59
jgarciahospital merged 1 commit intomainfrom
jgarciahospital-patch-4

Conversation

@jgarciahospital
Copy link
Collaborator

What type of PR is this?

Add one of the following kinds:

  • correction
  • enhancement/feature

What this PR does / why we need it:

Including proposal of solution for:
#56 Mapping of enum and classes in densitydata & simplify class CellPopulationDensityData
#58 Integer value format for population density values

Which issue(s) this PR fixes:

Fixes #56 #58

@jgarciahospital
Copy link
Collaborator Author

jgarciahospital commented Nov 25, 2024

@bigludo7 please for your review

Consider the change in the schemas to validate if this proposal is ok for you, compared with a alternative:

 propertyName: dataType
        mapping:
          NO_DATA: '#/components/schemas/NoDataPopulationDensityData'
          LOW_DENSITY: '#/components/schemas/LowDensityPopulationDensityData'
          DENSITY_ESTIMATION: '#/components/schemas/DensityEstimationPopulationDensityData'

Conscious that in other APIs the mapping is no so strict, e.g. https://github.com/camaraproject/DeviceLocation/blob/main/code/API_definitions/location-retrieval.yaml#L310
https://github.com/camaraproject/Commonalities/blob/main/artifacts/camara-cloudevents/event-subscription-template.yaml

@bigludo7
Copy link
Collaborator

Hello @jgarciahospital
Work for me !
Thanks

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.

Make the API more developer friendly

3 participants