You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sealedtraitExamplefinalcaseclassA(a: Int) extendsExamplecaseobjectBextendsExamplefinalcaseclassInput(example: Option[Example])
valtestEndpoint=
(Endpoint(RoutePattern.POST/"test") ??Doc.p("This is my 'POST /test' endpoint doc"))
.in[Input]
.out[String](mediaType =MediaType.application.json, doc =Doc.p("this is the output doc"))
valspec:String=OpenAPIGen.fromEndpoints(
title ="This is my OpenAPI doc title",
version ="0.0.0",
endpoints =List(testEndpoint)
).toJson
What is the correct thing to generate for case object B in the OpenAPI doc?
Right now, we generate something like this:
"B": {
"type": "object",
"properties": {
}
},
Is this correct? 🤔
The text was updated successfully, but these errors were encountered:
Given the following endpoint:
What is the correct thing to generate for
case object B
in the OpenAPI doc?Right now, we generate something like this:
Is this correct? 🤔
The text was updated successfully, but these errors were encountered: