Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
export interface _OperationListResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import {
} from "../../static-helpers/multipartHelpers.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** An abstract representation of an input tool definition that an agent can use. */
export interface ToolDefinition {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Response from the Workspace - Get operation */
export interface GetWorkspaceResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Type of APIVersion */
export type APIVersion = "v1.1";
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Detection results for the resultId value. */
export interface MultivariateMultivariateDetectionResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Request of the entire or last anomaly detection. */
export interface UnivariateUnivariateDetectionOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import { uint8ArrayToString, stringToUint8Array } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The result of listing the applications available in an Account. */
export interface _ApplicationListResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The configuration for a streaming chat completion request. */
export interface StreamingChatCompletionOptionsRecord {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import { uint8ArrayToString } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The text analysis request. */
export interface AnalyzeTextOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { ErrorModel } from "@azure-rest/core-client";
import { uint8ArrayToString, stringToUint8Array } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema. */
export interface CloudEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import { serializeRecord } from "../../../static-helpers/serialization/serialize-record.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
export function resourceArraySerializer(result: Array<Resource>): any[] {
return result.map((item) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ import {
} from "./fhir/r4/models.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** A patient record, including their clinical information and data. */
export interface PatientRecord {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface BEA */
export interface BEA {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface BA */
export interface BA {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface A */
export interface A {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Load test model. */
export interface Test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import { serializeRecord } from "../static-helpers/serialization/serialize-recor
import { stringToUint8Array } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface CreateCompletionRequest */
export interface CreateCompletionRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import {
import { ErrorModel } from "@azure-rest/core-client";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The configuration information for an audio transcription request. */
export interface AudioTranscriptionOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import { serializeRecord } from "../static-helpers/serialization/serialize-recor
import { stringToUint8Array } from "@typespec/ts-http-runtime";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface CreateCompletionRequest */
export interface CreateCompletionRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The Contoso Widget Manager service version. */
export enum KnownVersions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Identifier for collections. */
export interface Collection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Paged collection of SchemaGroup items */
export interface _PagedSchemaGroup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface _Test3Request */
export interface _Test3Request {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import {
} from "@typespec/ts-http-runtime";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface User */
export interface User {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import {
} from "../models.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface _TodoPage */
export interface _TodoPage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import { ApiError } from "../models.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface UserCreatedResponse */
export interface UserCreatedResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface Widget */
export interface Widget {
Expand Down
11 changes: 5 additions & 6 deletions packages/typespec-ts/src/modular/emitModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,12 @@ export function emitTypes(
sourceFile = outputProject.getSourceFile(filepath);
if (!sourceFile) {
sourceFile = outputProject.createSourceFile(filepath);
sourceFile.addStatements(
`/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
sourceFile.addStatements(`/**
* This file contains only generated model types and their (de)serializers.
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */`
);
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */`);
}
emitType(context, type, sourceFile);
}
Expand Down
Loading
Loading