Skip to content

Specify rules in YML-File #28

@rruisong

Description

@rruisong

Describe the bug

We can define the rules for one type of data (i.e. osi-message) only once in yml-file. For example: If we only want to check 'SensorView.InterfaceVersion', the 'SensorView.GroundTruth.InterfaceVersion' will also be automatically checked. Because we can only define the rules for the type of data 'InterfaceVersion'

Describe how to reproduce the bug

Steps to reproduce the behavior:

  1. Get the file '20200820_example_versionTest.osi' and 'osi_version.yml' from zip-file attached.
  2. Move the file '20200820_example_versionTest.osi' to folder 'data'
  3. Move the file 'osi_version.yml' to folder 'requirements-osi-3'
  4. Run 'osivalidator -r -requirements-osi-3 .\data\20200820_example_versionTest.osi'
  5. See output

Describe the expected behavior

We supposed to check if the major version of 'SensorView' is greater than 3 and didn't mean to check the major version of 'SensorView.GroundTruth'. We would define the two different kinds of version separately.

Show some screenshots

image

Describe the OS you are using

  • OS: Windows 10
  • Language: Python
  • Version 3.7

Additional context

Please get the osi- and yml-file from this zip-file.
ForOsiIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugProblems in the build system, build scripts, etc or faults in the interface.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions