Skip to content

Commit 3ebde10

Browse files
committed
Move Vocabulary to vocabulary package
1 parent 3cb5aaa commit 3ebde10

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

src/main/java/com/networknt/schema/dialect/Dialect.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
import com.networknt.schema.SchemaException;
2626
import com.networknt.schema.SchemaLocation;
2727
import com.networknt.schema.SchemaContext;
28-
import com.networknt.schema.Vocabularies;
29-
import com.networknt.schema.Vocabulary;
30-
import com.networknt.schema.VocabularyFactory;
3128
import com.networknt.schema.SpecificationVersion;
3229
import com.networknt.schema.keyword.FormatKeyword;
3330
import com.networknt.schema.keyword.Keyword;
@@ -36,6 +33,10 @@
3633
import com.networknt.schema.keyword.UnknownKeywordFactory;
3734
import com.networknt.schema.keyword.KeywordType;
3835
import com.networknt.schema.utils.StringUtils;
36+
import com.networknt.schema.vocabulary.Vocabularies;
37+
import com.networknt.schema.vocabulary.Vocabulary;
38+
import com.networknt.schema.vocabulary.VocabularyFactory;
39+
3940
import org.slf4j.Logger;
4041
import org.slf4j.LoggerFactory;
4142

src/main/java/com/networknt/schema/Vocabularies.java renamed to src/main/java/com/networknt/schema/vocabulary/Vocabularies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.networknt.schema;
16+
package com.networknt.schema.vocabulary;
1717

1818
import java.util.HashMap;
1919
import java.util.Map;

src/main/java/com/networknt/schema/Vocabulary.java renamed to src/main/java/com/networknt/schema/vocabulary/Vocabulary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.networknt.schema;
16+
package com.networknt.schema.vocabulary;
1717

1818
import java.util.Arrays;
1919
import java.util.LinkedHashSet;

src/main/java/com/networknt/schema/VocabularyFactory.java renamed to src/main/java/com/networknt/schema/vocabulary/VocabularyFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.networknt.schema;
16+
package com.networknt.schema.vocabulary;
1717

1818
/**
1919
* Factory for {@link Vocabulary}.

src/test/java/com/networknt/schema/Issue994Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.networknt.schema.dialect.Dialect;
2626
import com.networknt.schema.dialect.Dialects;
2727
import com.networknt.schema.serialization.JsonMapperFactory;
28+
import com.networknt.schema.vocabulary.Vocabulary;
2829

2930
class Issue994Test {
3031
@Test

src/test/java/com/networknt/schema/VocabularyTest.java renamed to src/test/java/com/networknt/schema/vocabulary/VocabularyTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.networknt.schema;
17+
package com.networknt.schema.vocabulary;
1818

1919
import static org.junit.jupiter.api.Assertions.assertEquals;
2020
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -25,11 +25,20 @@
2525

2626
import org.junit.jupiter.api.Test;
2727

28+
import com.networknt.schema.Error;
29+
import com.networknt.schema.InputFormat;
30+
import com.networknt.schema.InvalidSchemaException;
31+
import com.networknt.schema.OutputFormat;
32+
import com.networknt.schema.Schema;
33+
import com.networknt.schema.SchemaRegistry;
34+
import com.networknt.schema.SpecificationVersion;
2835
import com.networknt.schema.dialect.BasicDialectRegistry;
2936
import com.networknt.schema.dialect.Dialect;
3037
import com.networknt.schema.dialect.Dialects;
3138
import com.networknt.schema.keyword.AnnotationKeyword;
3239
import com.networknt.schema.output.OutputUnit;
40+
import com.networknt.schema.vocabulary.Vocabulary;
41+
import com.networknt.schema.vocabulary.VocabularyFactory;
3342

3443
/**
3544
* Tests for vocabulary support in meta schemas.

0 commit comments

Comments
 (0)