зеркало из https://github.com/Azure/autorest.git
Rename @azure-tools/autorest-extension-base dependency in m4 to new @autorest/extension-base pkg (#3828)
This commit is contained in:
Родитель
e765f8b131
Коммит
7bd18a3917
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@autorest/codemodel",
|
||||
"comment": "Removed unused deprecated dependency @azure-tools/autorest-extension-base",
|
||||
"type": "patch"
|
||||
}
|
||||
],
|
||||
"packageName": "@autorest/codemodel",
|
||||
"email": "tiguerin@microsoft.com"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@autorest/modelerfour",
|
||||
"comment": "Rename @azure-tools/autorest-extension-base dependency to new @autorest/extension-base pkg",
|
||||
"type": "patch"
|
||||
}
|
||||
],
|
||||
"packageName": "@autorest/modelerfour",
|
||||
"email": "tiguerin@microsoft.com"
|
||||
}
|
|
@ -57,7 +57,7 @@
|
|||
"ts-jest": "^26.4.4",
|
||||
"@azure-tools/codegen": "~2.5.292",
|
||||
"@azure-tools/codegen-csharp": "~3.0.0",
|
||||
"@azure-tools/autorest-extension-base": "~3.1.0",
|
||||
"@autorest/extension-base": "~3.1.0",
|
||||
"@autorest/codemodel": "~4.14.3",
|
||||
"@azure-tools/tasks": "~3.0.0",
|
||||
"@azure-tools/openapi": "~3.0.0",
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
ImplementationLocation,
|
||||
DictionarySchema,
|
||||
} from "@autorest/codemodel";
|
||||
import { Session } from "@azure-tools/autorest-extension-base";
|
||||
import { Session } from "@autorest/extension-base";
|
||||
import { values, items, length, Dictionary, refCount, clone } from "@azure-tools/linq";
|
||||
import { ModelerFourOptions } from "../modeler/modelerfour-options";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { serialize } from "@azure-tools/codegen";
|
||||
import { Host, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Host, startSession } from "@autorest/extension-base";
|
||||
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
|
||||
import { Checker } from "./checker";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { CodeModel } from "@autorest/codemodel";
|
||||
import { Session } from "@azure-tools/autorest-extension-base";
|
||||
import { Session } from "@autorest/extension-base";
|
||||
|
||||
export class Example {
|
||||
codeModel: CodeModel;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { serialize } from "@azure-tools/codegen";
|
||||
import { Host, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Host, startSession } from "@autorest/extension-base";
|
||||
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
|
||||
import { Example } from "./example";
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
ImplementationLocation,
|
||||
Request,
|
||||
} from "@autorest/codemodel";
|
||||
import { Session } from "@azure-tools/autorest-extension-base";
|
||||
import { Session } from "@autorest/extension-base";
|
||||
import { values, items, length, Dictionary, refCount, clone } from "@azure-tools/linq";
|
||||
import { ModelerFourOptions } from "../modeler/modelerfour-options";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { serialize } from "@azure-tools/codegen";
|
||||
import { Host, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Host, startSession } from "@autorest/extension-base";
|
||||
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
|
||||
import { Flattener } from "./flattener";
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
Request,
|
||||
SchemaContext,
|
||||
} from "@autorest/codemodel";
|
||||
import { Session } from "@azure-tools/autorest-extension-base";
|
||||
import { Session } from "@autorest/extension-base";
|
||||
import { values, items, length, Dictionary, refCount, clone } from "@azure-tools/linq";
|
||||
import { pascalCase, camelCase } from "@azure-tools/codegen";
|
||||
import { ModelerFourOptions } from "../modeler/modelerfour-options";
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { serialize } from "@azure-tools/codegen";
|
||||
import { Host, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Host, startSession } from "@autorest/extension-base";
|
||||
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
|
||||
import { Grouper } from "./grouper";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require("source-map-support").install();
|
||||
|
||||
import { AutoRestExtension } from "@azure-tools/autorest-extension-base";
|
||||
import { AutoRestExtension } from "@autorest/extension-base";
|
||||
import { processRequest as modelerfour } from "./modeler/plugin-modelerfour";
|
||||
import { processRequest as preNamer } from "./prenamer/plugin-prenamer";
|
||||
import { processRequest as flattener } from "./flattener/plugin-flattener";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Session } from "@azure-tools/autorest-extension-base";
|
||||
import { Session } from "@autorest/extension-base";
|
||||
import * as OpenAPI from "@azure-tools/openapi";
|
||||
import { values, length, items, ToDictionary, Dictionary } from "@azure-tools/linq";
|
||||
import {
|
||||
|
|
|
@ -72,7 +72,7 @@ import {
|
|||
TimeSchema,
|
||||
HttpMultipartRequest,
|
||||
} from "@autorest/codemodel";
|
||||
import { Session, Channel } from "@azure-tools/autorest-extension-base";
|
||||
import { Session, Channel } from "@autorest/extension-base";
|
||||
import { Interpretations, XMSEnum } from "./interpretations";
|
||||
import { fail, minimum, pascalCase, knownMediaType, KnownMediaType } from "@azure-tools/codegen";
|
||||
import { ModelerFourOptions } from "./modelerfour-options";
|
||||
|
@ -785,7 +785,6 @@ export class ModelerFour {
|
|||
for (const { key: propertyName, value: propertyDeclaration } of items(schema.properties)) {
|
||||
const property = this.resolve(propertyDeclaration);
|
||||
this.use(<OpenAPI.Refable<OpenAPI.Schema>>propertyDeclaration, (pSchemaName, pSchema) => {
|
||||
|
||||
const pType = this.processSchema(pSchemaName || `type·for·${propertyName}`, pSchema);
|
||||
const prop = objectSchema.addProperty(
|
||||
new Property(
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { deserialize, serialize } from "@azure-tools/codegen";
|
||||
import { Host, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Host, startSession } from "@autorest/extension-base";
|
||||
import * as OpenAPI from "@azure-tools/openapi";
|
||||
import { ModelerFour } from "./modelerfour";
|
||||
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { serialize } from "@azure-tools/codegen";
|
||||
import { Host, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Host, startSession } from "@autorest/extension-base";
|
||||
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
|
||||
import { PreNamer } from "./prenamer";
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import {
|
|||
SealedChoiceSchema,
|
||||
PrimitiveSchema,
|
||||
} from "@autorest/codemodel";
|
||||
import { Session } from "@azure-tools/autorest-extension-base";
|
||||
import { Session } from "@autorest/extension-base";
|
||||
import { values, length, Dictionary, items } from "@azure-tools/linq";
|
||||
import { selectName, Style, Styler } from "@azure-tools/codegen";
|
||||
import { ModelerFourOptions } from "../modeler/modelerfour-options";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Session } from "@azure-tools/autorest-extension-base";
|
||||
import { Session } from "@autorest/extension-base";
|
||||
import { values, items, length, Dictionary, refCount, clone, keys } from "@azure-tools/linq";
|
||||
import {
|
||||
Model as oai3,
|
||||
|
@ -12,7 +12,7 @@ import {
|
|||
} from "@azure-tools/openapi";
|
||||
|
||||
import { serialize } from "@azure-tools/codegen";
|
||||
import { Host, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Host, startSession } from "@autorest/extension-base";
|
||||
import { Interpretations } from "../modeler/interpretations";
|
||||
|
||||
import { getDiff } from "recursive-diff";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { readFile } from "@azure-tools/async-io";
|
||||
import { deserialize, fail } from "@azure-tools/codegen";
|
||||
import { Session, startSession } from "@azure-tools/autorest-extension-base";
|
||||
import { Session, startSession } from "@autorest/extension-base";
|
||||
import { Model } from "@azure-tools/openapi";
|
||||
|
||||
export interface TestSessionInput {
|
||||
|
|
|
@ -51,7 +51,6 @@
|
|||
"ts-morph": "~4.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@azure-tools/autorest-extension-base": "~3.1.0",
|
||||
"@azure-tools/codegen": "2.5.290",
|
||||
"@azure-tools/linq": "~3.1.0",
|
||||
"js-yaml": "3.13.1"
|
||||
|
|
Загрузка…
Ссылка в новой задаче