Skip to content

Commit

Permalink
eng, automation, bug fix, no longer need to validate namespace option (
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Nov 26, 2024
1 parent 9ac5567 commit c2d88e4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions eng/automation/typespec_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ def validate_tspconfig(tsp_dir: str) -> bool:
# SDK automation would make sure these properties exists
service_dir: str = yaml_json["parameters"]["service-dir"]["default"]
package_dir: str = yaml_json["options"]["@azure-tools/typespec-java"]["package-dir"]
if "namespace" not in yaml_json["options"]["@azure-tools/typespec-java"]:
logging.error(
"[VALIDATE][tspconfig.yaml] "
"options.@azure-tools/typespec-java.namespace is REQUIRED for Java SDK. "
'E.g. "com.azure.ai.openai".'
)
return False

# validate service-dir
if not re.fullmatch(service_dir_pattern, service_dir):
Expand Down

0 comments on commit c2d88e4

Please sign in to comment.