Skip to content

Commit 68ee849

Browse files
committed
wrap paths parameter in braces as required by swagger spec
1 parent a00277b commit 68ee849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solga-swagger/src/Solga/Swagger.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,6 @@ instance (Typeable a, ToParamSchema a, RouterSwagger next) => RouterSwagger (Cap
194194
let pOtherSchema = mempty & in_ .~ ParamPath & paramSchema .~ pSchema
195195
let param = mempty & name .~ paramName & required .~ Just True & schema .~ ParamOther pOtherSchema
196196
genPaths (nextProxy p) newCtx
197-
{ pathSegments = pathSegments ctx `DL.snoc` paramName
197+
{ pathSegments = pathSegments ctx `DL.snoc` ("{" <> paramName <> "}")
198198
, operationContext = operationContext newCtx & parameters <>~ [ Inline param ]
199199
}

0 commit comments

Comments
 (0)