Skip to content

APIs with no parameters cause invalid reference #35

@sradforth

Description

@sradforth

When there are no parameters for an API call it gives an invalid reference to null in the schema

e.g./api/v1/licenses/list with no parameters produced

		"/api/v1/licenses/list": {
			"post": {
				"tags": ["Licenses"],
				"summary": "Shows all licenses that can be applied for. ",
				"consumes": ["application/json"],
				"produces": ["application/json"],
				"parameters": [{
					"in": "body",
					"name": "body",
					"description": "Shows all licenses that can be applied for. ",
					"schema": { "$ref" : "#/definitions/null"}
				}],

i.e. the post.parameters[0].schema.$ref is pointing at #/definitions/null"
This causes swagger to complain when running

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions