Skip to content

Commit

Permalink
Revert "Revert "exposing NotSchema#mustNotMatch property, as requeste…
Browse files Browse the repository at this point in the history
…d in #53""

This reverts commit 3e1a7a6.
  • Loading branch information
erosb committed Jan 26, 2017
1 parent d3252a7 commit e1843bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/src/main/java/org/everit/json/schema/NotSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public NotSchema(final Builder builder) {
this.mustNotMatch = requireNonNull(builder.mustNotMatch, "mustNotMatch cannot be null");
}

public Schema getMustNotMatch() {
return mustNotMatch;
}

@Override
public void validate(final Object subject) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.everit.json.schema.SchemaException;
import org.everit.json.schema.loader.internal.TypeBasedMultiplexer;
import org.json.JSONObject;
import org.json.JSONPointer;

import java.net.URI;
import java.util.Map;
Expand All @@ -24,7 +25,7 @@ class LoadingState {

URI id = null;

String pointerToCurrentObj;
JSONPointer pointerToCurrentObj;

final Map<String, ReferenceSchema.Builder> pointerSchemas;

Expand Down

0 comments on commit e1843bc

Please sign in to comment.