Commit 3a42eed7 authored by Volker Krause's avatar Volker Krause
Browse files

Add synthetic HTML body JSON-LD test case

Also needed for testing https://github.com/nextcloud/mail/pull/5533.
parent 21958cc7
Pipeline #80577 passed with stage
in 13 minutes and 55 seconds
From: Some Airline <noreply@non-existing-airline.com>
To: Test Subject <noreply@kde.org>
Subject: Your Flight Booking
Date: Tue, 14 Sep 2021 17:00:00 +0200
Message-ID: <2218054.ElGaqSPkdT@vlocalhost>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="nextPart4658656.GXAFRqVoOG"
Content-Transfer-Encoding: 7Bit
This is a multi-part message in MIME format.
--nextPart4658656.GXAFRqVoOG
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Example data taken from https://developers.google.com/gmail/markup/reference/flight-reservation[1].
--------
[1] https://developers.google.com/gmail/markup/reference/flight-reservation
--nextPart4658656.GXAFRqVoOG
Content-Transfer-Encoding: 7Bit
Content-Type: text/html; charset="us-ascii"
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"url": "http://cheapair.com/view/RXJ34P",
"underName": {
"@type": "Person",
"name": "Eva Green",
"email": "eva@mail.com"
},
"bookingAgent": {
"@type": "Organization",
"name": "Cheap Air Travel",
"url": "http://cheapair.com/"
},
"bookingTime": "2027-01-14T13:05:00-05:00",
"modifiedTime": "2027-03-14T13:05:00-05:00",
"programMembership": {
"@type": "ProgramMembership",
"memberNumber": "4BY123111",
"program": "StarAlliance"
},
"confirmReservationUrl": "http://cheapair.com/confirm?id=RXJ34P",
"cancelReservationUrl": "http://cheapair.com/cancel?id=RXJ34P",
"modifyReservationUrl": "http://cheapair.com/edit?id=RXJ34P",
"checkinUrl": "http://united.com/onlinecheckin.html",
"potentialAction": [
{
"@type": "ConfirmAction",
"target": "http://cheapair.com/confirm?id=RXJ34P"
},
{
"@type": "CancelAction",
"target": "http://cheapair.com/cancel?id=RXJ34P"
},
{
"@type": "EditAction",
"target": "http://cheapair.com/edit?id=RXJ34P"
},
{
"@type": "CheckInAction",
"target": "http://united.com/onlinecheckin.html"
}
],
"reservationFor": {
"@type": "Flight",
"flightNumber": "110",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"operatedBy": {
"@type": "Airline",
"name": "Continental Airlines",
"iataCode": "CO"
},
"departureAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"departureTime": "2027-03-04T20:15:00-08:00",
"departureGate": "11",
"departureTerminal": "B",
"arrivalAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "JFK"
},
"arrivalTime": "2027-03-05T06:30:00-05:00",
"arrivalGate": "32",
"arrivalTerminal": "B",
"webCheckinTime": "2027-03-03T20:00:00-08:00",
"boardingTime": "2027-03-04T19:15:00-08:00"
},
"ticketNumber": "123XYZ",
"ticketDownloadUrl": "http://cheapair.com/download/RXJ34P.pdf",
"ticketPrintUrl": "http://cheapair.com/print/RXJ34P.html",
"ticketToken": "qrCode:123456789",
"additionalTicketText": "Some ticket details, terms and conditions...",
"airplaneSeat": "9A",
"airplaneSeatClass": {
"@type": "AirplaneSeatClass",
"name": "Business"
},
"boardingGroup": "B"
}
</script>
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Example data taken from <a href="https://developers.google.com/gmail/markup/reference/flight-reservation">https://developers.google.com/gmail/markup/reference/flight-reservation</a>.</p>
</body>
</html>
--nextPart4658656.GXAFRqVoOG--
[
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"airplaneSeat": "9A",
"boardingGroup": "B",
"modifiedTime": "2027-03-14T13:05:00-05:00",
"potentialAction": [
{
"@type": "CancelAction",
"target": "http://cheapair.com/cancel?id=RXJ34P"
},
{
"@type": "CheckInAction",
"target": "http://united.com/onlinecheckin.html"
},
{
"@type": "DownloadAction",
"target": "http://cheapair.com/download/RXJ34P.pdf"
},
{
"@type": "UpdateAction",
"target": "http://cheapair.com/edit?id=RXJ34P"
},
{
"@type": "ViewAction",
"target": "http://cheapair.com/view/RXJ34P"
}
],
"programMembershipUsed": {
"@type": "ProgramMembership",
"membershipNumber": "4BY123111",
"programName": "StarAlliance"
},
"reservationFor": {
"@type": "Flight",
"airline": {
"@type": "Airline",
"iataCode": "UA",
"name": "United"
},
"arrivalAirport": {
"@type": "Airport",
"address": {
"@type": "PostalAddress",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 40.63970184326172,
"longitude": -73.77890014648438
},
"iataCode": "JFK",
"name": "John F. Kennedy International Airport"
},
"arrivalTerminal": "B",
"arrivalTime": {
"@type": "QDateTime",
"@value": "2027-03-05T06:30:00-05:00",
"timezone": "America/New_York"
},
"boardingTime": {
"@type": "QDateTime",
"@value": "2027-03-04T19:15:00-08:00",
"timezone": "America/Los_Angeles"
},
"departureAirport": {
"@type": "Airport",
"address": {
"@type": "PostalAddress",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 37.6161994934082,
"longitude": -122.39199829101562
},
"iataCode": "SFO",
"name": "San Francisco Airport"
},
"departureDay": "2027-03-04",
"departureGate": "11",
"departureTerminal": "B",
"departureTime": {
"@type": "QDateTime",
"@value": "2027-03-04T20:15:00-08:00",
"timezone": "America/Los_Angeles"
},
"flightNumber": "110"
},
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/ReservationConfirmed",
"reservedTicket": {
"@type": "Ticket",
"ticketToken": "qrCode:123456789"
},
"underName": {
"@type": "Person",
"email": "eva@mail.com",
"name": "Eva Green"
},
"url": "http://cheapair.com/view/RXJ34P"
}
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment