@typespec/openapi3
Advanced tools
Comparing version 0.54.0-dev.7 to 0.54.0-dev.8
import { compilerAssert, createDiagnosticCollector, emitFile, getAllTags, getAnyExtensionFromPath, getDoc, getEncode, getFormat, getKnownValues, getMaxItems, getMaxLength, getMaxValue, getMaxValueExclusive, getMinItems, getMinLength, getMinValue, getMinValueExclusive, getNamespaceFullName, getPattern, getService, getSummary, ignoreDiagnostics, interpolatePath, isDeprecated, isGlobalNamespace, isNeverType, isSecret, isVoidType, listServices, navigateTypesInNamespace, projectProgram, resolvePath, } from "@typespec/compiler"; | ||
import { createAssetEmitter } from "@typespec/compiler/emitter-framework"; | ||
import { createMetadataInfo, getHttpService, getServers, getStatusCodeDescription, isContentTypeHeader, isOverloadSameEndpoint, reportIfNoRoutes, resolveAuthentication, resolveRequestVisibility, Visibility, } from "@typespec/http"; | ||
import { getExtensions, getExternalDocs, getInfo, getOpenAPITypeName, getParameterKey, isDefaultResponse, isReadonlyProperty, resolveOperationId, shouldInline, } from "@typespec/openapi"; | ||
import { getExtensions, getExternalDocs, getOpenAPITypeName, getParameterKey, isDefaultResponse, isReadonlyProperty, resolveInfo, resolveOperationId, shouldInline, } from "@typespec/openapi"; | ||
import { buildVersionProjections } from "@typespec/versioning"; | ||
@@ -138,3 +138,3 @@ import { stringify } from "yaml"; | ||
function initializeEmitter(service, allHttpAuthentications, defaultAuth, version) { | ||
var _a, _b; | ||
var _a; | ||
currentService = service; | ||
@@ -153,9 +153,9 @@ metadataInfo = createMetadataInfo(program, { | ||
const security = getOpenAPISecurity(defaultAuth); | ||
const info = resolveInfo(program, service.type); | ||
root = { | ||
openapi: "3.0.0", | ||
info: { | ||
title: (_a = service.title) !== null && _a !== void 0 ? _a : "(title)", | ||
version: (_b = version !== null && version !== void 0 ? version : service.version) !== null && _b !== void 0 ? _b : "0000-00-00", | ||
description: getDoc(program, service.type), | ||
...getInfo(program, service.type), | ||
title: "(title)", | ||
...info, | ||
version: (_a = version !== null && version !== void 0 ? version : info === null || info === void 0 ? void 0 : info.version) !== null && _a !== void 0 ? _a : "0.0.0", | ||
}, | ||
@@ -162,0 +162,0 @@ externalDocs: getExternalDocs(program, service.type), |
{ | ||
"name": "@typespec/openapi3", | ||
"version": "0.54.0-dev.7", | ||
"version": "0.54.0-dev.8", | ||
"author": "Microsoft Corporation", | ||
@@ -5,0 +5,0 @@ "description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275981