add the resourceId to the operationInfo
This commit is contained in:
Родитель
bf50f770da
Коммит
a124b8c2e8
|
@ -1,5 +1,9 @@
|
|||
# Change Log - oav
|
||||
|
||||
## 10/23/2024 3.6.0
|
||||
|
||||
- Update `operationInfo` from `liveValidation` to include `resourceId` of the matched operation.
|
||||
|
||||
## 10/15/2024 3.5.1
|
||||
|
||||
- During example generation, include min/max in default titles.
|
||||
|
|
|
@ -667,6 +667,7 @@ export class LiveValidator {
|
|||
info.operationMatch = result.operationMatch;
|
||||
}
|
||||
info.operationId = info.operationMatch.operation.operationId!;
|
||||
info.resourceId = info.operationMatch.operation._path._pathTemplate;
|
||||
return { info };
|
||||
} catch (error) {
|
||||
return { info, error };
|
||||
|
|
|
@ -48,6 +48,7 @@ export interface ValidationRequest {
|
|||
export interface OperationContext {
|
||||
operationId: string;
|
||||
apiVersion: string;
|
||||
resourceId?: string;
|
||||
operationMatch?: OperationMatch;
|
||||
validationRequest?: ValidationRequest;
|
||||
position?: FilePosition | undefined;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "3.5.0",
|
||||
"version": "3.6.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "oav",
|
||||
"version": "3.5.0",
|
||||
"version": "3.6.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@apidevtools/swagger-parser": "10.0.3",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "3.5.1",
|
||||
"version": "3.6.0",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation",
|
||||
"email": "azsdkteam@microsoft.com",
|
||||
|
@ -138,4 +138,4 @@
|
|||
"jest-junit": {
|
||||
"output": "test-results.xml"
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче