Skip to content
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

[WIP] Courier key type #61

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

[WIP] Courier key type #61

wants to merge 10 commits into from

Conversation

kchen-coursera
Copy link

@kchen-coursera kchen-coursera commented Apr 25, 2017

Sample code changes for supporting new ID type. There are quite a bit of work still missing namely:

  • codegen
  • plugin changes to support this
  • key type annotation support
  • fixtures
  • tests

@@ -36,7 +36,8 @@ object Courier extends Build with OverridablePublishSettings {

override lazy val settings = super.settings ++ overridePublishSettings ++
Seq(
organization := "org.coursera.courier")
organization := "org.coursera.courier",
isSnapshot := true)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is important to ensure that all local changes are published for testing

@@ -469,9 +473,24 @@ private UnionDataSchema parseUnion(
return schema;
}

private RecordDataSchema parseRecord(
private RecordDataSchema parseKey(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We likely have to copy RecordDataSchema since it's final or decorate it with additional annotations so we don't erase type information of the new key keyword. It's also one possible place we can add some validation to make sure the courier document conforms to spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant