-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1074 from KindsonTheGenius/config-management
Create the Decoration Model
- Loading branch information
Showing
8 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "Morphir.Decoration.Model", | ||
"sourceDirectory": "src" | ||
} |
18 changes: 18 additions & 0 deletions
18
tests-integration/decoration-model/src/Morphir/Decoration/Model/Composites.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
29 changes: 29 additions & 0 deletions
29
tests-integration/decoration-model/src/Morphir/Decoration/Model/Database.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
91 changes: 91 additions & 0 deletions
91
tests-integration/decoration-model/src/Morphir/Decoration/Model/JsonSchema.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
| 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 |
13 changes: 13 additions & 0 deletions
13
tests-integration/decoration-model/src/Morphir/Decoration/Model/NumberConstraints.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module Morphir.Decoration.Model.NumberConstraints exposing (..) | ||
|
||
|
||
type alias Minimum = | ||
Int | ||
|
||
|
||
type alias Maximum = | ||
Int | ||
|
||
|
||
type alias Precision = | ||
Int |
14 changes: 14 additions & 0 deletions
14
tests-integration/decoration-model/src/Morphir/Decoration/Model/PrivacyControl.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
9 changes: 9 additions & 0 deletions
9
tests-integration/decoration-model/src/Morphir/Decoration/Model/StringConstraints.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Morphir.Decoration.Model.StringConstraints exposing (..) | ||
|
||
|
||
type alias MinLength = | ||
Int | ||
|
||
|
||
type alias MaxLength = | ||
Int |