UNPKG

kubernetes-models

Version:
47 lines (46 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1HTTPHeader_1 = require("./IoK8sApiCoreV1HTTPHeader.js"); const IoK8sApimachineryPkgUtilIntstrIntOrString_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgUtilIntstrIntOrString"); const schema = { "properties": { "host": { "type": "string", "nullable": true }, "httpHeaders": { "items": { "$ref": "io.k8s.api.core.v1.HTTPHeader#" }, "type": "array", "nullable": true }, "path": { "type": "string", "nullable": true }, "port": { "$ref": "io.k8s.apimachinery.pkg.util.intstr.IntOrString#" }, "scheme": { "enum": [ "HTTP", "HTTPS" ], "type": "string", "nullable": true } }, "required": [ "port" ], "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1HTTPHeader_1.addSchema)(); (0, IoK8sApimachineryPkgUtilIntstrIntOrString_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.HTTPGetAction", schema); } exports.addSchema = addSchema;