Commit e880dd0
authored
Main refactor for 2.x (#1198)
* Refactor to remove ErrorMessageType
* Remove failFast from MessageSourceValidationMessage builder
* Remove hard coded instance location for the error message
* Rename ValidationMessage to Error
* Rename JsonSchemaWalker to Walker
* Rename JsonSchemaValidator to Validator
* Rename JsonValidator to KeywordValidator and fix class hierarchy
* Move keyword and keyword validators to keyword package
* Rename SpecVersion.VersionFlag to Specification.Version and refactor
* Rename SchemaId to DialectId
* Rename JsonMetaSchema to Dialect
* Refactor dialect and add dialects
* Rename JsonMetaSchemaFactory to DialectRegistry
* Rename JsonSchema to Schema
* Rename JsonSchemaFactory to SchemaRegistry
* Refactor SchemaRegistry
* Rename SchemaValidatorsConfig to SchemaRegistryConfig and move from ValidationContext to SchemaRegistry and refactor
Rename JsonSchemaWalkerListener to SchemaWalkerListener
Rename DefaultItemWalkListenerRunner to ItemWalkListenerRunner
Rename DefaultKeywordWalkListenerRunner to KeywordWalkListenerRunner
Rename DefaultPropertyWalkListenerRunner to PropertyWalkListenerRunner
Shift walk configuration to WalkConfig
* Rename ValidationContext to SchemaContext
* Remove JsonSchemaVersion
* Rename JsonSchemaIdValidator to SchemaIdValidator
* Rename JsonSchemaRef to SchemaRef
* Rename JsonSchemaException to SchemaException
* Rename JsonNodePath to NodePath
* Rename preloadJsonSchema in KeywordValidator to preloadSchema
* Rename JsonNodeAnnotation to Annotation
* Rename BaseFormatJsonValidator to BaseFormatValidator
* Rename JsonNodeResult to SchemaResult
* Rename ValidationResult to Result
* Refactor naming
* Rename Specification.Version to SpecificationVersion and refactor
* Rename ValidatorTypeCode to Keywords
* Rename VersionCode to SpecificationVersionRange
* Rename ValidatorTypeCode to KeywordType
* Move ThresholdMixin to keyword package
* Move Vocabulary to vocabulary package
* Move ApplyDefaultsStrategy to walk package
* Move Format and Formats to format package
* Remove AbstractFormat and BaseFormat
* Refactor format
* Move CachedSupplier to utils package
* Rename CachedSupplier to ThreadSafeCachingSupplier and refactor
* Move NodePath and PathType to path package
* Refactor and fix discriminator
* Refactor discriminator
* Refactor discriminator
* Refactor discriminator
* Refactor discriminator
* Refactor SchemaLoader
* Refactor path type
* Rename SchemaResult to InstanceResult
* Move SpecificationVersionDetector to test
* Move JsonType and TypeFactory to utils package
* Rename JsonNodeReader to NodeReader
* Refactor SchemaRegistry and ResourceLoaders
* Fix UrnTest
* Refactor Dialect Registry and Schema Registry
* Rename ItemsValidator to ItemsLegacyValidator and ItemsValidator202012 to ItemsValidator
* Refactor StringUtils and StringChecker into Strings
* Refactor Schema to allow loading input from iri
* Refactor Vocabulary rename iri to id
* Allow adding keyword to dialect to override vocabulary keywords
* Rename JsonNodeUtil to JsonNodeTypes
* Remove SetView
* Suppress warnings for ThresholdMixinPerfTest
* Add propertyDependencies keyword
* Rename PROPERTYNAMES KeywordType to PROPERTY_NAMES
* Refactor SpecificationVersionRange and rename constants
* Fix propertyNames and not messages
* Rename VocabularyFactory to VocabularyRegistry
* Rename enableSchemaCache to schemaCacheEnabled in SchemaRegistry
* Fix discriminator
* Fix enum
* Rename JsonLocationAware to TokenStreamLocationAware to align with v3
* migration docs1 parent 02a6e06 commit e880dd0
File tree
439 files changed
+13400
-13311
lines changed- doc
- src
- main
- java/com/networknt/schema
- annotation
- dialect
- format
- keyword
- oas
- output
- path
- regex
- resource
- result
- serialization
- node
- utils
- vocabulary
- walk
- resources
- test
- java/com/networknt/schema
- benchmark
- format
- i18n
- keyword
- oas
- output
- path
- resource
- serialization
- suite
- utils
- vocabulary
- walk
- resources
- draft2019-09
- draft2020-12
- draft4
- draft7
- issue686
- openapi3
- schema
- customMessageTests
- unevaluatedTests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
439 files changed
+13400
-13311
lines changedLarge diffs are not rendered by default.
Lines changed: 0 additions & 29 deletions
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments