mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Aircraft with a separate avionics logbook can file radio, transponder and autopilot work under it: AVIONICS joins Aircraft, Engine, Propeller and Other everywhere a logbook is chosen or filtered (entry form, logbook filter, squawk resolution, templates, imports). - Logbook transcription knows it (schema enum and prompt), so scanned avionics pages aren't filed as Aircraft. - The API's ?log= filter and drafts API accept it; docs updated. - No migration: log_type is a string column. Existing entries unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.6 KiB
JSON
33 lines
1.6 KiB
JSON
{
|
|
"type": "object",
|
|
"properties": {
|
|
"entries": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"date": { "type": ["string", "null"], "description": "YYYY-MM-DD, or null if unreadable" },
|
|
"log_type": { "type": "string", "enum": ["AC", "ENG", "PROP", "AVIONICS", "OTHER"] },
|
|
"entry_type": { "type": "string", "enum": ["MAINTENANCE", "INSPECTION", "FLIGHT", "HOURS_UPDATE", "OTHER"] },
|
|
"text": { "type": "string" },
|
|
"aircraft_hours": { "type": ["number", "null"] },
|
|
"signoff_person": { "type": ["string", "null"] },
|
|
"signoff_location": { "type": ["string", "null"] },
|
|
"signoff_certificate_type": { "type": ["string", "null"], "description": "AP, IA, A, P, REPAIR_STATION, REPAIRMAN, PILOT, OTHER, or null" },
|
|
"signoff_certificate_number": { "type": ["string", "null"] },
|
|
"page_start": { "type": "integer" },
|
|
"page_end": { "type": "integer" },
|
|
"confidence": { "type": "string", "enum": ["high", "medium", "low"] }
|
|
},
|
|
"required": ["date", "log_type", "entry_type", "text", "aircraft_hours", "signoff_person", "signoff_location",
|
|
"signoff_certificate_type", "signoff_certificate_number", "page_start", "page_end", "confidence"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"non_logbook_pages": { "type": "array", "items": { "type": "integer" } },
|
|
"unparseable_pages": { "type": "array", "items": { "type": "integer" } }
|
|
},
|
|
"required": ["entries", "non_logbook_pages", "unparseable_pages"],
|
|
"additionalProperties": false
|
|
}
|