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

Create Schema annotation for self-describing unstruct events / contexts #27

Open
alexanderdean opened this issue Jun 20, 2014 · 7 comments
Open

Comments

@alexanderdean
Copy link
Member

@alexanderdean alexanderdean commented Jun 20, 2014

The basic idea is that you would annotate a Java class like this:

@Schema(vendor = "com.atari.pacman", name = "gameLevel", format = "jsonschema", version = "1-0-0") // Maps the bean to our self-describing schema for the game level
public class GameLevel implements Serializable {
  ...
}

and then it's easy to add it in as a context to an event. When an annotated class is passed in as a context (or an unstructured event) then it is automatically converted into a self-describing JSON.

@alexanderdean alexanderdean added this to the Version 0.3.0 milestone Jun 20, 2014
@alexanderdean alexanderdean self-assigned this Jun 20, 2014
@alexanderdean alexanderdean changed the title Create self-describing schema annotation Create Schema annotation for self-describing unstruct events / contexts Jun 20, 2014
@alexanderdean
Copy link
Member Author

@alexanderdean alexanderdean commented Jun 20, 2014

Note we should let the user set a default/global vendor and format, as typing this will get old fast.

@alexanderdean
Copy link
Member Author

@alexanderdean alexanderdean commented Jun 20, 2014

We can put the annotation on Hashmap instances too

@alexanderdean
Copy link
Member Author

@alexanderdean alexanderdean commented Jul 4, 2014

Pushing back to 0.5.0

@jonalmeida
Copy link
Contributor

@jonalmeida jonalmeida commented Aug 17, 2014

Moving forward since 0.6.0 is bare

@alexanderdean
Copy link
Member Author

@alexanderdean alexanderdean commented Aug 18, 2014

Thanks Jonathan. Note that Android release is much higher priority than Java 0.6.0

@jonalmeida
Copy link
Contributor

@jonalmeida jonalmeida commented Aug 18, 2014

For sure, was just cleaning my issues in the java tracker 👍

@alexanderdean
Copy link
Member Author

@alexanderdean alexanderdean commented Sep 2, 2015

This is quite ambitious - interested to see if it is doable...

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.