Skip to content

What is the meaning of multiple schemas in a Content-Type header? #607

Closed
@danfoygel

Description

@danfoygel

Section 10.2 of the latest draft (http://json-schema.org/latest/json-schema-core.html#rfc.section.10.2) gives the following example:

Content-Type: application/json;
          schema="http://example.com/alice http://example.com/bob"

What is the meaning of multiple schemas in a Content-Type header? Does this say that the HTTP response conforms to both the "alice" and "bob" schemas? Or to either the "alice" or "bob" schema? In either of those cases, why wouldn't you express that through a single schema?

How is a well-designed client supposed to process the response when it receives a Content-Type header with multiple schemas?

Thanks,

-Dan

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions