Skip to content

Commit

Permalink
rename formatvocb to formatannotationvocb
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-toepfer committed Jun 6, 2024
1 parent 301390d commit 337a4da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import io.github.sebastiantoepfer.jsonschema.core.vocab.applicator.ApplicatorVocabulary;
import io.github.sebastiantoepfer.jsonschema.core.vocab.content.ContentVocabulary;
import io.github.sebastiantoepfer.jsonschema.core.vocab.core.CoreVocabulary;
import io.github.sebastiantoepfer.jsonschema.core.vocab.format.FormatVocabulary;
import io.github.sebastiantoepfer.jsonschema.core.vocab.format.FormatAnnotationVocabulary;
import io.github.sebastiantoepfer.jsonschema.core.vocab.meta.MetaDataVocabulary;
import io.github.sebastiantoepfer.jsonschema.core.vocab.unevaluated.UnevaluatedVocabulary;
import io.github.sebastiantoepfer.jsonschema.core.vocab.validation.ValidationVocabulary;
Expand All @@ -49,7 +49,7 @@ public final class OfficialVocabularies implements LazyVocabularies {
new ApplicatorVocabulary(),
new ValidationVocabulary(JSONP),
new MetaDataVocabulary(),
new FormatVocabulary(),
new FormatAnnotationVocabulary(),
new UnevaluatedVocabulary(),
new ContentVocabulary()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
* source: https://www.learnjsonschema.com/2020-12/format-annotation/
* spec: https://json-schema.org/draft/2020-12/json-schema-validation.html#section-7.2.1
*/
public final class FormatVocabulary implements Vocabulary {
public final class FormatAnnotationVocabulary implements Vocabulary {

private final Vocabulary vocab;

public FormatVocabulary() {
public FormatAnnotationVocabulary() {
this.vocab = new DefaultVocabulary(URI.create("https://json-schema.org/draft/2020-12/vocab/format-annotation"));
}

Expand Down

0 comments on commit 337a4da

Please sign in to comment.