1
0
Fork 0

🍱 Imported test files from jf2.rocks validator

This commit is contained in:
Maxim Lebedev 2023-11-25 23:26:46 +06:00
parent 0b511272f7
commit 8703bf8cbe
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
12 changed files with 203 additions and 0 deletions

14
testdata/spec-ex-01.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"type": "entry",
"published": "2015-10-20T15:49:00-0700",
"url": "http://example.com/post/fsjeuu8372",
"author": {
"type": "card",
"name": "Alice",
"url": "http://alice.example.com",
"photo": "http://alice.example.com/photo.jpg"
},
"name": "Hello World",
"content": "This is a blog post",
"category": "Posts"
}

13
testdata/spec-ex-02.json vendored Normal file
View File

@ -0,0 +1,13 @@
{
"type": "entry",
"published": "2015-10-20T15:49:00-0700",
"url": "http://example.com/like/r23eugi02c",
"author": {
"type": "card",
"name": "Alice",
"url": "http://alice.example.com",
"photo": "http://alice.example.com/photo.jpg"
},
"like-of": "http://bob.example.com/post/100",
"category": ["Likes", "Posts"]
}

6
testdata/spec-ex-03.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"type": "card",
"name": "Aaron Parecki",
"photo": "http://aaronparecki.com/photo.jpg",
"url": "http://aaronparecki.com/"
}

7
testdata/spec-ex-04.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"type": "entry",
"content": {
"html": "<p>Hello World</p>",
"text": "Hello World"
}
}

17
testdata/spec-ex-05.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
"type": "entry",
"video": [
{
"content-type": "video/mp4",
"url": "sample_h264.mov"
},
{
"content-type": "video/ogg",
"url": "sample_ogg.ogg"
},
{
"content-type": "video/webm",
"url": "sample_webm.webm"
}
]
}

17
testdata/spec-ex-06.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
"type": "entry",
"video": [
{
"content-type": "video/mp4",
"url": "sample_h264.mov"
},
{
"content-type": "video/ogg",
"url": "sample_ogg.ogg"
},
{
"content-type": "video/webm",
"url": "sample_webm.webm"
}
]
}

17
testdata/spec-ex-07.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
"type": "entry",
"published": "2015-10-20T15:49:00-0700",
"url": "http://example.com/post/fsjeuu8372",
"author": "http://alice.example.com",
"name": "Hello World",
"content": "This is a blog post",
"category": "Posts",
"references": {
"http://alice.example.com": {
"type": "card",
"name": "Alice",
"url": "http://alice.example.com",
"photo": "http://alice.example.com/photo.jpg"
}
}
}

29
testdata/spec-ex-08.json vendored Normal file
View File

@ -0,0 +1,29 @@
{
"type": "entry",
"published": "2015-10-20T15:49:00-0700",
"url": "http://example.com/like/r23eugi02c",
"author": {
"type": "card",
"name": "Alice",
"url": "http://alice.example.com",
"photo": "http://alice.example.com/photo.jpg"
},
"like-of": "http://bob.example.com/post/100",
"category": ["Likes", "Posts"],
"references": {
"http://bob.example.com/post/100": {
"type": "entry",
"published": "2015-10-18T12:33:00-0700",
"url": "http://bob.example.com/post/100",
"author": "http://bob.example.com",
"name": "My First Post",
"content": "This is my first post on my new blog, I hope you like it"
},
"http://bob.example.com": {
"type": "card",
"name": "Bob",
"url": "http://bob.example.com",
"photo": "http://bob.example.com/mypicture.jpg"
}
}
}

27
testdata/spec-ex-09.json vendored Normal file
View File

@ -0,0 +1,27 @@
{
"type": "feed",
"url": "http://alice.example.com/collectionurl",
"name": "Alice's Home Page",
"author": {
"type": "card",
"name": "Alice",
"url": "http://alice.example.com",
"photo": "http://alice.example.com/photo"
},
"children": [
{
"type": "entry",
"content": {
"html": "<p>Hello World</p>",
"text": "Hello World"
}
},
{
"type": "entry",
"content": {
"html": "<p>A Second Post</p>",
"text": "A Second Post"
}
}
]
}

18
testdata/spec-ex-10.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
"children": [
{
"type": "entry",
"content": {
"html": "<p>Hello World</p>",
"text": "Hello World"
}
},
{
"type": "entry",
"content": {
"html": "<p>A Second Post</p>",
"text": "A Second Post"
}
}
]
}

16
testdata/spec-ex-13.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
"type": "entry",
"author": {
"type": "card",
"url": "http://example.com",
"name": "A. Developer"
},
"url": "http://example.com/2015/10/21",
"published": "2015-10-21T12:00:00-0700",
"name": "Hello World",
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus imperdiet ultrices pulvinar.",
"content": {
"value": "<p>Donec dapibus enim lacus, <i>a vehicula magna bibendum non</i>. Phasellus id lacinia felis, vitae pellentesque enim. Sed at quam dui. Suspendisse accumsan, est id pulvinar consequat, urna ex tincidunt enim, nec sodales lectus nulla et augue. Cras venenatis vehicula molestie. Donec sagittis elit orci, sit amet egestas ex pharetra in.</p>",
"text": "Donec dapibus enim lacus, a vehicula magna bibendum non. Phasellus id lacinia felis, vitae pellentesque enim. Sed at quam dui. Suspendisse accumsan, est id pulvinar consequat, urna ex tincidunt enim, nec sodales lectus nulla et augue. Cras venenatis vehicula molestie. Donec sagittis elit orci, sit amet egestas ex pharetra in."
}
}

22
testdata/spec-ex-14.json vendored Normal file
View File

@ -0,0 +1,22 @@
{
"type": "feed",
"url": "https://example.org/myfeed.html",
"name": "Brent Simmonss Microblog",
"author": {
"type": "card",
"name": "Brent Simmons",
"url": "http://example.org/",
"photo": "https://example.org/avatar.png"
},
"children": [
{
"type": "entry",
"uid": "https://example.org/2347259",
"url": "https://example.org/2347259",
"content": {
"text": "Cats are neat. \n\nhttps://example.org/cats"
},
"published": "2016-02-09T14:22:00-07:00"
}
]
}