Skip to content

Naming inconsistency  #3

@cniesen

Description

@cniesen

Any reason why the cabrillo headers titles are in all upper case vs lower case in the qso records of the json object?

It would be nice to keep them in the same format like

{
	"CABRILLO-VERSION": "3.0",
	"CONTEST": "NAQP-CW",
	"LOCATION": "CA",
	"CALLSIGN": "N5KO",
	"CATEGORY-OPERATOR": "SINGLE-OP",
	"CATEGORY-TRANSMITTER": "ONE",
	"CATEGORY-ASSISTED": "NON-ASSISTED",
	"CATEGORY-BAND": "ALL",
	"CATEGORY-POWER": "LOW",
	"CATEGORY-MODE": "CW",
	"CATEGORY-STATION": "FIXED",
	"CLAIMED-SCORE": "404670",
	"NAME": "Trey Garlough",
	"SOAPBOX": [
		"This contest was great.",
		"Looking forward to next year."
	],
	"QSO": [{
			"FREQUENCY": "28048",
			"MODE": "CW",
			"DATE": "2014-01-11",
			"TIME": "1800",
			"SENT-CALLSIGN": "N5KO",
			"SENT-NAME": "TREY",
			"SENT-EXCHANGE": "CA",
			"RECEIVED-CALLSIGN": "N4PN",
			"RECEIVED-NAME": "PAUL",
			"RECEIVED-EXCHANGE": "GA"
		}
	]
}

or

{
	cabrilloVersion: "3.0",
	contest: "NAQP-CW",
	location: "CA",
	categoryCallsign: "N5KO",
	categoryOperator: "SINGLE-OP",
	categoryTransmitter: "ONE",
	categoryAssisted: "NON-ASSISTED",
	categoryBand: "ALL",
	categoryPower: "LOW",
	categoryMode: "CW",
	categoryStation: "FIXED",
	claimedScore: "404670",
	name: "Trey Garlough",
	soapbox: [
		"This contest was great.",
		"Looking forward to next year."
	],
	qso: [{
			frequency: "28048",
			mode: "CW",
			date: "2014-01-11",
			time: "1800",
			sentCallsign: "N5KO",
			sentName: "TREY",
			sentExchange: "CA",
			receivedCallsign: "N4PN",
			receivedNamme: "PAUL",
			receivedExchange: "GA"
		}
	]
}

The second option looks a bit nicer but is much harder to implement, specifically the headers.

Also would be nice to make the address and soapbox arrays of strings instead of objects.

What do you think?

BTW, I'm working on adding some test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions