mirror of
https://github.com/NorfairKing/autodocodec.git
synced 2024-12-02 09:52:01 +03:00
strip the newlines off yaml encodings in the ValueSchema docs
This commit is contained in:
parent
d7254410d2
commit
6ee83a4426
@ -25,11 +25,7 @@
|
||||
[37mfruit[m: # [31mrequired[m
|
||||
# fruit!!
|
||||
[ Apple
|
||||
|
||||
, Orange
|
||||
|
||||
, Banana
|
||||
|
||||
, Melon
|
||||
|
||||
]
|
||||
|
@ -1,9 +1,5 @@
|
||||
[ Apple
|
||||
|
||||
, Orange
|
||||
|
||||
, Banana
|
||||
|
||||
, Melon
|
||||
|
||||
]
|
||||
|
@ -1,7 +1,4 @@
|
||||
[ LT
|
||||
|
||||
, EQ
|
||||
|
||||
, GT
|
||||
|
||||
]
|
||||
|
@ -65,7 +65,7 @@ jsonSchemaChunks = concatMap (\l -> l ++ ["\n"]) . (`evalState` S.empty) . go
|
||||
in if null s
|
||||
then pure [["<object>"]]
|
||||
else concat <$> mapM (uncurry keySchemaFor) s
|
||||
ValueSchema v -> pure [[chunk $ TE.decodeUtf8With TE.lenientDecode (Yaml.encode v)]]
|
||||
ValueSchema v -> pure [[chunk $ T.strip $ TE.decodeUtf8With TE.lenientDecode (Yaml.encode v)]]
|
||||
ChoiceSchema s ->
|
||||
let addListAround = \case
|
||||
s_ :| [] -> do
|
||||
|
Loading…
Reference in New Issue
Block a user