danielgtaylor / apisprout

Lightweight, blazing fast, cross-platform OpenAPI 3 mock server with validation
MIT License
697 stars 74 forks source link

Custom header support during reload: closes #60 #64

Open cboitel opened 4 years ago

cboitel commented 4 years ago

Main changes made:

Tests OK

2020/02/06 10:41:17 GET /test (Test) => 200 (application/json)
2020/02/06 10:41:17 GET /test (Test) => 200 (application/vnd.test-api+json)
2020/02/06 10:41:17 GET /test (Test) => 200 (application/yaml)
2020/02/06 10:41:17 GET /test (Test) => 200 (application/x-yaml)
2020/02/06 10:41:17 GET /test (Test) => 200 (application/vnd.test-api+yaml)
2020/02/06 10:41:17 GET /test (Test) => 200 (text/yaml)
2020/02/06 10:41:17 GET /test (Test) => 200 (text/x-yaml)
2020/02/06 10:41:17 GET /test (Test) => 200 (text/vnd.test-api+yaml)
2020/02/06 10:41:17 GET /test (Test) => 200 (text/vnd.test-api+xml)
2020/02/06 10:41:17 Cannot marshal as 'text/vnd.test-api+xml'!
2020/02/06 10:41:17 GET /test (Test) => 200 (application/json-with-extensions)
2020/02/06 10:41:17 Cannot marshal as 'application/json-with-extensions'!
PASS
ok      github.com/danielgtaylor/apisprout      0.414s

Manual tests (on Windows):