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

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

Comments

Projects
None yet
3 participants
@alexanderdean
Member

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 from Create self-describing schema annotation to Create Schema annotation for self-describing unstruct events / contexts Jun 20, 2014

@alexanderdean

This comment has been minimized.

Show comment
Hide comment
@alexanderdean

alexanderdean Jun 20, 2014

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@alexanderdean

alexanderdean Jun 20, 2014

Member

We can put the annotation on Hashmap instances too

Member

alexanderdean commented Jun 20, 2014

We can put the annotation on Hashmap instances too

@alexanderdean

This comment has been minimized.

Show comment
Hide comment
@alexanderdean

alexanderdean Jul 4, 2014

Member

Pushing back to 0.5.0

Member

alexanderdean commented Jul 4, 2014

Pushing back to 0.5.0

@jonalmeida

This comment has been minimized.

Show comment
Hide comment
@jonalmeida

jonalmeida Aug 17, 2014

Contributor

Moving forward since 0.6.0 is bare

Contributor

jonalmeida commented Aug 17, 2014

Moving forward since 0.6.0 is bare

@alexanderdean

This comment has been minimized.

Show comment
Hide comment
@alexanderdean

alexanderdean Aug 18, 2014

Member

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

Member

alexanderdean commented Aug 18, 2014

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

@jonalmeida

This comment has been minimized.

Show comment
Hide comment
@jonalmeida

jonalmeida Aug 18, 2014

Contributor

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

Contributor

jonalmeida commented Aug 18, 2014

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

@alexanderdean

This comment has been minimized.

Show comment
Hide comment
@alexanderdean

alexanderdean Sep 2, 2015

Member

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

Member

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