Skip to content

HttpResponse mediaTypes and knownMediaType listed as required but are optional #123

@tjprescott

Description

@tjprescott

I'm running into this generated snippet from the v4 code model:

            protocol: !<!Protocols> 
              http: !<!HttpResponse> 
                statusCodes:
                  - '200'

This is tagged as HttpResponse, and the definition of this schema in the code model says that both mediaTypes and knownMediaTypes are required. My understanding is that these properties should not be required in this scenario, and thus the code model is in error.

cc @sacheu @lmazuel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions