Skip to content

Commit e468377

Browse files
author
Chris Wiechmann
committed
Scripting examples updated to use http.request.path instead of api.method.path
Fixes #1
1 parent b299d82 commit e468377

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7-
## [1.0.0] 2022-06-22
7+
## [1.1.0] 2021-12-21
8+
### Fixed
9+
- Failed to validate API-Request using a path parameter [#1](https://github.com/Axway-API-Management-Plus/openapi-validator/issues/1)
10+
11+
### Added
12+
- Given path variable should support the full exposure path [#2](https://github.com/Axway-API-Management-Plus/openapi-validator/issues/2)
13+
14+
## [1.0.0] 2021-06-22
815

916
- Initial release

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def invoke(msg)
3333
def validator = OpenAPIValidator.getInstance(apiId, "apiadmin", "changeme");
3434
// Get required parameters for the validation
3535
def payload = bodyAsString(msg.get('content.body'));
36-
def path = msg.get("api.method.path");
36+
def path = msg.get("http.request.path");
3737
def verb = msg.get("http.request.verb");
3838
def queryParams = msg.get("params.query");
3939
def headers = msg.get("http.headers");
@@ -74,7 +74,7 @@ def invoke(msg)
7474
def apiId = msg.get("api.id");
7575
def validator = OpenAPIValidator.getInstance(apiId, "apiadmin", "changeme");
7676
def payload = bodyAsString(msg.get('content.body'));
77-
def path = msg.get("api.method.path");
77+
def path = msg.get("http.request.path");
7878
def verb = msg.get("http.request.verb");
7979
def status = msg.get("http.response.status");
8080
def headers = msg.get("http.headers");

0 commit comments

Comments
 (0)