Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEPENDENCIES
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02
uwebsockets https://github.com/uNetworking/uWebSockets v20.78.0
core https://github.com/sourcemeta/core 5d187a796444fef1b5e044c659800085a4be7ef4
blaze https://github.com/sourcemeta/blaze 47ecf3c751d9e0e101e99567fa1d778d56e42432
blaze https://github.com/sourcemeta/blaze 9ca83f191a263eef070fdfc0ecb3e6ab974a4747
bootstrap https://github.com/twbs/bootstrap v5.3.3
bootstrap-icons https://github.com/twbs/icons v1.11.3
collections/sourcemeta/std/v0 https://github.com/sourcemeta/std v0.4.0
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@playwright/test": "^1.55.1",
"@sourcemeta/jsonschema": "^15.5.0",
"@sourcemeta/jsonschema": "^15.8.0",
"jsdom": "^26.0.0"
}
}
12 changes: 6 additions & 6 deletions src/configuration/schema/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"minimum": 0
},
"baseUri": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "uri-reference"
},
"defaultDialect": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "uri"
},
"email": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "email"
},
Expand All @@ -56,17 +56,17 @@
"resolve": {
"type": "object",
"propertyNames": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"format": "uri-reference"
},
"additionalProperties": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "uri-reference"
}
},
"website": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "uri"
},
Expand Down
4 changes: 2 additions & 2 deletions src/configuration/schema/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"type": "string"
},
"url": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "uri"
}
Expand All @@ -61,7 +61,7 @@
"additionalProperties": false
},
"url": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "uri"
}
Expand Down
4 changes: 2 additions & 2 deletions src/configuration/schema/page.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"$ref": "./contents.json"
},
"email": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "email"
},
"github": {
"type": "string"
},
"website": {
"$comment": "TODO: Use Format Assertion when supported on Blaze",
"x-format-assertion": true,
"type": "string",
"format": "uri"
}
Expand Down
161 changes: 161 additions & 0 deletions test/unit/configuration/configuration.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,167 @@
"url": "http://localhost:8000",
"api": false
}
},
{
"description": "Top-level url that is not an absolute URI is invalid",
"valid": false,
"data": {
"url": "relative/path"
}
},
{
"description": "html.action.url that is not an absolute URI is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"html": {
"name": "Title",
"description": "Description",
"action": {
"title": "Docs",
"icon": "book",
"url": "relative/path"
}
},
"contents": {
"test": {
"title": "A sample schema folder",
"description": "For testing purposes",
"github": "sourcemeta/one"
}
}
}
},
{
"description": "Collection baseUri that is not a URI reference is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"baseUri": "://bad",
"path": "./schemas/example"
}
}
}
},
{
"description": "Collection defaultDialect that is not an absolute URI is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"baseUri": "https://example.com/extension",
"path": "./schemas/example/extension",
"defaultDialect": "relative/path"
}
}
}
},
{
"description": "Collection email that is not an email address is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"email": "not-an-email",
"baseUri": "https://example.com/extension",
"path": "./schemas/example/extension"
}
}
}
},
{
"description": "Collection website that is not an absolute URI is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"website": "relative/path",
"baseUri": "https://example.com/extension",
"path": "./schemas/example/extension"
}
}
}
},
{
"description": "Collection resolve key that is not a URI reference is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"baseUri": "https://example.com/extension",
"path": "./schemas/example/extension",
"resolve": {
"://bad": "/foo.json"
}
}
}
}
},
{
"description": "Collection resolve value that is not a URI reference is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"baseUri": "https://example.com/extension",
"path": "./schemas/example/extension",
"resolve": {
"https://other.com/single.json": "://bad"
}
}
}
}
},
{
"description": "Page email that is not an email address is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"email": "not-an-email",
"contents": {
"test": {
"title": "A sample schema folder",
"description": "For testing purposes"
}
}
}
}
}
},
{
"description": "Page website that is not an absolute URI is invalid",
"valid": false,
"data": {
"url": "http://localhost:8000",
"contents": {
"example": {
"title": "Test",
"website": "relative/path",
"contents": {
"test": {
"title": "A sample schema folder",
"description": "For testing purposes"
}
}
}
}
}
}
]
}
4 changes: 4 additions & 0 deletions vendor/blaze/ports/javascript/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions vendor/blaze/src/compiler/default_compiler_draft3.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading