Closed jhthorsen closed 4 years ago
What is the purpose of the subclasses OpenAPIv2 and OpenAPIv3?
What is the purpose of the subclasses OpenAPIv2 and OpenAPIv3?
They are part of the validation family. JSON::Validator is a generic validator, meaning it's only the schemas that enforces a given version.
I think this branch is ready for merging now, but I'll keep it open until I'm done with jhthorsen/mojolicious-plugin-openapi#160
I'm going to close this for now and open a new PR later on. Going to focus on making J::V compatible with the existing M::P::OpenAPI first.
Summary
This change aims to make it possible to move logic from JSON::Validator into the different JSON::Validator::Schema subclasses, but at the same time be backward compatible. After merging this PR, I need to update Mojolicious::Plugin::OpenAPI before moving the actual validation methods. (I think)
Motivation
Same motivation as #209.
References
209 and #210