Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/7626_change.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not totally sure whether we need a draftlog for this, but I don't mind

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Update script to generate schema JSON with 2 space indentation [[#7626](https://github.com/plotly/plotly.js/pull/7626)]
4 changes: 2 additions & 2 deletions tasks/schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function makeSchema(plotlyPath, schemaPath) {
const Plotly = plotlyNode(plotlyPath);
const obj = Plotly.PlotSchema.get();
const sortedObj = sortObject(obj);
const plotSchemaRaw = JSON.stringify(obj, null, 1);
const plotSchemaStr = JSON.stringify(sortedObj, null, 1);
const plotSchemaRaw = JSON.stringify(obj, null, 2);
const plotSchemaStr = JSON.stringify(sortedObj, null, 2);

fs.writeFileSync(schemaPath, plotSchemaStr);

Expand Down
Loading