OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
#!/usr/bin/env ruby
require "md_to_pdf/core"
require "md_to_pdf/style/validation"
require "yaml"
require "json"
class SchemaValidator
include MarkdownToPDF::StyleValidation
def validate
root = File.expand_path("../../", __dir__)
config = YAML.load_file(File.join(__dir__, "styles.yml"))
config["styles"].each do |entry|
validate_styles(entry, root)
end
end
def validate_styles(entry, root)
puts "Validating #{entry['name']} styles"
schema = JSON::load_file(File.join(root, entry["path"], "schema.json"))
styles_file = File.join(root, entry["path"], "standard.yml")
styles = YAML.load_file(styles_file)
validate_schema!(styles, schema)
puts "Valid: #{styles_file}"
end
end
SchemaValidator.new.validate