Skip to content

Commit 4a5d7f0

Browse files
Changed warning message (#31)
* Changed warning message * reworded message * removed the afro
1 parent d0e53d5 commit 4a5d7f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polyapi",
3-
"version": "0.24.11",
3+
"version": "0.24.12",
44
"description": "Poly is a CLI tool to help create and manage your Poly definitions.",
55
"license": "MIT",
66
"repository": {

src/commands/generate/schemaTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ const fillInUnresolvedSchemas = (specs: SchemaSpec[]): SchemaSpec[] => {
681681
},
682682
};
683683
shell.echo(
684-
chalk.yellow(`WARNING: Referenced Schema '${unresolved.path}' is unresolved. Falling back to 'unknown' type.`)
684+
chalk.yellow(`WARNING: Schema '${unresolved.path}' referenced from '${spec.contextName}' is unresolved. Falling back to 'unknown' type for '${unresolved.path}'.`)
685685
);
686686
schemas.set(unresolved.path, fillerSpec);
687687
}
@@ -710,7 +710,7 @@ const fillInUnresolvedSchemas = (specs: SchemaSpec[]): SchemaSpec[] => {
710710
},
711711
};
712712
shell.echo(
713-
chalk.yellow(`WARNING: Referenced Schema '${contextName}' is unresolved, as context \`${context}\` was not generated. Falling back to 'unknown' type.`)
713+
chalk.yellow(`WARNING: Schema '${contextName}' referenced from '${spec.contextName}' is unresolved. Falling back to 'unknown' type for '${contextName}'.`)
714714
);
715715
schemas.set(contextName, fillerSpec);
716716
}

0 commit comments

Comments
 (0)