croservices / openapi-model

Parse and generate OpenAPI v3 documents
Artistic License 2.0
2 stars 1 forks source link

Should there be a subset Style ? #2

Closed ugexe closed 6 years ago

ugexe commented 6 years ago

https://swagger.io/docs/specification/serialization/

subset Style of Str where 'simple'|'label'|'matrix'|'form'|'pipeDelimited'|'spaceDelimited';

similar to https://github.com/edumentab/p6-openapi-model/blob/0a92614d60e128ed8e3d14151f98ac8da436e6a6/lib/OpenAPI/Model/OpenAPI.pm6#L871

or maybe this belong in the Validator since which of those values is valid depends on the parameter type?

Altai-man commented 6 years ago

I don't really see why can't we introduce such type of more strict typing to avoid e.g. typos. Validator can be used for more specific checks too. Sorry for my late reply.