Forum Stats

  • 3,770,091 Users
  • 2,253,065 Discussions
  • 7,875,305 Comments

Discussions

Ords 21.3.1.301.2050 - swagger duplicated key

Hi!

We can not generate swagger code any longer. We get duplicate key error and the json from the open-api-catalog is not a valid json. A bug in Ords?

Best regards Ola

Tagged:

Answers

  • thatJeffSmith-Oracle
    thatJeffSmith-Oracle Distinguished Product Manager Posts: 8,084 Employee

    Sounds like it, but we would need a test case to reproduce/diagnose your issue.

  • User_BSEZ8
    User_BSEZ8 Member Posts: 3 Green Ribbon

    Hi!

    Here is the json output from open-api-catalog .

    At the end we have duplicate keys under definitions

    ....

     "definitions": {

            "RESULTSET": {

                "type": "string"

            },

            "STRING": {

                "type": "string"

            },

            "index_ITEM": {

                "properties": {

                    "Authorization": {

                        "type": "string"

                    },

                    "body_text": {

                        "type": "string"

                    },

                    "status_code": {

                        "type": "string"

                    },

                    "forward_location": {

                        "type": "string"

                    }

                }

            },

            "index_ITEM": {

                "properties": {

                    "Authorization": {

                        "type": "string"

                    },

                    "body_text": {

                        "type": "string"

                    },

                    "status_code": {

                        "type": "string"

                    },

                    "forward_location": {

                        "type": "string"

                    }

                }

            },

            "index_ITEM": {

                "properties": {

                    "Authorization": {

                        "type": "string"

                    },

                    "body_text": {

                        "type": "string"

                    },

                    "status_code": {

                        "type": "string"

                    },

                    "forward_location": {

                        "type": "string"

                    }

                }

            }

  • thatJeffSmith-Oracle
    thatJeffSmith-Oracle Distinguished Product Manager Posts: 8,084 Employee

    I need the handler definition so i can generate your openapi output...hence the request for test case

  • User_BSEZ8
    User_BSEZ8 Member Posts: 3 Green Ribbon

    I have saved the Rest definition and added it here. (module "index" nothing to do with Oracle table index).


    Br Ola