Commit 1496f5f3 authored by Iustin Pop's avatar Iustin Pop
Browse files

Make two common opcode parameters always serialised



This changes deps and comment fields to always be shown, to match the
Python behaviour for (at least) job listing/ops field.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 88127c47
......@@ -1433,11 +1433,12 @@ pOpPriority =
-- | Job dependencies.
pDependencies :: Field
pDependencies = optionalField $ simpleField "depends" [t| [JobDependency] |]
pDependencies =
optionalNullSerField $ simpleField "depends" [t| [JobDependency] |]
-- | Comment field.
pComment :: Field
pComment = optionalField $ stringField "comment"
pComment = optionalNullSerField $ stringField "comment"
-- * Entire opcode parameter list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment