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

Verifying all coordinates are valid against master schema #437

Closed
wants to merge 1 commit into from

Conversation

ty-porter
Copy link
Collaborator

Addresses #432

"font_name": "4x6",
"start": 0,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This defaults to 0 in code

@@ -188,6 +188,7 @@
}
},
"standings": {
"font_name": "4x6",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just realized this will override the master font, so will need to update these where added.

Comment on lines +230 to +237
},
"postseason": {
"matchup_y_gap": 12,
"series_x_gap": 32,
"wc_x_start": 3,
"wc_y_start": 12,
"ds_a_y_start": 51,
"__comment": "all other coords are based off wild card position"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Open to suggestions on this... Didn't look, but seems like if this is here then postseason brackets render, so may need to add an explicit enable/disable flag

Comment on lines +109 to +116
"nohit": {
"x": 46,
"y": 46
},
"perfect_game": {
"x": 46,
"y": 46
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't believe this is used anymore, but it's in most of the coordinates examples, so I added here.

Copy link
Member

Choose a reason for hiding this comment

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

My custom layout uses this feature pretty extensively but not in any of the places the example does

@WardBrian
Copy link
Member

I’d be nice to validate against a schema but having knowledge of the no-hitter/perfect game ideas without copying those from wherever they are in the schema. Probably also ignoring keys named “__comment” etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants