changedInput schema / $schema
Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
addedInput schema / additionalProperties
Added value: +false
changedOutput schema / $schema
Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
addedOutput schema / anyOf
Added value: +[
+ {
+ "not": {
+ "required": [
+ "error"
+ ]
+ },
+ "required": [
+ "recall_number",
+ "recall_date",
+ "last_updated",
+ "title",
+ "description",
+ "cpsc_url",
+ "consumer_contact",
+ "hazards",
+ "remedy_options",
+ "remedy_instructions",
+ "products",
+ "upcs",
+ "injuries",
+ "manufacturers",
+ "importers",
+ "retailers",
+ "distributors",
+ "manufacturer_countries",
+ "images",
+ "coordinated_recalls",
+ "data_quality_notes",
+ "cpsc_jurisdiction",
+ "source_note"
+ ]
+ },
+ {
+ "required": [
+ "error"
+ ]
+ }
+]
addedOutput schema / properties / error
Added value: +{
+ "additionalProperties": {},
+ "description": "Present when the call failed. Absent on success.",
+ "properties": {
+ "code": {
+ "description": "JSON-RPC error code for this failure.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "data": {
+ "additionalProperties": {},
+ "properties": {
+ "reason": {
+ "description": "Machine-readable failure mode. Declared by this tool: `not_found`: No recall exists with the given recall number `upstream_error`: The saferproducts.gov API returned a transient error or timed out `upstream_rejected`: The saferproducts.gov API answered with an error row instead of a recall record, which the same request will always produce Other values are possible when a failure originates below the handler.",
+ "examples": [
+ "not_found",
+ "upstream_error",
+ "upstream_rejected"
+ ],
+ "type": "string"
+ },
+ "recovery": {
+ "additionalProperties": {},
+ "description": "Actionable next step for the caller.",
+ "properties": {
+ "hint": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "hint"
+ ],
+ "type": "object"
+ },
+ "retryable": {
+ "description": "Whether retrying may succeed.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "message": {
+ "description": "Human-readable description of what went wrong.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+}
removedOutput schema / required
Removed value: -[
- "recall_number",
- "recall_date",
- "last_updated",
- "title",
- "description",
- "cpsc_url",
- "consumer_contact",
- "hazards",
- "remedy_options",
- "remedy_instructions",
- "products",
- "upcs",
- "injuries",
- "manufacturers",
- "importers",
- "retailers",
- "distributors",
- "manufacturer_countries",
- "images",
- "coordinated_recalls",
- "data_quality_notes",
- "cpsc_jurisdiction",
- "source_note"
-]