Files
fastapi-openapi-to-postman/test/data/validationData/issues/issue#478/global-servers-path-variables-two-vars-missing-one-collection.json
Erik Mendoza 44c4d2ed54 Fixing issue #478, path variables matching validation
The path variables provided in transactions will be validated with the path variables in spec. If they does not match it will be generated a mismatch with INVALID_VALUE reasonCode.
2022-03-14 11:22:34 -06:00

225 lines
6.0 KiB
JSON

{
"item": [
{
"id": "1c9e80af-cc42-47c7-beae-f4b78e1bd3e1",
"name": "Info for a specific pet",
"request": {
"name": "Info for a specific pet",
"description": {},
"url": {
"path": [
"pets",
":petId"
],
"host": [
"{{baseUrl}}"
],
"query": [],
"variable": [
{
"description": "Assigned by the service provider",
"type": "any",
"value": "{{username}}",
"key": "username"
},
{
"description": " (This can only be one of 8843,443)",
"type": "any",
"value": "{{port}}",
"key": "port"
},
{
"description": {
"content": "",
"type": "text/plain"
},
"type": "any",
"value": "{{basePath}}",
"key": "basePath"
},
{
"disabled": false,
"type": "any",
"value": "<string>",
"key": "petId",
"description": "(Required) A test id"
}
]
},
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"method": "GET",
"auth": null
},
"response": [
{
"id": "291f119a-d162-4676-83c0-91ce6595407b",
"name": "Expected response to a valid request",
"originalRequest": {
"url": {
"path": [
"pets",
":petId"
],
"host": [
"{{baseUrl}}"
],
"query": [],
"variable": [
{
"description": "Assigned by the service provider",
"type": "any",
"value": "{{username}}",
"key": "username"
},
{
"description": " (This can only be one of 8843,443)",
"type": "any",
"value": "{{port}}",
"key": "port"
},
{
"description": {
"content": "",
"type": "text/plain"
},
"type": "any",
"value": "{{basePath}}",
"key": "basePath"
},
{
"disabled": false,
"type": "any",
"value": "<string>",
"key": "petId",
"description": "(Required) The id of the pet to retrieve"
}
]
},
"method": "GET",
"body": {}
},
"status": "OK",
"code": 200,
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"id\": -74238905,\n \"name\": \"et aliqua officia\",\n \"tag\": \"qui do\"\n}",
"cookie": [],
"_postman_previewlanguage": "json"
},
{
"id": "c00295c6-c859-46a4-8aae-8e2a6a2f64f3",
"name": "unexpected error",
"originalRequest": {
"url": {
"path": [
"pets",
":petId"
],
"host": [
"{{baseUrl}}"
],
"query": [],
"variable": [
{
"description": "Assigned by the service provider",
"type": "any",
"value": "{{username}}",
"key": "username"
},
{
"description": " (This can only be one of 8843,443)",
"type": "any",
"value": "{{port}}",
"key": "port"
},
{
"description": {
"content": "",
"type": "text/plain"
},
"type": "any",
"value": "{{basePath}}",
"key": "basePath"
},
{
"disabled": false,
"type": "any",
"value": "<string>",
"key": "petId",
"description": "(Required) The id of the pet to retrieve"
}
]
},
"method": "GET",
"body": {}
},
"status": "Internal Server Error",
"code": 500,
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"code\": -79318973,\n \"message\": \"ex c\"\n}",
"cookie": [],
"_postman_previewlanguage": "json"
}
],
"event": []
}
],
"event": [],
"variable": [
{
"description": {
"content": "Assigned by the service provider",
"type": "text/plain"
},
"type": "any",
"value": "demo",
"key": "username"
},
{
"description": {
"content": " (This can only be one of 8843,443)",
"type": "text/plain"
},
"type": "any",
"value": "8843",
"key": "port"
},
{
"description": {
"content": "",
"type": "text/plain"
},
"type": "any",
"value": "v2",
"key": "basePath"
},
{
"type": "string",
"value": "https://{{username}}.myTestServer.com:{{port}}/{{basePath}}",
"key": "baseUrl"
}
],
"info": {
"_postman_id": "a1d9a3d3-6195-46b3-95ff-016edd9b283d",
"name": "Swagger Petstore",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"description": {
"content": "",
"type": "text/plain"
}
}
}