Skip to content

Types are incorrect #4

@philsturgeon

Description

@philsturgeon

Hey @mikunn, this is a great job, but you're doing a bunch of work you don't need to do. :)

The OpenAPI Spec is confusing when it talks about types.

screen shot 2018-04-02 at 7 01 39 pm

That common names column is not actually relevant to anything, other than "this is what some languages call this sort of data". For example, type: password is not a thing, at all, so you don't need to code for that.

JSON Schema says "You can have a type and a format, but there are only a handful of items officially defined: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-7.3

These actually match the ones that exist in OpenAPI, but OpenAPI just happens to have a lot more.

You don't need to convert anything, you can just delete all this code and the tests that go with it. :)

string_types, numeric_types, etc, and everything in this switch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions