{{/* Hugo partials can't print outputs AND return a value /*}}
{{/* this partial only checks if the contents are an enum and returns true/false */}}
{{ $isEnum := false }}


{{/* There are two types of enums */}}
{{/* example:
divisor:
    anyOf:
    - type: integer
    - type: string
    description: Specifies the output format of the exposed
    resources, defaults to "1"

defaultCompositeDeletePolicy:
default: Background
description: DefaultCompositeDeletePolicy is the policy used when
    deleting the Composite that is associated with the Claim if no policy
    has been specified.
enum:
- Background
- Foreground
type: string
*/}}

{{ if .oneOf }}
    {{ $isEnum = true }}
{{ else if .anyOf }}
    {{ $isEnum = true }}
{{ else if .allOf }}
    {{ $isEnum = true }}
{{ else if .enum }}
    {{ $isEnum = true }}
{{ end }}

{{ return $isEnum }}