-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7035 from Checkmarx/AST-40687
fix(query): slight refactor to actually filter the correct/wanted codes
- Loading branch information
Showing
2 changed files
with
123 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
assets/queries/openAPI/general/response_operations_body_schema_undefined/test/negative5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "Test", | ||
"description": "test", | ||
"version": "1.0" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://example.com", | ||
"description": "Example" | ||
} | ||
], | ||
"paths": { | ||
"/Header/{SourceID}": { | ||
"get": { | ||
"summary": "Forecast Header Updates", | ||
"description": "Get Forecast Header channel data from MDM for a given source.", | ||
"operationId": "GetForecastHeader", | ||
"parameters": [], | ||
"responses": { | ||
"200": { | ||
"description": "", | ||
"headers": { | ||
"x-test-forecasts-ack-id": { | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ForecastHeaders" | ||
} | ||
}, | ||
"text/plain": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ForecastHeaders" | ||
}, | ||
"examples": { | ||
"default": { | ||
"value": null | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"204": { | ||
"description": "There are no more updates available." | ||
} | ||
} | ||
} | ||
}, | ||
"/Detail/{SourceID}": { | ||
"get": { | ||
"summary": "Forecast Detail Updates", | ||
"description": "Get Forecast Header channel data from MDM for a given source.", | ||
"operationId": "GetForecastDetail", | ||
"parameters": [], | ||
"responses": { | ||
"200": { | ||
"description": "", | ||
"headers": { | ||
"x-test-forecastdetails-ack-id": { | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ForecastDetails" | ||
} | ||
}, | ||
"text/plain": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ForecastDetails" | ||
}, | ||
"examples": { | ||
"default": { | ||
"value": null | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"204": { | ||
"description": "There are no more updates available." | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
}, | ||
"securitySchemes": { | ||
"apiKeyHeader": { | ||
"type": "apiKey", | ||
"name": "Ocp-Apim-Subscription-Key", | ||
"in": "header" | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"apiKeyHeader": [] | ||
}, | ||
{ | ||
"apiKeyQuery": [] | ||
} | ||
] | ||
} |