HVD compliance: add licence links to EDR landing page and collections - #13
Open
mvisa wants to merge 3 commits into
Open
HVD compliance: add licence links to EDR landing page and collections#13mvisa wants to merge 3 commits into
mvisa wants to merge 3 commits into
Conversation
Extends ProducerLicenses to hold multiple licence entries per producer
and updates parse_license_links() to emit them all as JSON link objects.
The built-in default now includes both the FMI open data licence and
CC BY 4.0, satisfying HVD regulation (EU) 2023/138 Article 4.
Affected endpoints:
- GET /collections (landing page)
- GET /collections/{collectionId}
- GET /collections/{collectionId}/instances
JIRA: https://jira.fmi.fi/browse/PAK-3132
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mvisa
force-pushed
the
feature/hvd-license-links
branch
from
April 24, 2026 07:42
4e172d1 to
5d0d882
Compare
Renames parse_license_link() to parse_license_links() which now returns
a JSON array. The FMI open data licence is used as the configured default;
the CC BY 4.0 link is always appended as required by HVD regulation (EU)
2023/138 Article 4.
Affected endpoints:
- GET /collections (landing page)
- GET /collections/{collectionId}
- GET /collections/{collectionId}/instances
JIRA: https://jira.fmi.fi/browse/PAK-3132
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mvisa
force-pushed
the
feature/hvd-license-links
branch
from
April 24, 2026 09:12
5d0d882 to
2de99fe
Compare
Replace the default CC BY 4.0 licence link with the FMI Open Data Licence URL in EDR collection and landing page responses, satisfying EU HVD regulation (EU) 2023/138 Article 4 machine-readable licence requirement. https://jira.fmi.fi/browse/PAK-3132 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ProducerLicensestype to support multiple licence links per producerparse_license_links()to return a JSON array of all licence linksrel: licenselinks on every response: FMI Open Data Licence and CC BY 4.0Background
HVD regulation (EU) 2023/138 Article 4 requires terms of use to be available in machine-readable form, and specifically requires compatibility with CC0 or CC BY 4.0. OGC API EDR specifies
rel: licenselinks in thelinksarray for this purpose.JIRA: https://jira.fmi.fi/browse/PAK-3132
Affected endpoints
GET /collections(landing page)GET /collections/{collectionId}GET /collections/{collectionId}/instancesTest plan
rel: licenselinks/collections/{collectionId}response contains tworel: licenselinks🤖 Generated with Claude Code