Issues with Schema Annotations in Swagger Documentation for URL Parameters
I’m working with the @effect/platform Http api builder. I’m defining my groups using the HttpApiGroup and working on annotating my endpoints. A new endpoint I’m introducing has url params, with the following schema
I’m adding this to my API group as follows
I modeled this off of this section of the docs: https://github.com/Effect-TS/effect/tree/main/packages/platform#setting-url-parameters
My issue is that, my annotations are not as I expect them to be
testField0: No description appears in spec
testField1: Description is "a string to be decoded into a number”. This is a bit weird, as it’s the same as testField0 just piped to another schema which constrains the value, but the description I get is from the internals of NumberFromString
testField2: No description appears in spec
testField3: Works normally I’ve included an image of what my swagger docs look like.
Here is a repro in the playground:
https://effect.website/play/#f4d6bb247a54
I’m adding this to my API group as follows
I modeled this off of this section of the docs: https://github.com/Effect-TS/effect/tree/main/packages/platform#setting-url-parameters
My issue is that, my annotations are not as I expect them to be
testField0: No description appears in spec
testField1: Description is "a string to be decoded into a number”. This is a bit weird, as it’s the same as testField0 just piped to another schema which constrains the value, but the description I get is from the internals of NumberFromString
testField2: No description appears in spec
testField3: Works normally I’ve included an image of what my swagger docs look like.
Here is a repro in the playground:
https://effect.website/play/#f4d6bb247a54

