{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/floor.framing.upsert.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal domainCommands, which 0.5 makes a rule (open questions, 139). Written by hand, not generated.",
  "title": "floor.framing.upsert",
  "description": "Sets or clears the joist rule of one layer of a floor type, a slab type (Part V, 2.3.1, rule 15; Part IV, 7.4.15): the layer's joists becomes rule, or go where it is null; a joist deeper than its layer is refused. Run as a type.upsert at the type's revision.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "floor.framing.upsert"
    },
    "typeId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "type"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The type's revision as read."
    },
    "layerId": {
      "type": "string",
      "minLength": 1
    },
    "rule": {
      "anyOf": [
        {
          "$ref": "../types/type.schema.json#/properties/layers/items/properties/joists"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "kind",
    "typeId",
    "expectedRevision",
    "layerId",
    "rule"
  ],
  "additionalProperties": false
}
