'Get JSON schema
This method provides the matching schema for requested
microversion.
:param schema_versions_info: List of dict which provides schema
information with range of valid versions.
Example::
schema_versions_info = [
{\'min\': None, \'max\': \'2.1\', \'schema\': schemav21},
{\'min\': \'2.2\', \'max\': \'2.9\', \'schema\': schemav22},
{\'min\': \'2.10\', \'max\': None, \'schema\': schemav210}]'

def get_schema(self, schema_versions_info):

    schema = None
    version = api_version_request.APIVersionRequest(COMPUTE_MICROVERSION)
    for items in schema_versions_info:
        min_version = api_version_request.APIVersionRequest(items['min'])
        max_version = api_version_request.APIVersionRequest(items['max'])
        if (version.is_null() and (items['min'] is None)):
            schema = items['schema']
            break
        elif version.matches(min_version, max_version):
            schema = items['schema']
            break
    if (schema is None):
        raise exceptions.JSONSchemaNotFound(version=version.get_string(), schema_versions_info=schema_versions_info)
    return schema
