public JsonSchema getValuesWithinDataType ( ) { JsonElement element = this . getDataType ( ) . get ( MAP_ITEMS_KEY ) ; if ( element . isJsonObject ( ) ) { return new JsonSchema ( element . getAsJsonObject ( ) ) ; } if ( element . isJsonArray ( ) ) { return new JsonSchema ( element . getAsJsonArray ( ) ) ; } if ( element . isJsonPrimitive ( ) ) { return buildBaseSchema ( Type . valueOf ( element . getAsString ( ) . toUpperCase ( ) ) ) ; } throw new UnsupportedOperationException ( "Map values can only be defined using JsonObject, JsonArray or JsonPrimitive." ) ; }
Fetches dataType . values from the JsonObject