Swagger not showing all URL params with Schema.extend + discriminated union
Hi! I'm having an issue where my Swagger documentation isn't displaying all the URL parameters I've defined.
My endpoint uses
Setup:
URL params schema:
Question:
Is this a known limitation of the Swagger integration with complex schema types like extended discriminated unions? Or am I missing something in how I should structure the schema for proper Swagger documentation generation?
Any guidance on best practices for documenting complex URL parameter schemas would be appreciated!
Screenshot attached
Link to Effect playground: https://effect.website/play/#f43478993992
My endpoint uses
Schema.extend to combine common parameters with a discriminated union, but the generated Swagger docs seem to be missing some of the parameters.Setup:
URL params schema:
Schema.extend(CommonParams, DiscriminatedParams) where DiscriminatedParams is a union of two different structsQuestion:
Is this a known limitation of the Swagger integration with complex schema types like extended discriminated unions? Or am I missing something in how I should structure the schema for proper Swagger documentation generation?
Any guidance on best practices for documenting complex URL parameter schemas would be appreciated!
Screenshot attached
Link to Effect playground: https://effect.website/play/#f43478993992

Effect Documentation
