io.atlasmap.json.inspect.JsonSchemaInspector.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4?
7 ? p ?
5 ? ? ?
?
? ? ?
?
? ?
?
p ? ?
p ?
9 ? ?
?
? ? ? ?
? ? ? ?
? ?
? ? ? ? ? ?
? ? ? ? p ? ? ? ? ? ?
! ? ?
1 ?
1
' ? ?
1 ?
/
1
/ ?
9
9
5
5
9
@ ?
9
@
@ ?
9! "#
9$
p% ?
1&'
9(
9)
p*+,- "./ ?01 ?23 ?45 ?67 ?89:;< ?= >?
e ?
e@
AB
CD ?EFGH IJ
KL
p ?MN InnerClasses JsonFieldBuilder LOG Lorg/slf4j/Logger; myself .Lio/atlasmap/json/inspect/JsonSchemaInspector; ()V Code LineNumberTable LocalVariableTable this instance 0()Lio/atlasmap/json/inspect/JsonSchemaInspector; inspect 6(Ljava/lang/String;)Lio/atlasmap/json/v2/JsonDocument; jsonDocument "Lio/atlasmap/json/v2/JsonDocument; objectMapper -Lcom/fasterxml/jackson/databind/ObjectMapper; rootNode )Lcom/fasterxml/jackson/databind/JsonNode;
definitionMap Ljava/util/Map; rootNodeType Lio/atlasmap/json/v2/JsonField; e Ljava/lang/Exception; schema Ljava/lang/String; LocalVariableTypeTable LLjava/util/Map;
StackMapTableJO ?PQ ?
Exceptions populateDefinitions ;(Lcom/fasterxml/jackson/databind/JsonNode;Ljava/util/Map;)V node definitions Signature x(Lcom/fasterxml/jackson/databind/JsonNode;Ljava/util/Map;)V loadProperties \(Lcom/fasterxml/jackson/databind/JsonNode;Ljava/lang/String;Ljava/util/Map;)Ljava/util/List; entry Entry Ljava/util/Map$Entry; type
parentPath answer Ljava/util/List;
properties topFields Ljava/util/Iterator; RLjava/util/Map$Entry; 1Ljava/util/List; hLjava/util/Iterator;>;RS
?(Lcom/fasterxml/jackson/databind/JsonNode;Ljava/lang/String;Ljava/util/Map;)Ljava/util/List; getJsonFieldBuilder ?(Ljava/lang/String;Lcom/fasterxml/jackson/databind/JsonNode;Ljava/lang/String;Ljava/util/Map;Z)Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder;
arrayItems name value isArray Z builder ?Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder; nodeValue fieldType ?(Ljava/lang/String;Lcom/fasterxml/jackson/databind/JsonNode;Ljava/lang/String;Ljava/util/Map;Z)Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder; resolveReference c(Lcom/fasterxml/jackson/databind/JsonNode;Ljava/util/Map;)Lcom/fasterxml/jackson/databind/JsonNode; external uri def ?(Lcom/fasterxml/jackson/databind/JsonNode;Ljava/util/Map;)Lcom/fasterxml/jackson/databind/JsonNode; lambda$populateDefinitions$0 ;(Ljava/util/Map;Lcom/fasterxml/jackson/databind/JsonNode;)V id
SourceFile JsonSchemaInspector.java { | y zTU "java/lang/IllegalArgumentException JSON schema cannot be null {VWXY +com/fasterxml/jackson/databind/ObjectMapperZ[ java/util/HashMap ? ? ? ?\] #io/atlasmap/json/v2/JsonComplexType^_`abRcdQefghiOjklmbnopqrstuv w x PNo simple type nor property is defined for the root node. It's going to be emptywxV java/lang/Exception 0io/atlasmap/json/inspect/JsonInspectionException {yz[ BootstrapMethods{|}~??? java/util/ArrayList??S?U ;An object node without 'properties', it will be ignored: {}x???P java/util/Map$Entry?? 'com/fasterxml/jackson/databind/JsonNode?U Ignoring non-object field '{}'?? java/lang/String 1--> Field:[name=[{}], value=[{}], parentPath=[{}] java/lang/Object?? =io/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder {??? /?q???? java/lang/StringBuilder???? <>???i??????? ? ??? :'type' is not defined for node '{}', assuming as an object???? ? ? array items E'{}' is an array node, but no 'items' found in it. It will be ignored?? boolean?v integer?v nullhv number?v string?v object 8Unsupported field type '{}' found, assuming as an object $ref $Resolving JSON schema reference '{}'??z? java/net/URI?????Z? 2Successfully fetched external JSON schema '{}' ?? 1The referenced schema '{}' is not found. Ignoring $id 7$id must be specified for the definition '{}', ignoring?? ,io/atlasmap/json/inspect/JsonSchemaInspector??? &io/atlasmap/json/inspect/JsonInspector .io/atlasmap/json/inspect/JsonSchemaInspector$1 io/atlasmap/json/v2/JsonDocument
java/util/Map io/atlasmap/json/v2/JsonField java/util/List java/util/Iterator isEmpty ()Z (Ljava/lang/String;)V )io/atlasmap/json/v2/AtlasJsonModelFactory createJsonDocument $()Lio/atlasmap/json/v2/JsonDocument; readTree =(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode; build !()Lio/atlasmap/json/v2/JsonField;
getJsonFields "()Lio/atlasmap/json/v2/JsonFields; io/atlasmap/json/v2/JsonFields getJsonField ()Ljava/util/List; size ()I getCollectionType !()Lio/atlasmap/v2/CollectionType; io/atlasmap/v2/CollectionType NONE Lio/atlasmap/v2/CollectionType; getFields ()Lio/atlasmap/v2/Fields; io/atlasmap/v2/Fields getField addAll (Ljava/util/Collection;)Z add (Ljava/lang/Object;)Z getFieldType ()Lio/atlasmap/v2/FieldType; io/atlasmap/v2/FieldType COMPLEX Lio/atlasmap/v2/FieldType; org/slf4j/Logger warn (Ljava/lang/Throwable;)V get
?? (Ljava/lang/Object;)V
p? ,(Lcom/fasterxml/jackson/databind/JsonNode;)V accept .(Ljava/util/Map;)Ljava/util/function/Consumer; forEach (Ljava/util/function/Consumer;)V fields ()Ljava/util/Iterator; hasNext '(Ljava/lang/String;Ljava/lang/Object;)V next ()Ljava/lang/Object; getValue isObject getKey trace ((Ljava/lang/String;[Ljava/lang/Object;)V a(Lio/atlasmap/json/inspect/JsonSchemaInspector;Lio/atlasmap/json/inspect/JsonSchemaInspector$1;)V
access$102 e(Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder;Ljava/lang/String;)Ljava/lang/String; equals concat &(Ljava/lang/String;)Ljava/lang/String;
access$202
access$200 S(Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder;)Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; LIST
access$302 (Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder;Lio/atlasmap/v2/CollectionType;)Lio/atlasmap/v2/CollectionType; io/atlasmap/v2/FieldStatus SUPPORTED Lio/atlasmap/v2/FieldStatus;
access$402 y(Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder;Lio/atlasmap/v2/FieldStatus;)Lio/atlasmap/v2/FieldStatus; asText
access$502 u(Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder;Lio/atlasmap/v2/FieldType;)Lio/atlasmap/v2/FieldType;
access$600 a(Lio/atlasmap/json/inspect/JsonSchemaInspector$JsonFieldBuilder;)Lio/atlasmap/json/v2/JsonFields; UNSUPPORTED BOOLEAN INTEGER NUMBER STRING &(Ljava/lang/Object;)Ljava/lang/Object; toURL ()Ljava/net/URL; java/net/URL
openStream ()Ljava/io/InputStream; @(Ljava/io/InputStream;)Lcom/fasterxml/jackson/databind/JsonNode; debug *(Ljava/lang/String;Ljava/lang/Throwable;)V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger;??? ? ? "java/lang/invoke/LambdaMetafactory metafactory? Lookup ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! p 7 s w x
y z { | } 3 *? ? ~
# $ ? z ? ? } ? ? ~ ' ? ? } ? ?+?
+? ?
? Y? ?? M? Y? N-+?
:? Y? :*?
*? ? :? ? V? ? ? ? ? C? ? ? ? ? ,? ? ? ? ? ? W? <,? ? ? W? *? ? ? ? ? ? ,? ? ? W,?M? !Y,? "? ? ? ~ N + , 0 1 ! 2 ( 4 1 5 9 6 J 8 W 9 e : x ; ? > ? @ ? A ? C ? F ? G ? H R ? ? ? ! ? ? ? ( ? ? ? 1 ? ? ? J ? ? ? ? ? ? ? ? z ? ? ? ? 1 ? ? ? ? 4 ? b ? ? ? ? ? ? ? ? ? ? ? ? ! ? ? } ? +#? $N-? ?-,? % ? &? ~ S T U X ` * ? z ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ?? 'Y? (:+)? $:? ? *? + ? ? ,+? - ?? *:? + ? [? . ? /:? 0 ? 1? 2? ? 3? - ???*? 4 ? 5? 0 ? 1,-? ? :? W???? ~ > c d e # f . g 1 j 8 k B l N m ^ n j o m q ? r ? s ? t \ N I ? ? ?
? ? ? ? z ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 8 e ? ? ? * N I ? ? ? ? ? ? ? ? 8 e ? ? ? ? # ? ?
? ?? 4 ?? , ? ! ? ? ? ? } ?
?? 6? 7Y+SY,SY-S? 8 ? 9Y*? ::+? ,+? ;W-? -