persona-community-5/.pnpm-store/v3/files/a2/b815dad76b97b1c5a4d3f6ad2a5ca0a2502865522003256020f5b0f149dbd620c0ed66881917ef07e39ca7cbc0f9357f5ac90d4b014e6a2fca5e2a3b7b4085
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

20 lines
672 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const codegen_1 = require("../../compile/codegen");
const names_1 = require("../../compile/names");
const error = {
message: () => (0, codegen_1.str) `must NOT be present in response context`,
};
const def = {
keyword: "writeOnly",
schemaType: "boolean",
error,
code(cxt) {
if (cxt.schema !== true)
return;
const apiContext = (0, codegen_1._) `(${names_1.default.this} && ${names_1.default.this}.apiContext)`;
cxt.fail((0, codegen_1._) `${apiContext} === "response"`);
},
};
exports.default = def;
//# sourceMappingURL=writeOnly.js.map