persona-community-5/.pnpm-store/v3/files/9b/ae6c996ab82587d7ca695ff0f60b456b00e7d6d51e72519a6118845ce1d133bb327d88e9f06b985d255380705597e5924262feb0fe8a4f5eff5585b1bcafb3
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

27 lines
867 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InfoLicenseStrict = void 0;
const oas_types_1 = require("../../oas-types");
const utils_1 = require("../utils");
const InfoLicenseStrict = () => {
let specVersion;
return {
Root: {
enter(root) {
specVersion = (0, oas_types_1.detectSpec)(root);
},
License: {
leave(license, ctx) {
if (specVersion === 'oas3_1') {
(0, utils_1.validateOneOfDefinedAndNonEmpty)(['url', 'identifier'], license, ctx);
}
else {
(0, utils_1.validateDefinedAndNonEmpty)('url', license, ctx);
}
},
},
},
};
};
exports.InfoLicenseStrict = InfoLicenseStrict;