Class SpecificationsValidator

java.lang.Object
org.radarbase.schema.validation.SpecificationsValidator

public class SpecificationsValidator extends Object
Validates RADAR-Schemas specifications.
  • Field Details

  • Constructor Details

    • SpecificationsValidator

      public SpecificationsValidator(Path root, ExcludeConfig config)
      Specifications validator for given RADAR-Schemas directory.
      Parameters:
      root - RADAR-Schemas directory.
      config - configuration to exclude certain schemas or fields from validation.
  • Method Details

    • specificationsAreYmlFiles

      public boolean specificationsAreYmlFiles(org.radarbase.schema.Scope scope) throws IOException
      Check that all files in the specifications directory are YAML files.
      Throws:
      IOException
    • checkSpecificationParsing

      public <T> boolean checkSpecificationParsing(org.radarbase.schema.Scope scope, Class<T> clazz) throws IOException
      Throws:
      IOException