oficina / equipo Public

api: device schema for Design feedback's card, taste and rounds

Final review F4 (Astra 4, Fable 4). docs/api/equipo-v1.openapi.json
lacked this branch's wire fields, so TestPersonAPIDeviceContract
failed and clients validating against the published schema would
reject AnswerCard.option and .taste.

Regenerated from internal/wire (wireschema.Generate, the schemas the
contract test compares; dumped by a throwaway test, merged into the
document in its own order and format, the file otherwise byte for
byte as it was): AnswerCard, Card, TaskDirection, StepDesignOption
and StepCapture updated; OptionRef and TasteAnswer added after
AnswerCard, CardTaste after Card, DirectionRound after TaskDirection.

Test:
  go test ./internal/plan3test/ -run TestPersonAPIDevice -count=1
    RED: "schema TaskDirection|Card|DirectionRound|StepDesignOption|
    StepCapture|CardTaste|AnswerCard|OptionRef|TasteAnswer differs
    from internal/wire"
    GREEN: ok
Mutation (restored): AnswerCard.option deleted from the document ->
"schema AnswerCard differs from internal/wire" FAIL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f5052a77bb6ff851fc0f4adb4369968e3bd88967 parent 9f65b18
1 file changed, +124 −0
  • docs/api/equipo-v1.openapi.json +124 −0
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json
index a07656d5..55537854 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -19057,11 +19057,56 @@
},
"note": {
"type": "string"
+ },
+ "option": {
+ "$ref": "#/components/schemas/OptionRef"
+ },
+ "taste": {
+ "$ref": "#/components/schemas/TasteAnswer"
}
},
"additionalProperties": false,
"x-go-type": "wire.AnswerCard"
},
+ "OptionRef": {
+ "type": "object",
+ "properties": {
+ "step": {
+ "type": "string"
+ },
+ "index": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ "additionalProperties": false,
+ "x-go-type": "wire.OptionRef"
+ },
+ "TasteAnswer": {
+ "type": "object",
+ "properties": {
+ "feels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "other": {
+ "type": "string"
+ },
+ "like": {
+ "type": "string"
+ },
+ "avoid": {
+ "type": "string"
+ },
+ "keep": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "x-go-type": "wire.TasteAnswer"
+ },
"Answered": {
"type": "object",
"properties": {
@@ -19426,6 +19471,9 @@
"advice": {
"$ref": "#/components/schemas/Advice"
},
+ "taste": {
+ "$ref": "#/components/schemas/CardTaste"
+ },
"aside": {
"type": "boolean"
}
@@ -19448,6 +19496,25 @@
"additionalProperties": false,
"x-go-type": "wire.Card"
},
+ "CardTaste": {
+ "type": "object",
+ "properties": {
+ "feels": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "feels"
+ ],
+ "additionalProperties": false,
+ "x-go-type": "wire.CardTaste"
+ },
"CardConflict": {
"type": "object",
"properties": {
@@ -23172,6 +23239,12 @@
"name": {
"type": "string"
},
+ "direction": {
+ "type": "string"
+ },
+ "page": {
+ "type": "string"
+ },
"captures": {
"type": [
"array",
@@ -23209,6 +23282,18 @@
"height": {
"type": "integer",
"format": "int64"
+ },
+ "label": {
+ "type": "string"
+ },
+ "viewport": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "full_page": {
+ "type": "boolean"
}
},
"required": [
@@ -23691,6 +23776,15 @@
},
"note_needed": {
"type": "boolean"
+ },
+ "rounds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/DirectionRound"
+ }
+ },
+ "preview_refused": {
+ "type": "boolean"
}
},
"required": [
@@ -23699,6 +23793,36 @@
"additionalProperties": false,
"x-go-type": "wire.TaskDirection"
},
+ "DirectionRound": {
+ "type": "object",
+ "properties": {
+ "step": {
+ "type": "string"
+ },
+ "candidate": {
+ "type": "string"
+ },
+ "options": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "$ref": "#/components/schemas/StepDesignOption"
+ }
+ },
+ "live": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "step",
+ "candidate",
+ "options"
+ ],
+ "additionalProperties": false,
+ "x-go-type": "wire.DirectionRound"
+ },
"TaskEvent": {
"allOf": [
{