diff --git a/common/changes/@autorest/modelerfour/typo-ambiguous_2021-04-19-15-58.json b/common/changes/@autorest/modelerfour/typo-ambiguous_2021-04-19-15-58.json new file mode 100644 index 000000000..3b7ac667a --- /dev/null +++ b/common/changes/@autorest/modelerfour/typo-ambiguous_2021-04-19-15-58.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "@autorest/modelerfour", + "comment": "**Typo** Ambigious -> Ambiguous ", + "type": "patch" + } + ], + "packageName": "@autorest/modelerfour", + "email": "tiguerin@microsoft.com" +} \ No newline at end of file diff --git a/packages/extensions/modelerfour/src/modeler/modelerfour.ts b/packages/extensions/modelerfour/src/modeler/modelerfour.ts index 1e07ee9fc..709f82f5a 100644 --- a/packages/extensions/modelerfour/src/modeler/modelerfour.ts +++ b/packages/extensions/modelerfour/src/modeler/modelerfour.ts @@ -639,7 +639,7 @@ export class ModelerFour { case undefined: if (length(schema.enum) > 0 && values(schema.enum).all((each) => typeof each === "string")) { this.session.warning( - `The enum schema '${schema?.["x-ms-metadata"]?.name}' with an undefined type and enum values is ambigious. This has been auto-corrected to 'type:string'`, + `The enum schema '${schema?.["x-ms-metadata"]?.name}' with an undefined type and enum values is ambiguous. This has been auto-corrected to 'type:string'`, ["Modeler", "MissingType"], schema, ); @@ -1066,7 +1066,7 @@ export class ModelerFour { this.session.warning( `The schema '${ schema?.["x-ms-metadata"]?.name || name - }' with an undefined type and declared properties is a bit ambigious. This has been auto-corrected to 'type:object'`, + }' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'`, ["Modeler", "MissingType"], schema, ); @@ -1080,7 +1080,7 @@ export class ModelerFour { this.session.warning( `The schema '${ schema?.["x-ms-metadata"]?.name || name - }' with an undefined type and additionalProperties is a bit ambigious. This has been auto-corrected to 'type:object'`, + }' with an undefined type and additionalProperties is a bit ambiguous. This has been auto-corrected to 'type:object'`, ["Modeler"], schema, ); @@ -1094,7 +1094,7 @@ export class ModelerFour { this.session.warning( `The schema '${ schema?.["x-ms-metadata"]?.name || name - }' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambigious. This has been auto-corrected to 'type:object'`, + }' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'`, ["Modeler", "MissingType"], schema, ); diff --git a/packages/extensions/modelerfour/src/quality-precheck/prechecker.ts b/packages/extensions/modelerfour/src/quality-precheck/prechecker.ts index 962a41bd3..1869c8b58 100644 --- a/packages/extensions/modelerfour/src/quality-precheck/prechecker.ts +++ b/packages/extensions/modelerfour/src/quality-precheck/prechecker.ts @@ -428,7 +428,7 @@ export class QualityPreChecker { this.session.warning( `The schema '${ schema?.["x-ms-metadata"]?.name || name - }' with an undefined type and declared properties is a bit ambigious. This has been auto-corrected to 'type:object'`, + }' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'`, ["PreCheck", "SchemaMissingType"], schema, ); @@ -441,7 +441,7 @@ export class QualityPreChecker { this.session.warning( `The schema '${ schema?.["x-ms-metadata"]?.name || name - }' with an undefined type and additionalProperties is a bit ambigious. This has been auto-corrected to 'type:object'`, + }' with an undefined type and additionalProperties is a bit ambiguous. This has been auto-corrected to 'type:object'`, ["PreCheck", "SchemaMissingType"], schema, ); @@ -455,7 +455,7 @@ export class QualityPreChecker { this.session.warning( `The schema '${ schema?.["x-ms-metadata"]?.name || name - }' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambigious. This has been auto-corrected to 'type:object'`, + }' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'`, ["PreCheck", "SchemaMissingType"], schema, );