Using ION schema to validate JAVA POJO
up vote
0
down vote
favorite
I have schemas defined in ION and I want to be able to use these to validate an incoming java object. What would be the best way to do so? Example ION schema :
type :: {
name: Operation,
major_version: 1,
minor_version: 0,
doc: '''An Operation''',
base: struct,
fields: [
{
name: name,
type: string,
min_occurs: 1,
max_occurs: 1,
doc: '''Operation name'''
}
]
}
Now, I have an incoming Java POJO which I want to validate against this schema. (E.g. it has a string field called name). This is a simplistic example , but the schema may be nested and more complex.
java validation ion
New contributor
add a comment |
up vote
0
down vote
favorite
I have schemas defined in ION and I want to be able to use these to validate an incoming java object. What would be the best way to do so? Example ION schema :
type :: {
name: Operation,
major_version: 1,
minor_version: 0,
doc: '''An Operation''',
base: struct,
fields: [
{
name: name,
type: string,
min_occurs: 1,
max_occurs: 1,
doc: '''Operation name'''
}
]
}
Now, I have an incoming Java POJO which I want to validate against this schema. (E.g. it has a string field called name). This is a simplistic example , but the schema may be nested and more complex.
java validation ion
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have schemas defined in ION and I want to be able to use these to validate an incoming java object. What would be the best way to do so? Example ION schema :
type :: {
name: Operation,
major_version: 1,
minor_version: 0,
doc: '''An Operation''',
base: struct,
fields: [
{
name: name,
type: string,
min_occurs: 1,
max_occurs: 1,
doc: '''Operation name'''
}
]
}
Now, I have an incoming Java POJO which I want to validate against this schema. (E.g. it has a string field called name). This is a simplistic example , but the schema may be nested and more complex.
java validation ion
New contributor
I have schemas defined in ION and I want to be able to use these to validate an incoming java object. What would be the best way to do so? Example ION schema :
type :: {
name: Operation,
major_version: 1,
minor_version: 0,
doc: '''An Operation''',
base: struct,
fields: [
{
name: name,
type: string,
min_occurs: 1,
max_occurs: 1,
doc: '''Operation name'''
}
]
}
Now, I have an incoming Java POJO which I want to validate against this schema. (E.g. it has a string field called name). This is a simplistic example , but the schema may be nested and more complex.
java validation ion
java validation ion
New contributor
New contributor
New contributor
asked Nov 8 at 9:34
user1736473
1
1
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
user1736473 is a new contributor. Be nice, and check out our Code of Conduct.
user1736473 is a new contributor. Be nice, and check out our Code of Conduct.
user1736473 is a new contributor. Be nice, and check out our Code of Conduct.
user1736473 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204933%2fusing-ion-schema-to-validate-java-pojo%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password