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

Update SnakeYAML #618

Merged
merged 4 commits into from
Oct 12, 2024
Merged

Update SnakeYAML #618

merged 4 commits into from
Oct 12, 2024

Conversation

sciencewhiz
Copy link
Collaborator

Add allowed tags for all RobotBuilder classes
Consolidate Yaml instances

Add allowed tags for all RobotBuilder classes
Consolidate Yaml instances
import robotbuilder.data.DistinctValidator;
import robotbuilder.data.ExistsValidator;
import robotbuilder.data.ListValidator;
import robotbuilder.data.PaletteComponent;
import robotbuilder.data.UniqueValidator;
import robotbuilder.data.Validator;
import robotbuilder.data.properties.*;
import robotbuilder.exporters.ExportFile;

@UtilityClass
public class YamlUtils {

public static final Yaml yaml;
Copy link
Member

Choose a reason for hiding this comment

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

Personal opinion: I'd suggest a public static accessor method over a statically accessed field.

@sciencewhiz sciencewhiz merged commit e2244f8 into wpilibsuite:main Oct 12, 2024
4 checks passed
@sciencewhiz sciencewhiz deleted the UpdateSnakeYaml branch October 12, 2024 01:13
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.

2 participants