-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom output viewer #3465
Custom output viewer #3465
Conversation
All changed packages have been documented.
|
You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3465/ Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3465/ |
…rin/typespec into custom-output-viewer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 10x better for sure.
I apologize for the dumb question, but where's the Swagger UI now? How do I visualize it? |
hhm @ravanscafi that's a good catch seems like something got broken in the middle of this. I'll look into it |
Fix here #3552 |
Provide a way to pass a custom program viewer to the playground. This should enable scnearios like having a
TypeSpec UI
viewer similar to swagger UI.Moved the viewer selection to be some vertical tabs with icons to the right instead
File output viewer
![image](https://private-user-images.githubusercontent.com/1031227/335313195-e58caee7-8df5-4a9a-be16-9d6fec6701b4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NjEzNjMsIm5iZiI6MTcyMTc2MTA2MywicGF0aCI6Ii8xMDMxMjI3LzMzNTMxMzE5NS1lNThjYWVlNy04ZGY1LTRhOWEtYmUxNi05ZDZmZWM2NzAxYjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjNUMTg1NzQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2Q2NjZhYTIzZTZmOTI0MTlhYjZjOWNlZDk0MGVmZDUwZGRmZDMxOWQyOTY2YWMyNDZmODVlN2UyN2Y4NDQ4NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.3sohxvnfxdY50-X08rJ8jQmFZQPhhdsQ4cNelzaCkGs)
Type graph viewer
Also fix issues related to the playground build not validating the typesript