metadevpro / openapi3-ts

TS Model & utils for creating and exposing OpenAPI 3.x contracts.
MIT License
485 stars 64 forks source link

Add missing void type #66

Closed buttilda closed 3 years ago

buttilda commented 3 years ago

Looks like https://github.com/metadevpro/openapi3-ts/pull/65 forgot the void type.

pjmolina commented 3 years ago

type and format describes the types for properties inside a Schema Object. Could you point to an example of void property or where this could add value?

Moreover, the spec does not use the void keyword. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#dataTypes

buttilda commented 3 years ago

@pjmolina good point. I believe the void type is being used by us only internally to make it easier to generate TS types Better keep things as they are and we can work around it 👍