-
Notifications
You must be signed in to change notification settings - Fork 0
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 #30 from BitGo/fix-parameter-change-detection
fix: fixed an issue with component change in parameter not showing up correctly
- Loading branch information
Showing
4 changed files
with
162 additions
and
17 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
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,71 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "Test API", | ||
"description": "A sample API for testing" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://api.example.com/v1" | ||
} | ||
], | ||
"paths": { | ||
"/user/{userId}": { | ||
"get": { | ||
"summary": "Get a user by ID", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/components/parameters/UserId" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "A user object", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/User" | ||
} | ||
} | ||
} | ||
}, | ||
"404": { | ||
"description": "User not found" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"parameters": { | ||
"UserId": { | ||
"name": "userID", | ||
"in": "path", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"schemas": { | ||
"User": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"$ref": "#/components/schemas/Email" | ||
} | ||
} | ||
}, | ||
"Email": { | ||
"type": "string", | ||
"format": "email" | ||
} | ||
} | ||
} | ||
} |
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,3 @@ | ||
## Modified | ||
- [GET] `/user/{userId}` | ||
- `UserId` modified in parameters |
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,71 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "Test API", | ||
"description": "A sample API for testing" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://api.example.com/v1" | ||
} | ||
], | ||
"paths": { | ||
"/user/{userId}": { | ||
"get": { | ||
"summary": "Get a user by ID", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/components/parameters/UserId" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "A user object", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/User" | ||
} | ||
} | ||
} | ||
}, | ||
"404": { | ||
"description": "User not found" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"parameters": { | ||
"UserId": { | ||
"name": "userId", | ||
"in": "path", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"schemas": { | ||
"User": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"$ref": "#/components/schemas/Email" | ||
} | ||
} | ||
}, | ||
"Email": { | ||
"type": "string", | ||
"format": "email" | ||
} | ||
} | ||
} | ||
} |