quizbowl / schema

This is how we describe quizbowl.
https://schema.quizbowl.technology
MIT License
9 stars 3 forks source link

Variable answer types #17

Closed puls closed 10 years ago

puls commented 10 years ago

Fixes #13

@jonahgreenthal

jonahgreenthal commented 10 years ago

(Also: My version would allow for smarter calculation of bonuses_heard. Some weird formats have things like "only tossups in the second half have bonuses".)

puls commented 10 years ago

How about this new version?

jonahgreenthal commented 10 years ago

Getting better, but two last things:

jonahgreenthal commented 10 years ago

How are we doing on this?

puls commented 10 years ago

PlayerAnswerCount has a value because of the annotation below: _"Exactly one of value or answertype is required."

As for labels, I feel like we're veering towards prescribing an implementation. I'd say if the column header is "15" then the label should be "15".

jonahgreenthal commented 10 years ago

More precisely, my question about PlayerAnswerCount amounts to "Why do we want the flexibility of allowing either value or answer_type?". It seems like that's just going to make implementation more difficult.

Labels and column headers: My point is sometimes we might want distinct names and short names. Perhaps short_label would be better than column_header; I agree with not wanting to prescribe an implementation, but wanting to call a given question type "Power" in one place and "15" or just "P" in another seems very likely to be wanted.

puls commented 10 years ago

In the simple case (and by "the simple case", I mean "the NAQT case", because really):

{"value":10} vs {"answer_type":{"value":10}} vs {"answer_type":{"$ref":"answer_type_10"}}

is all noise reduction.

I'll add short labels.

puls commented 10 years ago

(That is to say, I'd like to keep the eventual JSON output as human-readable as possible unless it really needs to be obtuse.)

jonahgreenthal commented 10 years ago

Cool; let me know when I should take another look at the diff.

puls commented 10 years ago

Go for it.

jonahgreenthal commented 10 years ago

Hooray!

jonahgreenthal commented 10 years ago

Okay, so that didn't actually merge