Skip to content

Commit 59f13b0

Browse files
authored
Simplify configuration schemas (#852)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 961280c commit 59f13b0

110 files changed

Lines changed: 3548 additions & 5925 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

collections/self/v1/schemas/configuration/collection.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"type": "boolean"
2626
},
2727
"x-sourcemeta-one:path": {
28-
"$ref": "./path.json"
28+
"type": "string"
2929
},
3030
"baseUri": {
3131
"$comment": "TODO: Use Format Assertion when supported on Blaze",
@@ -46,7 +46,7 @@
4646
"type": "string"
4747
},
4848
"path": {
49-
"$ref": "./path.json"
49+
"type": "string"
5050
},
5151
"resolve": {
5252
"type": "object",
@@ -71,7 +71,7 @@
7171
"rules": {
7272
"type": "array",
7373
"items": {
74-
"$ref": "./path.json"
74+
"type": "string"
7575
}
7676
}
7777
},
@@ -80,7 +80,7 @@
8080
"ignore": {
8181
"type": "array",
8282
"items": {
83-
"$ref": "./path.json"
83+
"type": "string"
8484
}
8585
}
8686
},

collections/self/v1/schemas/configuration/configuration.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
"required": [ "url" ],
1212
"properties": {
1313
"extends": {
14-
"$ref": "./extends.json"
14+
"type": "array",
15+
"minItems": 1,
16+
"items": {
17+
"type": "string"
18+
}
1519
},
1620
"contents": {
1721
"$ref": "./contents.json"

collections/self/v1/schemas/configuration/contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"required": [ "include" ],
1818
"properties": {
1919
"include": {
20-
"$ref": "./path.json"
20+
"type": "string"
2121
}
2222
},
2323
"additionalProperties": false

collections/self/v1/schemas/configuration/extends.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

collections/self/v1/schemas/configuration/path.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

enterprise/e2e/html/hurl/list.hurl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ header "Last-Modified" exists
1212
jsonpath "$.path" == "/"
1313
jsonpath "$.url" == "{{base}}"
1414
jsonpath "$.breadcrumb" count == 0
15-
jsonpath "$.schemas" == 20
15+
jsonpath "$.schemas" == 18
1616
jsonpath "$.entries" count == 2
1717
jsonpath "$.entries[0].name" == "self"
1818
jsonpath "$.entries[0].title" == "Self"
1919
jsonpath "$.entries[0].description" == "The schemas that define the current version of this instance"
2020
jsonpath "$.entries[0].type" == "directory"
2121
jsonpath "$.entries[0].health" == 100
22-
jsonpath "$.entries[0].schemas" == 19
22+
jsonpath "$.entries[0].schemas" == 17
2323
jsonpath "$.entries[0].path" == "/self/"
2424
jsonpath "$.entries[1].name" == "test"
2525
jsonpath "$.entries[1].type" == "directory"

src/configuration/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/template.h"
1313
"${ONE_SCHEMAS}/configuration/configuration.json"
1414
"${ONE_SCHEMAS}/configuration/collection.json"
1515
"${ONE_SCHEMAS}/configuration/contents.json"
16-
"${ONE_SCHEMAS}/configuration/extends.json"
17-
"${ONE_SCHEMAS}/configuration/page.json"
18-
"${ONE_SCHEMAS}/configuration/path.json")
16+
"${ONE_SCHEMAS}/configuration/page.json")
1917

2018
target_include_directories(sourcemeta_one_configuration PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
2119

test/cli/index/common/camelcase-filename.sh

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,9 @@ cat << 'EOF' > "$TMP/expected.txt"
146146
./explorer/self/v1/schemas/configuration/contents
147147
./explorer/self/v1/schemas/configuration/contents/%
148148
./explorer/self/v1/schemas/configuration/contents/%/schema.metapack
149-
./explorer/self/v1/schemas/configuration/extends
150-
./explorer/self/v1/schemas/configuration/extends/%
151-
./explorer/self/v1/schemas/configuration/extends/%/schema.metapack
152149
./explorer/self/v1/schemas/configuration/page
153150
./explorer/self/v1/schemas/configuration/page/%
154151
./explorer/self/v1/schemas/configuration/page/%/schema.metapack
155-
./explorer/self/v1/schemas/configuration/path
156-
./explorer/self/v1/schemas/configuration/path/%
157-
./explorer/self/v1/schemas/configuration/path/%/schema.metapack
158152
./routes.bin
159153
./schemas
160154
./schemas/example
@@ -396,19 +390,6 @@ cat << 'EOF' > "$TMP/expected.txt"
396390
./schemas/self/v1/schemas/configuration/contents/%/positions.metapack
397391
./schemas/self/v1/schemas/configuration/contents/%/schema.metapack
398392
./schemas/self/v1/schemas/configuration/contents/%/stats.metapack
399-
./schemas/self/v1/schemas/configuration/extends
400-
./schemas/self/v1/schemas/configuration/extends/%
401-
./schemas/self/v1/schemas/configuration/extends/%/blaze-exhaustive.metapack
402-
./schemas/self/v1/schemas/configuration/extends/%/blaze-fast.metapack
403-
./schemas/self/v1/schemas/configuration/extends/%/bundle.metapack
404-
./schemas/self/v1/schemas/configuration/extends/%/dependencies.metapack
405-
./schemas/self/v1/schemas/configuration/extends/%/dependents.metapack
406-
./schemas/self/v1/schemas/configuration/extends/%/editor.metapack
407-
./schemas/self/v1/schemas/configuration/extends/%/health.metapack
408-
./schemas/self/v1/schemas/configuration/extends/%/locations.metapack
409-
./schemas/self/v1/schemas/configuration/extends/%/positions.metapack
410-
./schemas/self/v1/schemas/configuration/extends/%/schema.metapack
411-
./schemas/self/v1/schemas/configuration/extends/%/stats.metapack
412393
./schemas/self/v1/schemas/configuration/page
413394
./schemas/self/v1/schemas/configuration/page/%
414395
./schemas/self/v1/schemas/configuration/page/%/blaze-exhaustive.metapack
@@ -422,19 +403,6 @@ cat << 'EOF' > "$TMP/expected.txt"
422403
./schemas/self/v1/schemas/configuration/page/%/positions.metapack
423404
./schemas/self/v1/schemas/configuration/page/%/schema.metapack
424405
./schemas/self/v1/schemas/configuration/page/%/stats.metapack
425-
./schemas/self/v1/schemas/configuration/path
426-
./schemas/self/v1/schemas/configuration/path/%
427-
./schemas/self/v1/schemas/configuration/path/%/blaze-exhaustive.metapack
428-
./schemas/self/v1/schemas/configuration/path/%/blaze-fast.metapack
429-
./schemas/self/v1/schemas/configuration/path/%/bundle.metapack
430-
./schemas/self/v1/schemas/configuration/path/%/dependencies.metapack
431-
./schemas/self/v1/schemas/configuration/path/%/dependents.metapack
432-
./schemas/self/v1/schemas/configuration/path/%/editor.metapack
433-
./schemas/self/v1/schemas/configuration/path/%/health.metapack
434-
./schemas/self/v1/schemas/configuration/path/%/locations.metapack
435-
./schemas/self/v1/schemas/configuration/path/%/positions.metapack
436-
./schemas/self/v1/schemas/configuration/path/%/schema.metapack
437-
./schemas/self/v1/schemas/configuration/path/%/stats.metapack
438406
./state.bin
439407
./version.json
440408
EOF

0 commit comments

Comments
 (0)