We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 078969d commit 04110e6Copy full SHA for 04110e6
1 file changed
src/infrastructure/services/validation-service.ts
@@ -54,6 +54,8 @@ export interface ValidateApiResponse {
54
}
55
56
export class ValidationService {
57
+ private readonly apiBaseUrl = "https://api.apimatic.io" as const;
58
+
59
constructor(private readonly configDir: DirectoryPath) {}
60
61
async validateViaFile({
@@ -105,7 +107,7 @@ export class ValidationService {
105
107
formData.append("file", createReadStream(specPath.toString()));
106
108
formData.append("featuresToRemove", JSON.stringify(featuresToRemove));
109
- const baseURL = envInfo.getBaseUrl();
110
+ const baseURL = envInfo.getBaseUrl() ?? this.apiBaseUrl;
111
112
try {
113
const response = await axios({
0 commit comments