This commit is contained in:
Timothee Guerin 2021-11-22 17:56:32 -05:00
Родитель 8fa598dab2
Коммит 79a9e52d84
2 изменённых файлов: 5 добавлений и 1 удалений

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

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

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

@ -154,6 +154,10 @@ export async function startSession<TInputModel>(
schema: Schema = DEFAULT_SCHEMA,
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) === {}) {
schema = artifactType as any;
}
const { model, filename } = await getModel<TInputModel>(host, schema, artifactType);
const configuration = await host.getValue("");
return new Session<TInputModel>({ host, filename, model, configuration });