Skip to content

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

@rigolepe

Description

@rigolepe

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions