Skip to content

HVD compliance: add licence links to EDR landing page and collections - #13

Open
mvisa wants to merge 3 commits into
masterfrom
feature/hvd-license-links
Open

HVD compliance: add licence links to EDR landing page and collections#13
mvisa wants to merge 3 commits into
masterfrom
feature/hvd-license-links

Conversation

@mvisa

@mvisa mvisa commented Apr 23, 2026

Copy link
Copy Markdown

Summary

  • Extends ProducerLicenses type to support multiple licence links per producer
  • Updates parse_license_links() to return a JSON array of all licence links
  • Built-in default now emits two rel: license links on every response: FMI Open Data Licence and CC BY 4.0

Background

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: license links in the links array for this purpose.

JIRA: https://jira.fmi.fi/browse/PAK-3132

Affected endpoints

  • GET /collections (landing page)
  • GET /collections/{collectionId}
  • GET /collections/{collectionId}/instances

Test plan

  • Verify landing page response contains two rel: license links
  • Verify /collections/{collectionId} response contains two rel: license links
  • Verify existing config-file licence overrides still work (single licence wraps into a one-element vector)

🤖 Generated with Claude Code

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
mvisa force-pushed the feature/hvd-license-links branch from 4e172d1 to 5d0d882 Compare April 24, 2026 07:42
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
mvisa force-pushed the feature/hvd-license-links branch from 5d0d882 to 2de99fe Compare April 24, 2026 09:12
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>
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