-
Notifications
You must be signed in to change notification settings - Fork 6
Description
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.
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.
