Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-3607

Schema-service openapi generation is ignoring types other than String, Long, Integer and Boolean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • None
    • None

      The schema-service is currently ignoring float and double types when generating the openapi yaml files. In the example below, the availability attribute is left out of the generated aai_swagger_v27.yaml

      aai_oxm_v27.xml:

      <xs:element name="survival-time" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:appinfo>
            <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="An attribute specifies the time that an application ...")</annox:annotate>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element name="availability" type="xs:float" minOccurs="0">
        <xs:annotation>
          <xs:appinfo>
            <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="This parameter specifies the availability requirement, expressed as a percentage.")</annox:annotate>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element name="reliability" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:appinfo>
            <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="An attribute specifies in the context of network layer packet transmissions, percentage value of the amount of sent network layer packets successfully delivered to a given system entity within the time constraint required by the targeted service, divided by the total number of sent network layer packets.")</annox:annotate>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      

      aai_swagger_v27.yaml:

      survival-time:
              type: string
              description: An attribute specifies the time that an application ...
      reliability:
              type: string
              description: An attribute specifies in the context of network layer packet...
      

            fostkamp Fiete Ostkamp
            fostkamp Fiete Ostkamp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: