1 Reply Latest reply on Jul 13, 2020 5:14 PM by thatJeffSmith-Oracle

    OPEN API CATALOG : case sensitivity  probleme

    Jeremx

      Hello,

       

      There is a problem with capital letters between the swagger properties of an API and the result provided during use.

       

      Example :

       

      https://XXXX:8443/ords/XXX/XXX/open-api-catalog/signalement/

      swagger: '2.0'
      info:
        title: ORDS generated API for SIGNALEMENT
        version: 1.0.0
      host: 'XXX:8443'
      basePath: /ords/XXX//XXX/signalement
      schemes:
        - https
      produces:
        - application/json
      ...
      SIGNALEMENT_ITEM:
          properties:
            ID_SIGNALEMENT:
              $ref: '#/definitions/NUMBER'
            CATEGORIE:
              $ref: '#/definitions/VARCHAR2'
            SOUS_CATEGORIE:
              $ref: '#/definitions/VARCHAR2'
            STATUT:
              $ref: '#/definitions/VARCHAR2'
      ....
      

       

       

      curl -X GET -G -k -H "Authorization: Bearer XXX" https://XXX/ords/XXX/XxX/signalement/563

      {"id_signalement":563,"categorie":"C","sous_categorie":"ABORD","statut":"S","criticite":1,"antenne":43,"groupe":610,"batiment":1,"allee":2,"local":null,"geoloc":"{"timestamp":1593787013133,"mocked":false,"coords":{"altitude":94.5999984741211,"heading":0,"longitude":2.37947,"speed":0,"latitude":48.8600411,"accuracy":13.4350004196167}}","adresse_rue":"RUE DES PERVENCHES","adresse_ville":"XX","adresse_codepostal":"X","num_locataire":null,"nom_locataire":null,"prenom_locataire":null,"numbail_locataire":null,"date_creation":"2020-07-03T14:36:56Z","date_modif":"2020-07-10T09:42:31Z","mail_creation":"reactdev@toto.fr,"nom_creation":"X","prenom_creation":"XX","tel_user_creation":"XXX","titre":"Hdhd","description":"Djjd","photo1":null,"photo2":null,"photo3":null,"commentaire":null,"societe":1000,"date_pec":null,"nom_pec":null,"prenom_pec":null,"userwin_pec":null,"code_corps":8,"mail_locataire":"toto@maboite.com","tel_locataire":"0344456789","links":[{"rel":"self","href":"https://XX/ords/XX/signalement/563"}

       

      In typescrip /react native (strict mode) the case difference has an incidence and therefore makes the swagger unusable...