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

Add SRMD validation and schema support #1417

Open
wants to merge 24 commits into
base: maintenance/v2.1
Choose a base branch
from

Conversation

just-amin
Copy link

Pull Request: Add SRMD Schema Validation to OMSimulator


Description

This pull request addresses #1408 by introducing validation for SRMD files (.srmd) against the SSP Traceability Schema. Validation is performed during import and addResource operations.


Key Changes

  1. SRMD Validation:

    • Extended the existing XML validation framework to support .srmd files.
    • Integrated SimulationResourceMetaData.xsd schema for SRMD validation.
  2. Schema Updates:

    • Replaced xs:dateTimeStamp with a custom dateTimeStampType in SSPTraceabilityCommon.xsd for compatibility with XML Schema 1.0.
  3. Testing:

    • Added invalidSRMD.py to test:
      • Validation of model contains SRMD file that @robha67 provides in here

Related Issue

Closes #1408.

@just-amin just-amin requested review from adrpo and arun3688 January 10, 2025 12:05
@just-amin just-amin self-assigned this Jan 10, 2025
@CLAassistant
Copy link

CLAassistant commented Jan 10, 2025

CLA assistant check
All committers have signed the CLA.

@arun3688 arun3688 requested a review from lochel January 10, 2025 12:14
@arun3688
Copy link
Contributor

@just-amin add the tests to the resources and also to Makefile

Copy link
Member

@adrpo adrpo left a comment

Choose a reason for hiding this comment

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

Looks good to me!

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.

4 participants