Skip to content

[V] $lib

const $lib: TypeSpecLibrary<{
cookies-unsupported: {
default: "Cookies are not supported in Swagger 2.0. Parameter was ignored.";
};
duplicate-body-types: {
default: "Request has multiple body types";
};
duplicate-example: {
default: "Duplicate @example declarations on operation";
};
duplicate-example-file: {
default: CallableMessage<["filename", "title", "operationId"]>;
};
duplicate-header: {
default: CallableMessage<["header"]>;
};
example-loading: {
default: CallableMessage<["filename", "error"]>;
noDirectory: CallableMessage<["directory"]>;
noOperationId: CallableMessage<["filename"]>;
};
inline-cycle: {
default: CallableMessage<["type"]>;
};
invalid-format: {
default: CallableMessage<["schema", "format"]>;
};
invalid-multi-collection-format: {
default: "Only encode of `ArrayEncoding.pipeDelimited` and `ArrayEncoding.spaceDelimited` is supported for collection format.";
};
invalid-schema: {
default: CallableMessage<["type"]>;
};
no-matching-version-found: {
default: "The emitter did not emit any files because the specified version option does not match any versions of the service.";
};
nonspecific-scalar: {
default: CallableMessage<["type", "chosenType"]>;
};
union-null: {
default: "Cannot have a union containing only null types.";
};
union-unsupported: {
default: "Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.";
empty: "Empty unions are not supported for OpenAPI v2 - enums must have at least one value.";
};
unsupported-auth: {
default: CallableMessage<["authType"]>;
};
unsupported-http-auth-scheme: {
default: CallableMessage<["scheme"]>;
};
unsupported-multipart-type: {
default: CallableMessage<["part"]>;
};
unsupported-optional-path-param: {
default: CallableMessage<["name"]>;
};
unsupported-param-type: {
default: CallableMessage<["part"]>;
};
unsupported-status-code-range: {
default: CallableMessage<["start", "end"]>;
};
}, AutorestEmitterOptions, "example" | "useRef">;