{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.invalid/ietf/p1/schemas/jws.schema.json",
  "title": "P1 JWS Flattened envelope",
  "type": "object", "additionalProperties": false,
  "required": ["protected", "payload", "signature"],
  "properties": {
    "protected": {"$ref": "common.schema.json#/$defs/segment"},
    "payload": {"$ref": "common.schema.json#/$defs/segment"},
    "signature": {"$ref": "common.schema.json#/$defs/signature64"}
  },
  "$comment": "Decode protected/payload with raw integer gate, reject duplicate members, require canonical JCS bytes and canonical unpadded base64url before semantic checks."
}
