![JAR search and dependency download from the Maven repository](/logo.png)
package.es.predicates.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apidom-ns-json-schema-draft-7 Show documentation
Show all versions of apidom-ns-json-schema-draft-7 Show documentation
JSON Schema Draft 7 namespace for ApiDOM.
import { createPredicate } from '@swagger-api/apidom-core';
import JSONSchemaElement from "./elements/JSONSchema.mjs";
import LinkDescriptionElement from "./elements/LinkDescription.mjs";
export { isJSONReferenceElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
export const isJSONSchemaElement = createPredicate(({
hasBasicElementProps,
isElementType,
primitiveEq
}) => {
return element => element instanceof JSONSchemaElement || hasBasicElementProps(element) && isElementType('JSONSchemaDraft7', element) && primitiveEq('object', element);
});
export const isLinkDescriptionElement = createPredicate(({
hasBasicElementProps,
isElementType,
primitiveEq
}) => {
return element => element instanceof LinkDescriptionElement || hasBasicElementProps(element) && isElementType('linkDescription', element) && primitiveEq('object', element);
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy