-
Notifications
You must be signed in to change notification settings - Fork 30
B2B REST API QA용 PR #879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
B2B REST API QA용 PR #879
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,7 +123,7 @@ export function processV2Openapi(schema: any): any { | |
|
|
||
| export async function downloadV2Openapi() { | ||
| const src = | ||
| "https://raw.githubusercontent.com/portone-io/public-api-service/main/schema/openapi.yml"; | ||
| "https://raw.githubusercontent.com/portone-io/public-api-service/feat/b2b-public-api/schema/openapi.yml"; | ||
| const jsonDst = import.meta.resolve("../src/schema/v2.openapi.json"); | ||
| const yamlDst = import.meta.resolve("../src/schema/v2.openapi.yml"); | ||
| const token = await ensureLoggedIn(); | ||
|
|
@@ -151,7 +151,7 @@ export async function downloadV2Openapi() { | |
|
|
||
| export async function downloadV2Graphql() { | ||
| const src = | ||
| "https://raw.githubusercontent.com/portone-io/public-api-service/main/schema/schema.graphql"; | ||
| "https://raw.githubusercontent.com/portone-io/public-api-service/feat/b2b-public-api/schema/schema.graphql"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, the To ensure the script remains robust and fetches the correct schema in different contexts (e.g., after this QA phase or if merged into |
||
| const dst = import.meta.resolve("../src/schema/v2.graphql"); | ||
| const token = await ensureLoggedIn(); | ||
| console.log(`스키마 위치: ${src}`); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
srcURL for the OpenAPI schema now points to thefeat/b2b-public-apibranch. While this is perfectly fine for QA activities specific to this feature branch, could you clarify the plan for this URL when these script changes are considered for merging into more permanent branches likemainordevelop?Hardcoding feature branch URLs can lead to fetching outdated or incorrect schemas if the feature branch is later deleted or becomes stale. To mitigate this, would it be helpful to add a
TODOcomment here as a reminder to revert to themainbranch URL or to make this URL configurable before any merge into a long-lived branch? For example: