Skip to content

[V] $lib

const $lib: TypeSpecLibrary<object, AutorestEmitterOptions, "example" | "useRef">;

Type declaration

NameTypeDefault value
cookies-unsupportedobject-
cookies-unsupported.default"Cookies are not supported in Swagger 2.0. Parameter was ignored."-
duplicate-body-typesobject-
duplicate-body-types.default"Request has multiple body types"”Request has multiple body types”
duplicate-exampleobject-
duplicate-example.default"Duplicate @example declarations on operation"”Duplicate @example declarations on operation”
duplicate-example-fileobject-
duplicate-example-file.defaultCallableMessage<["filename", "title", "operationId"]>-
duplicate-headerobject-
duplicate-header.defaultCallableMessage<["header"]>-
example-loadingobject-
example-loading.defaultCallableMessage<["filename", "error"]>-
example-loading.noDirectoryCallableMessage<["directory"]>-
example-loading.noOperationIdCallableMessage<["filename"]>-
inline-cycleobject-
inline-cycle.defaultCallableMessage<["type"]>-
invalid-formatobject-
invalid-format.defaultCallableMessage<["schema", "format"]>-
invalid-multi-collection-formatobject-
invalid-multi-collection-format.default"The 'multi' should be applied to parameter in 'query', 'header' or 'formData'."”The ‘multi’ should be applied to parameter in ‘query’, ‘header’ or ‘formData’.”
invalid-schemaobject-
invalid-schema.defaultCallableMessage<["type"]>-
nonspecific-scalarobject-
nonspecific-scalar.defaultCallableMessage<["type", "chosenType"]>-
union-nullobject-
union-null.default"Cannot have a union containing only null types."”Cannot have a union containing only null types.”
union-unsupportedobject-
union-unsupported.default"Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type."”Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.”
union-unsupported.empty"Empty unions are not supported for OpenAPI v2 - enums must have at least one value."”Empty unions are not supported for OpenAPI v2 - enums must have at least one value.”
unsupported-authobject-
unsupported-auth.defaultCallableMessage<["authType"]>-
unsupported-http-auth-schemeobject-
unsupported-http-auth-scheme.defaultCallableMessage<["scheme"]>-
unsupported-multipart-typeobject-
unsupported-multipart-type.defaultCallableMessage<["part"]>-
unsupported-param-typeobject-
unsupported-param-type.defaultCallableMessage<["part"]>-
unsupported-status-code-rangeobject-
unsupported-status-code-range.defaultCallableMessage<["start", "end"]>-