Skip to content

Keep primitive types within JSON schema draft specs #340

Closed
@tlivings

Description

@tlivings

Adding the file "primitive" is not something that is out-of-the-box validation by any JSON schema validator. It seems like this type is not a primitive, and also requires additional checks for consumes.

This requires a special edge case just for validating when type is file. And in fact, it is not validating the type, but rather the consumes.

It seems lie the appropriate path would be to not add to JSON schema spec, since developers implementing tools for swagger would simply perform their own assertions for multipart/form at the framework level.

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