Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 3, 2025

Problem

The JSON-LD Course schema was failing validation with 2 critical errors:

  • Missing required offers field
  • Missing required hasCourseInstance field

This was causing schema.org validation failures for the course structured data, potentially impacting SEO and search engine understanding of the educational content.

Solution

Added the missing required fields to the Course JSON-LD schema in astro.config.mjs:

Added offers field

"offers": {
  "@type": "Offer",
  "price": "0",
  "priceCurrency": "EUR", 
  "availability": "https://schema.org/InStock",
  "url": "https://t128n.github.io/open-fidup"
}

Added hasCourseInstance field

"hasCourseInstance": {
  "@type": "CourseInstance",
  "courseMode": "online",
  "courseWorkload": "PT12H",
  "instructor": {
    "@type": "Person",
    "name": "Torben Haack"
  }
}

Validation

  • ✅ Project builds successfully
  • ✅ TypeScript type checking passes (0 errors)
  • ✅ Generated HTML contains valid JSON-LD with both required fields
  • ✅ Schema correctly reflects that this is a free online course

The changes are minimal and surgical - only 16 lines added to fix the specific schema validation issues while maintaining all existing functionality.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/t128n/open-fidup/contributors
    • Triggering command: node /home/REDACTED/work/open-fidup/open-fidup/node_modules/.bin/astro build (http block)
  • telemetry.astro.build
    • Triggering command: node /home/REDACTED/work/open-fidup/open-fidup/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…nce fields

Co-authored-by: t128n <53407297+t128n@users.noreply.github.com>
Copilot AI changed the title [WIP] There is an error in the json+ld: ~~~ Erkannte Elemente error Fachinformatiker:in für Daten- und Prozessanalyse AP2 Vorbereitung 2 kritische Probleme  Feld "offers" fehlt Feld "hasCourseInstance" fehlt type Course name Fachinformatiker:in für Dat... Fix JSON-LD Course schema validation by adding missing offers and hasCourseInstance fields Sep 3, 2025
Copilot AI requested a review from t128n September 3, 2025 04:59
Copy link
Owner

@t128n t128n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@t128n t128n marked this pull request as ready for review September 3, 2025 05:15
@t128n t128n merged commit c178ad6 into main Sep 3, 2025
1 of 2 checks passed
@t128n t128n deleted the copilot/fix-e0b5d0b8-3601-46aa-bcec-ec7a8c6e95a1 branch October 23, 2025 16:31
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.

2 participants