diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-11-19 10:32:31 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-11-19 10:32:31 +0100 |
commit | f4edcbe7f4739d6f82a2e1bb180960b003b30862 (patch) | |
tree | a862184eb172a88050f101776f55b58546529930 /src/test/example_content | |
parent | 5200c39fca2d870b07c18b395619937b54d9d116 (diff) | |
download | haketilo-hydrilla-f4edcbe7f4739d6f82a2e1bb180960b003b30862.tar.gz haketilo-hydrilla-f4edcbe7f4739d6f82a2e1bb180960b003b30862.zip |
fill served definitions with computed sha256 sums of files
Diffstat (limited to 'src/test/example_content')
-rw-r--r-- | src/test/example_content/hello/index.json | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/test/example_content/hello/index.json b/src/test/example_content/hello/index.json index 12105c2..16843cb 100644 --- a/src/test/example_content/hello/index.json +++ b/src/test/example_content/hello/index.json @@ -150,8 +150,9 @@ // Array of javascript files that belong to this resource. "scripts": [ { - // Script name. It should also be a valid file path. - "name": "hello.js", + // Script name. It should also be a valid file path relative + // to index.json's containing directory. + "file": "hello.js", // Copyright and license info of a script file can be // specified using the same format as in the case of the // index.json file itself. If "copyright" or "license" is @@ -160,7 +161,7 @@ "copyright": "auto", "licenses": "auto" }, { - "name": "bye.js" + "file": "bye.js" } ] }, { @@ -175,7 +176,7 @@ "licenses": "CC0-1.0", // If "dependencies" is empty, it can also be omitted. // "dependencies": [], - "scripts": [{"name": "message.js"}] + "scripts": [{"file": "message.js"}] }, { "type": "mapping", @@ -262,14 +263,16 @@ // // "comment": "Expat license is the most common form of the license often called \"MIT\". Many other forms of \"MIT\" license exist. Here the name \"Expat\" is used to avoid ambiguity." - // If applicable, a "notice" can be included. It shall then be a - // path (relative to index.json) to a plain text file with that - // notice. + // If applicable, a "notice" can be included. It shall then be an + // object with "file" field containing a path (relative to + // index.json's directory) to a plain text file with that notice. // - // "notice": "license-notice.txt" + // "notice": { + // "file": "license-notice.txt" + // } // // This is needed for example in case of GNU licenses (both with and - // without exceptions). For example, + // without exceptions). For instance, // "GPL-3.0-or-later-with-html-exception" could have the following // in its notice file: // |