Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-4133

API rule violation when running openapi-gen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.2.0.Final
    • 1.0.0.Final
    • Operator
    • None
    • 2020 Week 52-03 (from Dec 21)

    Description

      When running make vet for the operator, you get the following message:

      API rule violation: names_match,github.com/kiegroup/kogito-cloud-operator/pkg/apis/app/v1beta1,KogitoInfraStatus,Volume
      

      This is caused by this line:

      Volume []KogitoInfraVolume `json:"volumes,omitempty"`
      

      The internal name doesn't match the variable name, so it throws the error. Also see this relevant discussion.

      Attachments

        Issue Links

          Activity

            People

              tarkhand Tarun Khandelwal (Inactive)
              kevin-mok Kevin Mok (Inactive)
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: