Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/SchemaUtils.elm
Original file line number Diff line number Diff line change
Expand Up @@ -573,13 +573,10 @@ type SimplifiedForDisjointBasicType
areTypesDisjoint : Common.Type -> Common.Type -> CliMonad Bool
areTypesDisjoint ltype rtype =
case ( ltype, rtype ) of
( Common.Ref _, _ ) ->
CliMonad.succeed False
|> CliMonad.withWarning "Disjoin check for ref types not implemented yet"

( _, Common.Ref _ ) ->
CliMonad.succeed False
|> CliMonad.withWarning "Disjoin check for ref types not implemented yet"
( Common.Ref lref, Common.Ref rref ) ->
CliMonad.andThen2 (\lschema rschema -> areSchemasDisjoint True [ lschema, rschema ])
(getAlias lref)
(getAlias rref)

( Common.Value, _ ) ->
CliMonad.succeed False
Expand Down