-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix avro names #408
Fix avro names #408
Conversation
The key difference is that field names, symbols and type names are unified in the Salad/RDF data model, but are separate in the Avro data model. Types and fields names and enum symbols need to have their names mapped differently. This is now handled. The practical effect is that this fixes a longstanding issue in referencing types from imported schemas, as is done in cwltool extension schema to reference cwl:Expression. refs #326
refs #326 |
Codecov Report
@@ Coverage Diff @@
## main #408 +/- ##
==========================================
- Coverage 78.98% 78.45% -0.53%
==========================================
Files 18 18
Lines 3231 3245 +14
Branches 872 876 +4
==========================================
- Hits 2552 2546 -6
- Misses 441 460 +19
- Partials 238 239 +1
Continue to review full report at Codecov.
|
This pull request introduces 2 alerts when merging 353b8b1 into ab933f0 - view on LGTM.com new alerts:
|
@rupertnash can you confirm, and maybe contribute your use case as a pytest? |
Aye, I'll take a peek |
I had a recollection that I'd done this https://github.com/rupertnash/schema_salad/tree/avro-name-conversion. I'll rebase it onto this branch |
I confirm that @rupertnash 's test fails without the changes in this PR; thanks @tetron and @rupertnash ! |
Specifically common-workflow-language/schema_salad#408 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
* Update schema-salad dependency for bug fix Specifically common-workflow-language/schema_salad#408 * Use vocabulary in schema salad validation * Fixes internal Avro type change from File to org.w3id.cwl.cwl.File Co-authored-by: Michael R. Crusoe <1330696+mr-c@users.noreply.github.com> Co-authored-by: Michael R. Crusoe <michael.crusoe@gmail.com>
For the part that still goes to avro for validation, converts to avro-compatible names with a dotted namespace instead of half standalone symbols and half URIs.
Fixes #326