Closed ugexe closed 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?
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.
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?