Skip to content

Conversation

@masterzen
Copy link
Contributor

This contains a set of fix from @teintuc to the swagger template so that:

  • description appears
  • required properties are generated correctly
  • array properties are handled as arrays by puppet

Charles Teinturier added 4 commits February 7, 2018 12:20
Required properties in swagger weren't correctly converted to required
puppet properties leading in puppet not checking if a given property
was required or not.
Because of a wrong variable name, the swagger description never
ends in the puppet type generated.
The generator always assumed items were an hash. But some
properties are actually arrays in Kubernetes (ie cluster_roles rules or
network policy egress/ingress).
This add the necessary bits so that puppet treat those properties
as arrays and compares all elements instead of only the first one.
This was annoying and not necessarily useful :)
masterzen pushed a commit to daysofwonder/garethr-kubernetes that referenced this pull request Feb 7, 2018
See garethr/puppet-swagger-generator#13

This makes in particular cluster_role.rules usable.
masterzen pushed a commit to daysofwonder/garethr-kubernetes that referenced this pull request Feb 7, 2018
See garethr/puppet-swagger-generator#13

This makes in particular cluster_role.rules usable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant