-
Notifications
You must be signed in to change notification settings - Fork 676
Open
Labels
Description
Discussed in #6982
Originally posted by OrkanCom October 1, 2025
Problem
When adding custom examples to OpenAPI specification, Scalar's request dropdown only shows the custom examples. There's no way to access the auto-generated schema fields that Scalar originally displayed.
Current Behavior
- Without custom examples: Scalar auto-generates request body from schema.
- With custom examples: Only custom examples appear in drop-down, no way to see all available schema fields.
Expected Behavior
The dropdown should include both:
- "Schema" or "Default" option - showing all fields auto-generated from OpenAPI schema.
- Custom examples from the specification.
Use Case
Developers need to:
- See all available fields in the API (schema-generated)
- Quickly test with pre-filled examples (custom examples)
- Switch between these two views easily
Screenshot
Proposed Solution
Add a reserved example name (e.g., "$schema") or automatically prepend a schema-based example to the dropdown when custom examples exist.