When using Schema Transformation to set example values for properties in a dynamic Settings object, the example does not appear in the Scalar UI test request body form. The OpenAPI document generated from the application (available at /openapi/v1.json) correctly displays the example when viewed in Swagger Editor. However, in Scalar UI, the example value for the Endpoint property is not shown in the request body form used for testing.
What did you expect to happen?
I expected the example values set for the Settings object, for the Endpoint property, to appear in the Scalar UI test request body form, similar to how they are correctly displayed in the Swagger Editor. This would provide users with predefined example data for the request body during testing.
Example is being shown in code snippet but not in the test request modal form
What happens?
When using Schema Transformation to set example values for properties in a dynamic
Settings
object, the example does not appear in the Scalar UI test request body form. The OpenAPI document generated from the application (available at/openapi/v1.json
) correctly displays the example when viewed in Swagger Editor. However, in Scalar UI, the example value for theEndpoint
property is not shown in the request body form used for testing.What did you expect to happen?
I expected the example values set for the
Settings
object, for theEndpoint
property, to appear in the Scalar UI test request body form, similar to how they are correctly displayed in the Swagger Editor. This would provide users with predefined example data for the request body during testing.Example is being shown in code snippet but not in the test request modal form
Expected
How it's being displayed in Swagger
OpenAPI Document
To reproduce, copy this document in Scalar UI playground and in Swagger editor and compare the difference.
Reproducible Repo
https://github.com/w1am/ReproduceScalarIssue