Skip to content

Commit

Permalink
Make core.v1.Event conform to MetadataHavingResource protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
iabudiab committed Oct 26, 2020
1 parent edb9b38 commit e419d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftkubeModelGen/Schema.swift
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ struct Resource: Decodable {

self.properties.append(contentsOf: props.sorted())
self.requiresCodableExtension = properties.contains { $0.type.requiresCodableExtension }
self.hasMetadata = properties.contains { $0.type.isMetadata && $0.isOptional }
self.hasMetadata = properties.contains { $0.type.isMetadata }
self.isListResource = properties.contains(where: { $0.name == "items" }) && gvk?.kind.hasSuffix("List") ?? false
self.isAPIResource =
!self.isListResource &&
Expand Down

0 comments on commit e419d81

Please sign in to comment.