Skip to content

schulztr/sdfObject-equivalence

Repository files navigation

sdfObject-equivalence

This tool tries to determine equivalence between two sdfObjects.

Usage

  • clone Repository
  • install dependencies: npm install
  • run: node sdfObject-equivalence [-v] <sdf-file1> <sdf-file2>

check_with_playround.sh

Compares the given sdfObjectto the sdfObjects from the playground. The script clones the playground into the current directory.

Usage: ./check_with_playground.sh <sdf-file>

Equivalence

SDF quality Equivalence
sdfObject if all properties, actions, events and common qualities are equal
sdfProperty if all common qualities and data qualities are equal
sdfAction if sdfInputData, sdfOutputData and common qualities are equal
sdfEvent if sdfOutputData and common qualities are equal
sdfInputData, sdfOutputData if all common qualities and data qualities are equal
common qualities
description ignore
label ignore
$comment ignore
sdfRef - for copying sdfData definitions within the same sdf file: equality of the resulting object after resolving and merging like described in section 4.4
- else: same (resolved) namespace and fragment
sdfRequired if all sdfRefs are equal (regardless of order)
data qualities
type if corresponding string is equal
const, default, minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, minLength, maxLength, minItems, maxItems, uniqueItems if value is equal
pattern if corresponding string is equal
format if corresponding string is equal
required if every item is equal regardless of order
properties if every key-value-pair is equal regardless of order
unit if corresponding string is equal
readable, writable, observable, nullable if value is equal
contentFormat if corresponding string is equal
sdfChoice if every key-value-pair is equal regardless of order
enum if corresponding sdfChoice is equal
sdfType
byt-string if corresponding string is equal
unix-time if corresponding number is equal

Class Name Equivalence

  • compare as lowercase string without -, . or _

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published