schema_salad icon indicating copy to clipboard operation
schema_salad copied to clipboard

feature request: `--print-avro` should resolve `extends` references

Open ghost opened this issue 5 years ago • 2 comments

Hi! Benten relies on the schema to create all the data structures needed to analyze CWL documents. I use the schema in .json format as generated by --print-avro. Any references mentioned in any extends field in a definition I can incorporate if they are to be found in that .json file somewhere. However I see that some references are not, such as RecordSchema, InputSchema and so on. It would be nice if --print-avro resolved all extends references or at least placed them in the output .json. Thanks!

ghost avatar Aug 22 '19 21:08 ghost

I think that @denis-yuen is the other user of --print-avro, so I'd want to hear from him. If that doesn't cause him any problems (or we put it under a different flag) then I'd accept a contribution that satisfies this issue.

mr-c avatar Aug 23 '19 08:08 mr-c

Hi, I haven't looked at this in a while, but it sounds like resolving the extends references would still result in a valid avro schema so that should be fine.

In other words, if we can still do something like this we should be ok.

denis-yuen avatar Aug 23 '19 14:08 denis-yuen