Skip to content

Commit

Permalink
Make ObjectMeta's name field optional (dhall-lang#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriella439 authored Apr 24, 2020
1 parent ea3cf30 commit 7760284
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Dhall/Kubernetes/Convert.hs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ requiredFields maybeName required

-- | Some models require keys that are not in the required set,
-- but are in the docs or just work
requiredConstraints = Data.Map.fromList
[ ( ModelName "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
, Set.fromList [FieldName "name"])
]
requiredConstraints = Data.Map.fromList [ ]

-- | Some models should not require some keys, and this is not
-- in the Swagger spec but just in the docs
Expand Down

0 comments on commit 7760284

Please sign in to comment.