Skip to content
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

In addition to .yml allow to choose other file formats like .json #2817

Open
2 tasks done
prakhargupta1 opened this issue Oct 19, 2023 · 4 comments
Open
2 tasks done
Labels
scope: toolpad-studio Abbreviated to "studio" waiting for 👍 Waiting for upvotes

Comments

@prakhargupta1
Copy link
Member

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

Currently, Toolpad pages are written down in a .yml file. While setting up a project, can I choose a different file format like JSON?

Examples 🌈

No response

Motivation 🔦

No response

@prakhargupta1 prakhargupta1 added status: waiting for maintainer These issues haven't been looked at yet by a maintainer waiting for 👍 Waiting for upvotes labels Oct 19, 2023
@prakhargupta1 prakhargupta1 changed the title Instead of .yml support other file formats like .json In addition to .yml allow to choose other file formats like .json Oct 19, 2023
@JerryWu1234
Copy link
Contributor

which step let user to choose ?

@buremba
Copy link

buremba commented Oct 23, 2023

What's the supported output formats? If possible, JSX output would be very useful as it's much easier to read and modify compared to yml or json.
I believe that it might be an argument to toolpad dev, not sure exposing it in the UI is a good idea.

@bharatkashyap
Copy link
Member

What's the supported output formats? If possible, JSX output would be very useful as it's much easier to read and modify compared to yml or json. I believe that it might be an argument to toolpad dev, not sure exposing it in the UI is a good idea.

Thanks! We're tracking code export in #316, you may choose to upvote that/express your opinion around in the comments there.

@Janpot
Copy link
Member

Janpot commented Nov 3, 2023

While adding a json mode wouldn't be super hard to do since all json is also valid yaml, I don't believe it makes sense to take on this added complexity without any concrete use cases.

Since all valid json is also valid yaml, if the goal is to be able to generate a Toolpad project as JSON files, then this is already possible.

@Janpot Janpot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 3, 2023
@prakhargupta1 prakhargupta1 added the scope: toolpad-studio Abbreviated to "studio" label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: toolpad-studio Abbreviated to "studio" waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

5 participants