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

Type rule does not default to "any" or accept unrecognised types as per spec #11

Closed
joelittlejohn opened this issue Jun 23, 2013 · 2 comments
Milestone

Comments

@joelittlejohn
Copy link
Owner

Original author: joelittl...@gmail.com (February 22, 2011 12:31:42)

What steps will reproduce the problem?

  1. Create a schema using a property that omits the "type" node
  2. Create a schema using a property that contains a "type" node with a value that is unrecognised (i.e. not one of the types listed at http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1).
  3. Run jsonschema2pojo with these schemas

What is the expected output?

  1. Property that omits "type" should produce property of type java.lang.Object.
  2. Property that includes an unrecognised value for "type" should produce a java.lang.Object.

What do you see instead?
Code generation fails in both cases.

Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=11

@joelittlejohn
Copy link
Owner Author

From joelittl...@gmail.com on February 22, 2011 12:34:15
Fixed, see rev 4653d03260.

@joelittlejohn
Copy link
Owner Author

From joelittl...@gmail.com on February 22, 2011 12:34:38
r4653d03260

flibbertigibbet added a commit to flibbertigibbet/jsonschema2pojo that referenced this issue Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant