Skip to content

Commit

Permalink
https://github.com/FasterXML/jackson-module-jsonSchema/issues/27
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Sep 1, 2015
1 parent 58c9737 commit 163f7db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package com.fasterxml.jackson.module.jsonSchema;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
import java.util.Map;

public class TestCyclic extends SchemaTestBase
{
// [Issue#4]
@JsonPropertyOrder({"next", "name"})
public class Loop {
public String name;
public Loop next;
Expand Down Expand Up @@ -42,6 +44,9 @@ public void testSimpleCyclic() throws Exception
"\"properties\":{\"next\":{\"type\":\"object\"," +
"\"$ref\":\"urn:jsonschema:com:fasterxml:jackson:module:jsonSchema:TestCyclic:Loop\"}" +
",\"name\":{\"type\":\"string\"}}}";

System.out.println(EXP);
System.out.println(json);

assertEquals(aposToQuotes(EXP), json);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ public class TestReadJsonSchema
extends SchemaTestBase
{
enum SchemaEnum {
YES, NO;
NO,YES;
}

@JsonPropertyOrder(alphabetic=true)
static class SchemableBasic
{
public SchemaEnum testEnum;
Expand Down

0 comments on commit 163f7db

Please sign in to comment.