Closed Bjwebb closed 5 years ago
@duncandewhurst Can you run ocdskit with this branch, to see if the behavior is as you request in #42? If so, please feel free to merge.
@Bjwebb the behaviour now seems to be that the description from the reference is used in the flattened schema, rather than the description of the object being referred to.
I think that's an improvement on the existing behaviour, but it would be preferable to have a row for both the description from the reference and the description from the object being referred to, since sometimes important information is split across both, e.g. for budget
, organizationReference
and classification
. Would it be a lot of work to add that functionality? (I described it in more detail in #42)
@duncandewhurst Ah sorry, I'd missed that. I've added that functionality. I have mixed feelings about using reference
for the type though, as its not the type that should be in the actual JSON file, so I worry it may cause confusion.
thanks @Bjwebb, good point on the use of reference
, the other options would be:
object
as the type, so there would be two rows with the only difference being the descriptionNeither of which seem ideal, unless there's anything else you can think of?
I can't think of anything better. (1.) seems like the least bad option.
I've implemented (1.) in my most recent commit.
@duncandewhurst Please feel free to merge if the new output is what you expect/want.
I assume the new output is fine.
Closes #42