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

Fixing pydantic validation issue of tilejson metadata #1419

Closed
wants to merge 2 commits into from

Conversation

doublebyte1
Copy link
Contributor

Overview

The tileset metadata endpoint for tilejson metadata is no longer working.

Related Issue / Discussion

#1418

Additional Information

When instantiating the model, pydantic requires all the fields to be present (even, if they are optional). As a workaround, we are adding the fields before instantiating the model, instead of after (as we were doing before).

Contributions and Licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution.
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

doublebyte1 added 2 commits December 7, 2023 11:12
- removed optional attribution field from MVTilejson model
- replaced deprecated dict method by model_dump
@doublebyte1
Copy link
Contributor Author

@ricardogsilva @PascalLike any thoughts?

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