Effect CommunityEC
Effect Community2mo ago
2 replies
mabasic

How to add an optional param to http endpoint definition

I have this:

const magicCodeParam = HttpApiSchema.param("code", Schema.optional(Schema.String));


But, in swagger when I don't write anything as code. I get {code} as param in the endpoint.
Was this page helpful?