Skip to content

Commit db16924

Browse files
committed
Allow anyOf between overlapping types
1 parent 6483cb8 commit db16924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SchemaUtils.elm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,11 @@ schemaToType qualify schema =
253253
oneOfToType schemas
254254

255255
else
256-
CliMonad.todoWithDefault
256+
CliMonad.succeed
257257
{ type_ = Common.Value
258258
, documentation = subSchema.description
259259
}
260-
"anyOf between overlapping types is not supported"
260+
|> CliMonad.withWarning "anyOf between overlapping types is not supported"
261261
)
262262

263263
oneOfCombine : List Json.Schema.Definitions.Schema -> CliMonad { type_ : Common.Type, documentation : Maybe String }

0 commit comments

Comments
 (0)