@typespec/openapi3
Advanced tools
Comparing version 0.51.0-dev.7 to 0.51.0-dev.8
@@ -995,3 +995,3 @@ import { compilerAssert, emitFile, getAllTags, getAnyExtensionFromPath, getDoc, getEncode, getFormat, getKnownValues, getMaxItems, getMaxLength, getMaxValue, getMaxValueExclusive, getMinItems, getMinLength, getMinValue, getMinValueExclusive, getNamespaceFullName, getPattern, getService, getSummary, ignoreDiagnostics, interpolatePath, isArrayModelType, isDeprecated, isGlobalNamespace, isNeverType, isNullType, isSecret, isVoidType, listServices, navigateTypesInNamespace, projectProgram, resolvePath, } from "@typespec/compiler"; | ||
!shouldInline(program, type)) { | ||
callSchemaEmitter(type, Visibility.Read); | ||
callSchemaEmitter(type, Visibility.All); | ||
} | ||
@@ -998,0 +998,0 @@ }; |
@@ -8,5 +8,6 @@ import { TwoLevelMap, ignoreDiagnostics, navigateTypesInNamespace, } from "@typespec/compiler"; | ||
if (!omitUnreachableTypes) { | ||
// Evaluate all unreferenced types and the types they reference with Visibility.All | ||
const trackType = (type) => { | ||
if (!usages.has(type)) { | ||
navigateReferencedTypes(type, Visibility.Read, (type, vis) => trackUsageExact(usages, type, vis)); | ||
navigateReferencedTypes(type, Visibility.All, (type, vis) => trackUsageExact(usages, type, vis)); | ||
} | ||
@@ -13,0 +14,0 @@ }; |
{ | ||
"name": "@typespec/openapi3", | ||
"version": "0.51.0-dev.7", | ||
"version": "0.51.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
Sorry, the diff of this file is not supported yet
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
253376
3290