object JsonSchemaUtils
- Alphabetic
- By Inheritance
- JsonSchemaUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
expandAllVariants(shape: Shape): Seq[Shape]
Recursively expands all variants (allOf/anyOf/oneOf) to leaf shapes without filtering.
Recursively expands all variants (allOf/anyOf/oneOf) to leaf shapes without filtering. Returns the shape itself if it has no variants.
-
def
expandVariants(shape: Shape, obj: Option[AmfObject]): Seq[Shape]
Expands anyOf/oneOf/allOf variants from a shape.
Expands anyOf/oneOf/allOf variants from a shape. -
allOfvariants are always kept. -anyOf/oneOfvariants are filtered by discriminator const/enum whenobjis provided. If filtering narrows the set (some eliminated), uses filtered; otherwise keeps all. - Whenobjis None, all variants are returned unfiltered. - def extractEnumValues(shape: Shape): Seq[String]
-
def
extractSemanticTypeIris(shape: Shape): Seq[String]
Extracts the @type IRIs from a Shape's @context semantic metadata.
Extracts the @type IRIs from a Shape's @context semantic metadata. For PropertyShapes, looks at the range. Then traverses: shape.fields -> meta#semantics -> meta#typeMapping (AmfArray).
-
def
extractSiblingKeys(obj: AmfObject): Set[String]
Extracts the set of property keys present in the object
-
def
filterValidVariants(variants: Seq[Shape], obj: AmfObject): Seq[Shape]
Filters union variants to only those that are still valid given the object's current state.
Filters union variants to only those that are still valid given the object's current state. A variant is valid if: - All sibling keys present in the object exist as properties in the variant - All enum constraints in the variant match the actual values in the object
-
def
findDynamicPropertySchema(nodeShape: NodeShape, propertyName: String): Option[Shape]
Finds the schema for a dynamic property (not explicitly defined in the schema).
Finds the schema for a dynamic property (not explicitly defined in the schema). First tries to match a pattern property, then falls back to additionalPropertiesSchema. This is the same logic used in SchemaDefinitionResolver.findViableDefinitions.
-
def
findProperty(nodeShape: NodeShape, name: String): Option[PropertyShape]
Find a property in a NodeShape by name, first trying exact match, then pattern properties.
- def findPropertyByName(nodeShape: NodeShape, name: String): Option[PropertyShape]
- def findPropertyByPatternName(nodeShape: NodeShape, name: String): Option[PropertyShape]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getFieldEntryDefinition(fieldEntry: FieldEntry): Option[Shape]
Extracts the schema definition shape from a FieldEntry's sourceSchemaDef annotation.
Extracts the schema definition shape from a FieldEntry's sourceSchemaDef annotation. Unwraps PropertyShape to its range.
- def getShapeDefinition(obj: AmfObject): Option[Shape]
- def getValidProperties(nodeShape: NodeShape): Seq[PropertyShape]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated