feat(import): preserve supported HTTP contracts
This commit is contained in:
1 parent
083974c27f
commit
f8ee7c9bfe
87 files changed
+7496
-534
No files matched your search
@@ -122,6 +122,8 @@ fn target_root_context(root: JsonPathRoot) -> Option<MappingTargetContext> {
|
||||
JsonPathRoot::RequestPath
|
||||
| JsonPathRoot::RequestQuery
|
||||
| JsonPathRoot::RequestHeaders
|
||||
| JsonPathRoot::RequestCookies
|
||||
| JsonPathRoot::RequestBodyContentType
|
||||
| JsonPathRoot::RequestBody => Some(MappingTargetContext::Input),
|
||||
JsonPathRoot::Output => Some(MappingTargetContext::Output),
|
||||
_ => None,
|
||||
@@ -165,6 +167,8 @@ fn validate_target_root(
|
||||
JsonPathRoot::RequestPath
|
||||
| JsonPathRoot::RequestQuery
|
||||
| JsonPathRoot::RequestHeaders
|
||||
| JsonPathRoot::RequestCookies
|
||||
| JsonPathRoot::RequestBodyContentType
|
||||
| JsonPathRoot::RequestBody
|
||||
),
|
||||
MappingTargetContext::Output => root == JsonPathRoot::Output,
|
||||
|
||||
Reference in new issue
Block a user