changedOutput schema / properties / candidates / anyOf
Previous value: -[
- {
- "items": {
- "additionalProperties": true,
- "properties": {
- "avg_rating": {
- "type": [
- "number",
- "null"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "$ref": "#/properties/week/anyOf/0/properties/id"
- },
- "image_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "ingredients": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": true,
- "properties": {
- "name": {
- "$ref": "#/properties/week/anyOf/0/properties/id"
- },
- "quantity": {
- "description": "Free text, e.g. '2 lbs'",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "is_favorite": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "position": {
- "description": "1-based ballot number",
- "type": "number"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": true,
- "properties": {
- "comment": {
- "type": [
- "string",
- "null"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "member": {
- "$ref": "#/properties/week/anyOf/0/properties/id"
- },
- "rating": {
- "description": "1-5",
- "type": "number"
- }
- },
- "required": [
- "rating",
- "member"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "selected": {
- "type": "boolean"
- },
- "servings": {
- "type": [
- "number",
- "null"
- ]
- },
- "source_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "steps": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/properties/week/anyOf/0/properties/id"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/properties/week/anyOf/0/properties/id"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "$ref": "#/properties/week/anyOf/0/properties/id"
- },
- "vote_count": {
- "type": "number"
- },
- "voters": {
- "items": {
- "$ref": "#/properties/week/anyOf/0/properties/id"
- },
- "type": "array"
- }
- },
- "required": [
- "id",
- "title",
- "position",
- "selected",
- "vote_count",
- "voters"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "admin_pick": {
+ "description": "Selected even though the vote alone would not have picked it: chosen by an admin, or added off the ballot",
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "avg_rating": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "$ref": "#/properties/week/anyOf/0/properties/id"
+ },
+ "image_generated": {
+ "description": "Photo was generated by Agent Chef, so it is safe to show publicly",
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "image_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ingredients": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "$ref": "#/properties/week/anyOf/0/properties/id"
+ },
+ "quantity": {
+ "description": "Free text, e.g. '2 lbs'",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "is_favorite": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "is_public": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "position": {
+ "description": "1-based ballot number",
+ "type": "number"
+ },
+ "public_url": {
+ "description": "Indexable public page, when published",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ratings": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "comment": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "member": {
+ "$ref": "#/properties/week/anyOf/0/properties/id"
+ },
+ "rating": {
+ "description": "1-5",
+ "type": "number"
+ }
+ },
+ "required": [
+ "rating",
+ "member"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selected": {
+ "type": "boolean"
+ },
+ "servings": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "source_recipe_id": {
+ "description": "Set when this is the household's copy of a Community recipe",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "steps": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/properties/week/anyOf/0/properties/id"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tags": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/properties/week/anyOf/0/properties/id"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "$ref": "#/properties/week/anyOf/0/properties/id"
+ },
+ "vote_count": {
+ "type": "number"
+ },
+ "voters": {
+ "items": {
+ "$ref": "#/properties/week/anyOf/0/properties/id"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "position",
+ "selected",
+ "vote_count",
+ "voters"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+]
changedOutput schema / properties / week / anyOf
Previous value: -[
- {
- "additionalProperties": true,
- "properties": {
- "created_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "status": {
- "enum": [
- "voting",
- "selected",
- "ordered",
- "done"
- ],
- "type": "string"
- },
- "voting_closes_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "week_start": {
- "description": "YYYY-MM-DD",
- "type": "string"
- }
- },
- "required": [
- "id",
- "week_start",
- "status"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": true,
+ "properties": {
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "share_url": {
+ "description": "Public page showing this week's winners",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "enum": [
+ "voting",
+ "selected",
+ "ordered",
+ "done"
+ ],
+ "type": "string"
+ },
+ "voting_closes_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "week_start": {
+ "description": "YYYY-MM-DD",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "week_start",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]