diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-02715dce83cb47ce59487abe573222f7.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-02715dce83cb47ce59487abe573222f7.json index 5c7a8043..069359ef 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-02715dce83cb47ce59487abe573222f7.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-02715dce83cb47ce59487abe573222f7.json @@ -79,7 +79,7 @@ "processors": [ { "json_schema": { - "schema": "{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"minLength\": 5\n },\n \"age\": {\n \"type\": \"integer\",\n \"minimum\": 19\n }\n },\n \"required\": [\"name\", \"age\"],\n \"additionalProperties\": false\n\n}\n" + "schema": "{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"age\": {\n \"type\": \"integer\",\n \"minimum\": 0\n }\n },\n \"required\": [\"name\", \"age\"]\n}\n" } }, { diff --git a/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-2.sh b/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-2.sh index 30db2b9d..711da7d7 100755 --- a/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-2.sh +++ b/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-2.sh @@ -3,4 +3,4 @@ echo "Part 2: Publishing a valid message" echo "This script publishes a valid message to the clients connected in script 1." echo "Check the first terminal to see the messages received." -curl http://tyk-gateway.localhost:8080/streams-simple-pubsub/validated-pub -d '{ "name": "Tyk Streams", "age": 21 }' +curl http://tyk-gateway.localhost:8080/streams-simple-pubsub/validated-pub -d '{ "name": "Tyk Streams", "age": 1 }' diff --git a/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-3.sh b/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-3.sh index 505a3c72..99a88835 100755 --- a/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-3.sh +++ b/deployments/tyk/scripts/examples/streams/validated-pubsub/validated-pubsub-3.sh @@ -3,4 +3,4 @@ echo "Part 3: Publishing an invalid message" echo "This script publishes an invalid message, which the gateway prevents subscribers from receiving." echo "Check the first terminal to see that the message is not received, and the fourth terminal to see the logged error." -curl http://tyk-gateway.localhost:8080/streams-simple-pubsub/validated-pub -d '{ "name": "Tyk", "age": 3 }' +curl http://tyk-gateway.localhost:8080/streams-simple-pubsub/validated-pub -d '{ "name": "Tyk Streams", "age": -1 }'