Skip to content

Commit cf9a015

Browse files
committed
Annotate external assertion classes with experimental annotation
1 parent a4aed8e commit cf9a015

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/extension/ExternalAnnotationCollector.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package io.github.optimumcode.json.schema.extension
22

33
import io.github.optimumcode.json.schema.AnnotationKey
4+
import io.github.optimumcode.json.schema.ExperimentalApi
45

6+
@ExperimentalApi
57
public interface ExternalAnnotationCollector {
68
/**
79
* Adds annotation with provided [key]

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/extension/ExternalAssertion.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package io.github.optimumcode.json.schema.extension
22

33
import io.github.optimumcode.json.schema.ErrorCollector
4+
import io.github.optimumcode.json.schema.ExperimentalApi
45
import io.github.optimumcode.json.schema.model.AbstractElement
56

67
/**
78
* This interface allows you to implement your own schema assertion.
89
* This interface **does not** allow implementing custom applicators.
910
* Only simple assertions (like: _format_, _type_) can be implemented.
1011
*/
12+
@ExperimentalApi
1113
public interface ExternalAssertion {
1214
/**
1315
* Validates passes [element].

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/extension/ExternalAssertionContext.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package io.github.optimumcode.json.schema.extension
22

33
import io.github.optimumcode.json.pointer.JsonPointer
4+
import io.github.optimumcode.json.schema.ExperimentalApi
45

6+
@ExperimentalApi
57
public interface ExternalAssertionContext {
68
/**
79
* A JSON pointer to the currently validating element in the object that is being validated

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/extension/ExternalAssertionFactory.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package io.github.optimumcode.json.schema.extension
22

3+
import io.github.optimumcode.json.schema.ExperimentalApi
34
import kotlinx.serialization.json.JsonElement
45

6+
@ExperimentalApi
57
public interface ExternalAssertionFactory {
68
/**
79
* A keyword that is associated with the [ExternalAssertion] created by this factory.

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/extension/ExternalLoadingContext.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package io.github.optimumcode.json.schema.extension
22

33
import io.github.optimumcode.json.pointer.JsonPointer
4+
import io.github.optimumcode.json.schema.ExperimentalApi
45

6+
@ExperimentalApi
57
public interface ExternalLoadingContext {
68
/**
79
* A JSON pointer to the current position in schema associated with currently processing element

0 commit comments

Comments
 (0)