You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/03 03:27:22 UTC
[GitHub] [apisix] spacewander commented on issue #4976: schema validate failed: upstream: Additional property scheme is not allowed?
spacewander commented on issue #4976:
URL: https://github.com/apache/apisix/issues/4976#issuecomment-912226583
I can't reproduce it with:
```
curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d @$HOME/r/ap_up.json -i
HTTP/1.1 201 Created
Server: openresty
Date: Fri, 03 Sep 2021 03:25:58 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 3600
{"node":{"value":{"host":"test.domain.com","id":"1","vars":[["http_User-Agent","~*","iPhone"]],"name":"km-feature","update_time":1630639558,"labels":{},"status":1,"uri":"\/*","create_time":1630639558,"methods":["GET","HEAD","POST","PUT","DELETE","OPTIONS","PATCH"],"upstream":{"timeout":{"connect":6,"send":6,"read":6},"pass_host":"pass","hash_on":"vars","scheme":"http","nodes":[{"weight":1,"host":"test.test.svc.cluster.local","priority":0,"port":80}],"type":"roundrobin"},"priority":1},"key":"\/apisix\/routes\/1"},"action":"set"}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org