This commit is contained in:
Timothee Guerin 2021-11-22 18:31:12 -05:00
Родитель 79a9e52d84
Коммит e074745c8a
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@autorest/extension-base",
"version": "3.4.3",
"version": "3.4.4",
"description": "Library for creating AutoRest extensions",
"main": "dist/index.js",
"exports": {

Просмотреть файл

@ -155,8 +155,9 @@ export async function startSession<TInputModel>(
artifactType?: string,
) {
// This is just to make it work with older version so the older method definition is also valid.
if (schema === undefined || (schema as any) === {}) {
if (artifactType?.constructor.name === "Schema") {
schema = artifactType as any;
artifactType = undefined;
}
const { model, filename } = await getModel<TInputModel>(host, schema, artifactType);
const configuration = await host.getValue("");