cli icon indicating copy to clipboard operation
cli copied to clipboard

feat: update studio command to use hosted instance

Open Souvikns opened this issue 5 months ago • 1 comments

Description

Currently, when CLI opens an asyncapi file in Studio it uses the older version of Studio so it does not support spec v3. To solve this we need to update to the latest version of Studio, but the npm package is not being updated and so this PR is trying an alternative to use the hosted studio to start and edit the spec file.

Working

CLI is creating a server and hosting the spec file with cors enabled opening the studio with URL as a parameter, for example https://studio.asyncapi.com/?url=http://localhost:3210/fileread&url_save=http://localhost:3210/filesave then open a websocket server for the studio to actually send back the changes made by the user to save locally to the spec file.

Souvikns avatar Jan 19 '24 10:01 Souvikns