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

sbt-iglu-push: add #418

Open
chuwy opened this issue Aug 20, 2018 · 0 comments
Open

sbt-iglu-push: add #418

chuwy opened this issue Aug 20, 2018 · 0 comments

Comments

@chuwy
Copy link
Contributor

chuwy commented Aug 20, 2018

Just updated a schema in one of embedded registries and realized how easy it can get out of sync with main Iglu registry.

Illustrative scenario: we have some schema-ed Foo(enum: Bar | Baz) entity in a spark job that needs to be:

  1. Parsed from JSON
  2. Validated by Iglu client
  3. Decoded into Foo(Bar) or Foo(Baz) class

Decoder knows that Bar and Baz are acceptable values. However once we add Qux to list of acceptable values - schema will get out of sync.

With sbt-iglu-push we can configure an SBT task to derive schema from decoder and push it to Iglu Server during CI/CD.

Kind of reverse of #88 (which is Schema -> Class definition, while we have Class definition -> Schema, which is much more approachable)

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

No branches or pull requests

1 participant