@typespec/http
Advanced tools
Comparing version 0.59.0-dev.10 to 0.59.0-dev.11
@@ -69,5 +69,12 @@ import { SyntaxKind, createDiagnosticCollector, getDoc, ignoreDiagnostics, isArrayModelType, reportDeprecated, typespecTypeToJson, validateDecoratorTarget, validateDecoratorUniqueOnNode, } from "@typespec/compiler"; | ||
explode: userOptions.explode ?? (userOptions.format === "multi" || userOptions.format === "form"), | ||
format: userOptions.format ?? (userOptions.explode ? "multi" : "csv"), | ||
format: userOptions.format, | ||
name: paramName, | ||
}; | ||
if (entity.type.kind === "Model" && | ||
isArrayModelType(context.program, entity.type) && | ||
// eslint-disable-next-line deprecation/deprecation | ||
options.format === undefined) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
options.format = userOptions.explode ? "multi" : "csv"; | ||
} | ||
context.program.stateMap(HttpStateKeys.query).set(entity, options); | ||
@@ -74,0 +81,0 @@ }; |
{ | ||
"name": "@typespec/http", | ||
"version": "0.59.0-dev.10", | ||
"version": "0.59.0-dev.11", | ||
"author": "Microsoft Corporation", | ||
@@ -5,0 +5,0 @@ "description": "TypeSpec HTTP protocol binding", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
341443
4372