Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIs with no parameters cause invalid reference #35

Open
sradforth opened this issue Sep 11, 2018 · 0 comments
Open

APIs with no parameters cause invalid reference #35

sradforth opened this issue Sep 11, 2018 · 0 comments

Comments

@sradforth
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant