зеркало из https://github.com/Azure/autorest.git
Avoid pointless warning (#4592)
This commit is contained in:
Родитель
810624d5b3
Коммит
1c991af5b1
|
@ -225,7 +225,11 @@ export class QualityPreChecker {
|
|||
|
||||
fixUpObjectsWithoutType() {
|
||||
for (const { name, schema } of this.listSchemas()) {
|
||||
if (<any>schema.type === "file" || <any>schema.format === "file" || <any>schema.format === "binary") {
|
||||
if (
|
||||
<any>schema.type === "file" ||
|
||||
<any>schema.format === "file" ||
|
||||
(<any>schema.format === "binary" && <any>schema.type !== "string")
|
||||
) {
|
||||
// handle inconsistency in file format handling.
|
||||
this.session.warning(
|
||||
`'The schema ${schema?.["x-ms-metadata"]?.name || name} with 'type: ${schema.type}', format: ${
|
||||
|
|
Загрузка…
Ссылка в новой задаче