io.openapiprocessor.jsonschema.schema.IdProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema-validator Show documentation
Show all versions of json-schema-validator Show documentation
OpenAPI Parser JSON-Schema Validator
/*
* Copyright 2022 https://github.com/openapi-processor/openapi-parser
* PDX-License-Identifier: Apache-2.0
*/
package io.openapiprocessor.jsonschema.schema;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Map;
public interface IdProvider {
IdProvider DRAFT201909 = new IdProvider201909 ();
IdProvider DRAFT7 = new IdProvider6 ();
IdProvider DRAFT6 = new IdProvider6 ();
IdProvider DRAFT4 = new IdProvider4 ();
/**
* get the scope from an object if available.
*
* @param properties the object properties
* @return scope id or null
*/
@Nullable String getId (Map properties);
}