diff --git a/src/api/json/catalog.json b/src/api/json/catalog.json index fa0d742c788..6f6f9f5756e 100644 --- a/src/api/json/catalog.json +++ b/src/api/json/catalog.json @@ -4997,6 +4997,12 @@ "fileMatch": ["railway.toml", "railway.json"], "url": "https://railway.com/railway.schema.json" }, + { + "name": "Railpack", + "description": "Configuration file for Railpack deployment tool", + "fileMatch": ["railpack.json"], + "url": "https://schema.railpack.com" + }, { "name": "Rattler-build", "description": "Rattler-build recipe", diff --git a/src/negative_test/specmatic/wrong-stub-strict-mode-type.json b/src/negative_test/specmatic/wrong-stub-strict-mode-type.json new file mode 100644 index 00000000000..f9e63b75ed5 --- /dev/null +++ b/src/negative_test/specmatic/wrong-stub-strict-mode-type.json @@ -0,0 +1,7 @@ +{ + "contracts": [], + "stub": { + "strictMode": "enabled" + }, + "version": 2 +} diff --git a/src/negative_test/specmatic/wrong-test-strict-mode-type.json b/src/negative_test/specmatic/wrong-test-strict-mode-type.json new file mode 100644 index 00000000000..6dba7a884d2 --- /dev/null +++ b/src/negative_test/specmatic/wrong-test-strict-mode-type.json @@ -0,0 +1,7 @@ +{ + "contracts": [], + "test": { + "strictMode": "enabled" + }, + "version": 2 +} diff --git a/src/schemas/json/specmatic.json b/src/schemas/json/specmatic.json index 774ee0f9dfa..26ad799096c 100644 --- a/src/schemas/json/specmatic.json +++ b/src/schemas/json/specmatic.json @@ -458,6 +458,10 @@ "timeoutInMilliseconds": { "type": ["integer", "null"], "description": "Test timeout in milliseconds" + }, + "strictMode": { + "type": ["boolean", "null"], + "description": "Whether to enable strict mode for contract testing" } } }, @@ -501,6 +505,10 @@ "hotReload": { "type": ["string", "null"], "description": "Hot reload configuration" + }, + "strictMode": { + "type": ["boolean", "null"], + "description": "Whether to enable strict mode for stubbing" } } }, diff --git a/src/test/specmatic/specmatic.json b/src/test/specmatic/specmatic.json index 592a0de3172..b2d9b3948c1 100644 --- a/src/test/specmatic/specmatic.json +++ b/src/test/specmatic/specmatic.json @@ -140,13 +140,15 @@ "generative": true, "hotReload": "enabled", "includeMandatoryAndRequestedKeysInResponse": true, - "startTimeoutInMilliseconds": 10000 + "startTimeoutInMilliseconds": 10000, + "strictMode": true }, "test": { "allowExtensibleSchema": false, "resiliencyTests": { "enable": "all" }, + "strictMode": false, "timeoutInMilliseconds": 30000, "validateResponseValues": true },