Skip to content
Open
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
7 changes: 2 additions & 5 deletions src/SchemaUtils.elm
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,8 @@ schemaToType qualify schema =
oneOfToType schemas

else
CliMonad.succeed
{ type_ = Common.Value
, documentation = subSchema.description
}
|> CliMonad.withWarning "anyOf between overlapping types is not supported"
oneOfToType schemas
|> CliMonad.withWarning "Transformed `anyOf` into `oneOf`. Check your schema to make sure this is ok. Ideally, try to use `additionalProperties: false` to make the types disjoint."
)

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