Skip to content

Rust_validate TBE files #68

Description

@DeviPriya-Kolla

Description:
Develop a validation tool in Rust to ensure that TBE files conform to the TBE format standard, verifying both structural integrity and content accuracy.

Developer Notes:

  • Implement a core (for example., validate_tbe_file) function to handle each validation step.
  • Use various sub-functions for different types of checks.
  • Generating a summary report which includes all sections, checks and errors/warnings to understand file compliance status.

Acceptance Criteria:

  • Confirm that TBE files are parsed and loaded without errors.
  • Verify the presence of BGN and EOT markers, ensuring that each section starts and ends correctly.
  • Ensure all required sections (global metadata, TBL, ATT, CMT) are present and follow the correct sequence.
  • Check all sections start with BGN and end with EOT markers, ensuring completeness.
  • Implement checks using sub-functions like validate_structure, validate_markers, validate_sections and validate_data_types.
  • Provide detailed error messages specifying the section and type of issue.
  • Generate a summary report
    • list of sections validated
    • summary of errors, warnings, or missing fields.
    • overall pass/fail result
  • Provide clear usage documentation in Java, showing how the validation can be integrated into data pipelines.
  • Provide options to export the validation reports in various formats (e.g., JSON, CSV, PDF)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions