package.cjs.refractor.specification.cjs 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.
"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
exports.__esModule = true;
exports.default = void 0;
var _ramda = require("ramda");
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-6");
var _index = _interopRequireDefault(require("./visitors/json-schema/index.cjs"));
var _$commentVisitor = _interopRequireDefault(require("./visitors/json-schema/$commentVisitor.cjs"));
var _ContentEncodingVisitor = _interopRequireDefault(require("./visitors/json-schema/ContentEncodingVisitor.cjs"));
var _ContentMediaTypeVisitor = _interopRequireDefault(require("./visitors/json-schema/ContentMediaTypeVisitor.cjs"));
var _WriteOnlyVisitor = _interopRequireDefault(require("./visitors/json-schema/WriteOnlyVisitor.cjs"));
var _index2 = _interopRequireDefault(require("./visitors/json-schema/link-description/index.cjs"));
var _AnchorVisitor = _interopRequireDefault(require("./visitors/json-schema/link-description/AnchorVisitor.cjs"));
var _AnchorPointerVisitor = _interopRequireDefault(require("./visitors/json-schema/link-description/AnchorPointerVisitor.cjs"));
var _TargetMediaTypeVisitor = _interopRequireDefault(require("./visitors/json-schema/link-description/TargetMediaTypeVisitor.cjs"));
var _TargetHintsVisitor = _interopRequireDefault(require("./visitors/json-schema/link-description/TargetHintsVisitor.cjs"));
var _DescriptionVisitor = _interopRequireDefault(require("./visitors/json-schema/link-description/DescriptionVisitor.cjs"));
var _$commentVisitor2 = _interopRequireDefault(require("./visitors/json-schema/link-description/$commentVisitor.cjs"));
var _SubmissionMediaTypeVisitor = _interopRequireDefault(require("./visitors/json-schema/link-description/SubmissionMediaTypeVisitor.cjs"));
const specification = (0, _ramda.pipe)(
// JSON Schema object modifications
(0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', '$visitor'], _index.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', '$comment'], _$commentVisitor.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'if'], _apidomNsJsonSchemaDraft.specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'then'], _apidomNsJsonSchemaDraft.specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'else'], _apidomNsJsonSchemaDraft.specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'media']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'contentEncoding'], _ContentEncodingVisitor.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'contentMediaType'], _ContentMediaTypeVisitor.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'writeOnly'], _WriteOnlyVisitor.default),
// Link Description object modifications
(0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', '$visitor'], _index2.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchor'], _AnchorVisitor.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchorPointer'], _AnchorPointerVisitor.default), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'mediaType']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetMediaType'], _TargetMediaTypeVisitor.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetHints'], _TargetHintsVisitor.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'description'], _DescriptionVisitor.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', '$comment'], _$commentVisitor2.default), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionEncType']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionMediaType'], _SubmissionMediaTypeVisitor.default))(_apidomNsJsonSchemaDraft.specificationObj);
var _default = exports.default = specification;