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

Add [Vocabulary] annotation #7

Open
tpluscode opened this issue Jan 11, 2017 · 1 comment
Open

Add [Vocabulary] annotation #7

tpluscode opened this issue Jan 11, 2017 · 1 comment
Assignees

Comments

@tpluscode
Copy link
Contributor

As suggested by @asbjornu, it will be good to give users an option to define @vocab using an attribute instead of defining it in the @context:

[Vocabulary("http://schema.org/")]
public class Person
{
}
@tpluscode
Copy link
Contributor Author

I'm unsure whether it should simply produce

{
   "@vocab": "http://schema.org/"
}

or work like VocabContext<Person>()

@tpluscode tpluscode self-assigned this Jan 12, 2017
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