Skip to content

Commit

Permalink
Merge pull request #1074 from KindsonTheGenius/config-management
Browse files Browse the repository at this point in the history
Create the Decoration Model
  • Loading branch information
AttilaMihaly authored Oct 25, 2023
2 parents e650f47 + 0decfd6 commit 3e24c1d
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests-integration/decoration-model/elm.json
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": {}
}
}
4 changes: 4 additions & 0 deletions tests-integration/decoration-model/morphir.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Morphir.Decoration.Model",
"sourceDirectory": "src"
}
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
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
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
| 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
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
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
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

0 comments on commit 3e24c1d

Please sign in to comment.