Skip to content

No valid values defined for var=VarDef[200.Content.Media-Type] #212

Answered by kerrykimbrough
mneiferbag asked this question in Q&A
Discussion options

You must be logged in to vote

You did not attach an OpenAPI definition to reproduce this problem. However, I was able to reproduce this symptom using a response definition with an empty content map -- see below. But that's a peculiar way to say "no content". A simpler way is to just omit the content field entirely, in which case the problem goes away. Assuming this matches your situation, that would be an easy fix. Do you agree?

{
    "openapi": "3.0.0",
    "info": {
        "title": "Responses",
        "version": "0.0.0"
    },
    "paths": {
        "/responses": {
            "get": {
                "responses": {
                    "200": {
                        "description": "No content",
                 …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mneiferbag
Comment options

@kerrykimbrough
Comment options

Answer selected by mneiferbag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants