atomicbits / scraml

Generate typesafe Java and Scala REST API clients
Other
43 stars 7 forks source link

id number path parameter not identified in a specific case #140

Open rigolepe opened 6 years ago

rigolepe commented 6 years ago

The generated code doesn't see the /{id} segment in the case below:

/:
    get:
        queryParameters:
            activeOnly:
                displayName: activeOnly
                description: return only active
                type: boolean
                required: false
                repeat: false
        responses:
            "200":
                body:
                    application/json:
                        type: |
                            {
                              "$schema" : "http://json-schema.org/draft-04/schema#",
                              "title" : "AfdelingTO",
                              "type" : "array",
                              "items" : {
                                "$ref" : "http://wegenenverkeer.be/rest/werf/model/afdeling.json"
                              }
                            }
/{id}:
    uriParameters:
        id:
            displayName: id
            type: number
            required: false
            repeat: false
    get:
        description: Gets one afdeling.
        responses:
            "200":
                description: The afdeling.
                body:
                    application/json:
                        type: afdeling