Skip to content

Commit 2c367a0

Browse files
authored
fix logic to extract swagger file (Azure#37512)
1 parent 25be6ef commit 2c367a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/azure-sdk-tools/packaging_tools/sdk_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def get_related_swagger(readme_content: List[str], tag: str) -> List[str]:
152152
while idx < len(readme_content):
153153
if "```" in readme_content[idx]:
154154
break
155-
if ".json" in readme_content[idx]:
155+
if ".json" in readme_content[idx] and "Microsoft." in readme_content[idx]:
156156
result.append(readme_content[idx].strip("\n -"))
157157
idx += 1
158158
break

0 commit comments

Comments
 (0)