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

DM-45138: Switch to vo-models where possible for UWS #208

Merged
merged 1 commit into from
Jul 13, 2024
Merged

Conversation

rra
Copy link
Member

@rra rra commented Jul 13, 2024

vo-models provides pydantic-xml models for, among other things, UWS. This supports serialization to XML without requiring a separate templating implementation. Use these models for UWS handler output where possible and remove the corresponding templates.

This as yet doesn't support the handlers that return the full job and the parameters, since the cutout parameters are multivalued and this currently apparently cannot be modeled by vo-models.

The corresponding tests now test equality of the pydantic-xml models instead of the XML text, but continue to use the XML from previous tests to compare against.

vo-models provides pydantic-xml models for, among other things, UWS.
This supports serialization to XML without requiring a separate
templating implementation. Use these models for UWS handler output
where possible and remove the corresponding templates.

This as yet doesn't support the handlers that return the full job and
the parameters, since the cutout parameters are multivalued and this
currently apparently cannot be modeled by vo-models.

The corresponding tests now test equality of the pydantic-xml models
instead of the XML text, but continue to use the XML from previous
tests to compare against.
@rra rra merged commit 9b7ba65 into main Jul 13, 2024
3 checks passed
@rra rra deleted the tickets/DM-45138 branch July 13, 2024 01:09
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.

1 participant