diff --git a/tests-integration/decoration-model/elm.json b/tests-integration/decoration-model/elm.json new file mode 100644 index 000000000..ce2a08dc7 --- /dev/null +++ b/tests-integration/decoration-model/elm.json @@ -0,0 +1,24 @@ +{ + "type": "application", + "source-directories": [ + "src" + ], + "elm-version": "0.19.1", + "dependencies": { + "direct": { + "elm/browser": "1.0.2", + "elm/core": "1.0.5", + "elm/html": "1.0.0" + }, + "indirect": { + "elm/json": "1.1.3", + "elm/time": "1.0.0", + "elm/url": "1.0.0", + "elm/virtual-dom": "1.0.3" + } + }, + "test-dependencies": { + "direct": {}, + "indirect": {} + } +} diff --git a/tests-integration/decoration-model/morphir.json b/tests-integration/decoration-model/morphir.json new file mode 100644 index 000000000..9d905e2ba --- /dev/null +++ b/tests-integration/decoration-model/morphir.json @@ -0,0 +1,4 @@ +{ + "name": "Morphir.Decoration.Model", + "sourceDirectory": "src" +} diff --git a/tests-integration/decoration-model/src/Morphir/Decoration/Model/Composites.elm b/tests-integration/decoration-model/src/Morphir/Decoration/Model/Composites.elm new file mode 100644 index 000000000..fbfccdb50 --- /dev/null +++ b/tests-integration/decoration-model/src/Morphir/Decoration/Model/Composites.elm @@ -0,0 +1,18 @@ +module Morphir.Decoration.Model.Composites exposing (..) + + +type alias SourceRecord = + { name : String + , sequenceNumber : Float + , details : String + } + + +type alias DatabaseName = + String + + +type Repositories + = Database DatabaseName + | FileSystem String + | Memory diff --git a/tests-integration/decoration-model/src/Morphir/Decoration/Model/Database.elm b/tests-integration/decoration-model/src/Morphir/Decoration/Model/Database.elm new file mode 100644 index 000000000..05ebb6ece --- /dev/null +++ b/tests-integration/decoration-model/src/Morphir/Decoration/Model/Database.elm @@ -0,0 +1,29 @@ +module Morphir.Decoration.Model.Database exposing (..) + + +type alias Entity = + Bool + + +type alias ColumnName = + String + + +type alias TableName = + String + + +type alias Table = + Table TableName + + +type Column + = Column ColumnName + + +type alias Id = + Bool + + +type alias GeneratedValue = + Bool diff --git a/tests-integration/decoration-model/src/Morphir/Decoration/Model/JsonSchema.elm b/tests-integration/decoration-model/src/Morphir/Decoration/Model/JsonSchema.elm new file mode 100644 index 000000000..dc3e2ae6c --- /dev/null +++ b/tests-integration/decoration-model/src/Morphir/Decoration/Model/JsonSchema.elm @@ -0,0 +1,91 @@ +module Morphir.Decoration.Model.JsonSchema exposing (..) + + +type alias SchemaEnabled = + Bool + + + +-- String Type Decorations + + +type alias MinLength = + Int + + +type alias MaxLength = + Int + + +type alias Pattern = + String + + +type Format + = DateTime + | Time + | Date + | Duration + | Email + | Hostname + | Uri + + + +-- number type decorations + + +type alias Minimum = + Int + + +type alias Maximum = + Int + + +type alias ExclusiveMinimum = + Int + + +type alias ExclusiveMaximum = + Int + + +type alias MultiplesOf = + Int + + + +-- Object Type Decorations + + +type alias MinProperties = + Int + + +type alias MaxProperties = + String + + + +-- Array Type Decorations + + +type alias MinContains = + Int + + +type alias MaxContains = + Int + + +type alias MinItems = + Int + + +type alias MaxItems = + Int + + +type alias Uniqueness = + Bool diff --git a/tests-integration/decoration-model/src/Morphir/Decoration/Model/NumberConstraints.elm b/tests-integration/decoration-model/src/Morphir/Decoration/Model/NumberConstraints.elm new file mode 100644 index 000000000..733563fa5 --- /dev/null +++ b/tests-integration/decoration-model/src/Morphir/Decoration/Model/NumberConstraints.elm @@ -0,0 +1,13 @@ +module Morphir.Decoration.Model.NumberConstraints exposing (..) + + +type alias Minimum = + Int + + +type alias Maximum = + Int + + +type alias Precision = + Int diff --git a/tests-integration/decoration-model/src/Morphir/Decoration/Model/PrivacyControl.elm b/tests-integration/decoration-model/src/Morphir/Decoration/Model/PrivacyControl.elm new file mode 100644 index 000000000..f7f2f3d96 --- /dev/null +++ b/tests-integration/decoration-model/src/Morphir/Decoration/Model/PrivacyControl.elm @@ -0,0 +1,14 @@ +module Morphir.Decoration.Model.PrivacyControl exposing (..) + +-- @docs Sensitivity + + +type Sensitivity + = MNPI + | PII + | PI + | SPI + | NPI + | Private_Information + | PHI + | RBC_High_Risk_Data diff --git a/tests-integration/decoration-model/src/Morphir/Decoration/Model/StringConstraints.elm b/tests-integration/decoration-model/src/Morphir/Decoration/Model/StringConstraints.elm new file mode 100644 index 000000000..415af4821 --- /dev/null +++ b/tests-integration/decoration-model/src/Morphir/Decoration/Model/StringConstraints.elm @@ -0,0 +1,9 @@ +module Morphir.Decoration.Model.StringConstraints exposing (..) + + +type alias MinLength = + Int + + +type alias MaxLength = + Int