Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'll drop this one. It's not really necessary.

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