profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/slisaasquatch/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

saasquatch/json-schema-inferrer 58

Java library for inferring JSON schema from sample JSONs

saasquatch/squatch-android 4

Official Android SDK for SaaSquatch. REST API wrapper and widgets in Android WebViews

saasquatch/apache-client5-reactive 1

Thin wrapper around Apache HttpAsyncClient 5.x to expose Reactive Streams interfaces.

saasquatch/rhino-jsonata 1

JSONata for Java backed by jsonata-js and Rhino

saasquatch/saasquatch-java-sdk 1

SaaSquatch SDK for Java

saasquatch/ext-integration-boilerplate 0

Java boilerplate for SaaSquatch external integrations

saasquatch/forge-inflector-standalone 0

Standalone Inflector.java from JBoss Forge

saasquatch/json-schema-inferrer-sample-server 0

Sample server for json-schema-inferrer

saasquatch/keyczar 0

Easy-to-use crypto toolkit

saasquatch/legacy-future-adapter 0

Event loop based adapter for legacy Futures that do not support callbacks

issue commentredisson/redisson

[Question] How do I use Redisson with SSL enabled?

@slisaasquatch is it solved ?

Yes. The command I'm using is

./keytool -importcert -alias foo_alias -file foo.der -keystore ../lib/security/cacerts -storepass changeit -noprompt
slisaasquatch

comment created time in 3 days

issue openedcontentful/contentful.java

v.10.5.1 ClassCastException on sync

With the new v.10.5.1 version, the following simple code example will cause an exception. I can confirm that this doesn't happen with v.10.5.0.

public static void main(String[] args) {
	final CDAClient cdaClient = CDAClient.builder().setSpace("...").setToken("...").build();
	cdaClient.sync().fetch();
}

And here's the exception:

Exception in thread "main" java.lang.ClassCastException: scala.collection.immutable.Map$Map1 cannot be cast to java.util.Map
	at com.contentful.java.cda.ResourceUtils.setRawFields(ResourceUtils.java:297)
	at com.contentful.java.cda.ResourceUtils.setRawFields(ResourceUtils.java:286)
	at com.contentful.java.cda.ResourceFactory.sync(ResourceFactory.java:81)
	at com.contentful.java.cda.SyncQuery$1.apply(SyncQuery.java:66)
	at com.contentful.java.cda.SyncQuery$1.apply(SyncQuery.java:63)
	at io.reactivex.internal.operators.flowable.FlowableMap$MapSubscriber.onNext(FlowableMap.java:63)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.tryEmit(FlowableFlatMap.java:282)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap$InnerSubscriber.onNext(FlowableFlatMap.java:663)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest$BackpressureLatestSubscriber.drain(FlowableOnBackpressureLatest.java:129)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest$BackpressureLatestSubscriber.onNext(FlowableOnBackpressureLatest.java:68)
	at io.reactivex.internal.operators.flowable.FlowableFromObservable$SubscriberObserver.onNext(FlowableFromObservable.java:54)
	at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:47)
	at io.reactivex.Observable.subscribe(Observable.java:12246)
	at io.reactivex.internal.operators.flowable.FlowableFromObservable.subscribeActual(FlowableFromObservable.java:29)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest.subscribeActual(FlowableOnBackpressureLatest.java:32)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.Flowable.subscribe(Flowable.java:14752)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.onNext(FlowableFlatMap.java:163)
	at io.reactivex.internal.operators.flowable.FlowableMap$MapSubscriber.onNext(FlowableMap.java:68)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.tryEmit(FlowableFlatMap.java:282)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap$InnerSubscriber.onNext(FlowableFlatMap.java:663)
	at io.reactivex.internal.operators.flowable.FlowableMap$MapSubscriber.onNext(FlowableMap.java:68)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest$BackpressureLatestSubscriber.drain(FlowableOnBackpressureLatest.java:129)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest$BackpressureLatestSubscriber.onNext(FlowableOnBackpressureLatest.java:68)
	at io.reactivex.internal.operators.flowable.FlowableFromObservable$SubscriberObserver.onNext(FlowableFromObservable.java:54)
	at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:47)
	at io.reactivex.Observable.subscribe(Observable.java:12246)
	at io.reactivex.internal.operators.flowable.FlowableFromObservable.subscribeActual(FlowableFromObservable.java:29)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest.subscribeActual(FlowableOnBackpressureLatest.java:32)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:37)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.Flowable.subscribe(Flowable.java:14752)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.onNext(FlowableFlatMap.java:163)
	at io.reactivex.internal.operators.flowable.FlowableMap$MapSubscriber.onNext(FlowableMap.java:68)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest$BackpressureLatestSubscriber.drain(FlowableOnBackpressureLatest.java:129)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest$BackpressureLatestSubscriber.onNext(FlowableOnBackpressureLatest.java:68)
	at io.reactivex.internal.operators.flowable.FlowableFromObservable$SubscriberObserver.onNext(FlowableFromObservable.java:54)
	at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:47)
	at io.reactivex.Observable.subscribe(Observable.java:12246)
	at io.reactivex.internal.operators.flowable.FlowableFromObservable.subscribeActual(FlowableFromObservable.java:29)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableOnBackpressureLatest.subscribeActual(FlowableOnBackpressureLatest.java:32)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:37)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap.subscribeActual(FlowableFlatMap.java:53)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:37)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableFlatMap.subscribeActual(FlowableFlatMap.java:53)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:37)
	at io.reactivex.Flowable.subscribe(Flowable.java:14805)
	at io.reactivex.Flowable.blockingFirst(Flowable.java:5607)
	at com.contentful.java.cda.SyncQuery.fetch(SyncQuery.java:78)
	at Example.main(Example.java:52)

created time in 16 days

issue closedsaasquatch/json-schema-inferrer

There is no JsonNode's key in GenericSchemaFeatureInput.

Sometimes, I only want some keys to generate rules, but the current GenericSchemaFeatureInputcan only get the type and value of the json node, not its key. For an example:

{
  "result": "success",
  "msg": "xxxxxxxxx"
}

I want this json gen that json schema:

{
	"$schema": "http://json-schema.org/draft-07/schema#",
	"type": "object",
	"properties": {
		"result": {
			"type": "string",
                        "const": "success"
		},
		"msg": {
			"type": "string"
		}
	},
	"additionalProperties": false,
	"required": [
		"result",
		"msg"
	]
}

Now, I can't make rules to generate const only for the field result.

closed time in 17 days

Exclamation-mark

issue commentsaasquatch/json-schema-inferrer

There is no JsonNode's key in GenericSchemaFeatureInput.

If the class GenericSchemaFeatureInput have a api just like getKey().

This is something I've thought about, but I eventually deemed it a can of worms that I didn't want to open. It's easy to think adding getKey() will solve quite a few problems problems, which it probably does. The problem is that what about array elements? What about the root element? And should getKey() only provide the current field name and not the full path from root? If it needs to provide the full path, which standard should it use? JSON pointer? JSON path? The list of questions can go on, but I think you get my point.

And if we back up a little, for something like this that's specific for your use case, personally I'd achieve that by post processing the schema. It's much easier to traverse the result JSON schema and make the desired modifications than jamming in a half-baked feature.

Another interface you can take a look at is EnumExtractor. I never implemented const because const is identical to an enum with one element. I'm aware that this doesn't give you exactly what you described, but you can implement a custom EnumExtractor similar to EnumExtractors.validEnum where it extracts the single possibility of "success", and this will turn "result": "success" into an enum with one element.

EnumExtractor successEnumExtractor = input -> {
	final Set<? extends JsonNode> successNodes = input.getSamples().stream()
			.filter(j -> "success".equals(j.textValue()))
			.collect(Collectors.toSet());
	return successNodes.isEmpty() ? Collections.emptySet() : Collections.singleton(successNodes);
};

I'll close the ticket for now, because right now I cannot come up with a solution I'm satisfied with.

Exclamation-mark

comment created time in 17 days

PullRequestReviewEvent

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 444140d5a202a8cfc744163164b7cc2c6c364fb1

Update BigQueryHelper.java

view details

push time in 25 days

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 2ccd610be97548eb43f92fcade4b5b33935e3204

Update build.gradle

view details

push time in 25 days

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha ff1e224231a6e653a9438c0c63339f0c9d791bbb

Update BigQueryHelper.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha dde91b1a5a542e10ab3bf60aac71f89819d1cf4f

Update BigQueryUtils.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 5bd90a5c663975e01c9dfabdfe8758cd915a8a16

SL: bigquery insertAll

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 02c87fbae8206667939146f653a18a813919e282

Update GoogleCredentialsAccessTokenGenerator.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 8a331020ee76dd0916cb8e5a8c31a55b2b9d95e4

Update FirestoreUtils.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 5bfb3478395f1122d375190233c430b8fef6075d

Update BigQueryUtils.java

view details

slisaasquatch

commit sha b04e2c3cd006a4c1d3b711ad1623635890195e5b

Update FirestoreUtils.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 2938ebc5945c717a5759e0cc0bb3e6cb18ed8ca4

Update GcpUtils.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 73f8c182a4b333ef72f39b2dbc09411f7b62412f

bigquery utils

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 6698694f0608029de78aabdbc773019c4eee9882

Update GoogleCredentialsAccessTokenGenerator.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha fce99c8a4372d3ef8bc0665ea0ca0936635259e3

Update GoogleCredentialsAccessTokenGenerator.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha 79cde32dce82127acccee4f729e5b52cdbfbab19

Update FirestoreUtils.java

view details

slisaasquatch

commit sha 33313e3a1de013537d0bad4edbd27f6bc6e3858f

Update build.gradle

view details

slisaasquatch

commit sha a25cd99e298ebc09076a94a9eef999a5e8fa3ffd

Create GoogleCredentialsAccessTokenGenerator.java

view details

push time in a month

push eventsaasquatch/squatch-gcp-client-utils

slisaasquatch

commit sha faef03d9c4b9a3a45d2701b36a1bf0b5a3a3ed90

Update build.gradle

view details

push time in a month

create barnchsaasquatch/squatch-gcp-client-utils

branch : dev

created branch time in a month

create barnchsaasquatch/squatch-gcp-client-utils

branch : main

created branch time in a month

created repositorysaasquatch/squatch-gcp-client-utils

SaaSquatch utils for GCP client libraries for Java

created time in a month

PullRequestReviewEvent
PullRequestReviewEvent

issue closedsaasquatch/json-schema-inferrer

intelliJ gradle dependency failure

I don't know if this question belongs here, but maybe someone has encountered this issue before.

I basically want to use this library in a production java environment using IntelliJ as the IDE.

After attempting to create a gradle dependency in the IDE, the Maven artifact for this library does not show up in the relevant artifact list.

How to reproduce:

  1. press cmd-N when viewing build.gradle in the editor
  2. Select Add Maven artifact dependency
  3. the identifier to use is from the maven repo website: com.github.saasquatch:json-schema-inferrer:0.1.3
  4. paste the identifer into the artifact search field
  5. This artifact does not show up in the resulting list.

Even adding a custom repository (https://repository.mulesoft.org/nexus/content/repositories/public/) to IntelliJ from the Maven repository website does not help. This directory apparently does not to contain the desired resources.

Any thoughts or help would be greatly appreciated.

closed time in 2 months

electronhead

issue commentsaasquatch/json-schema-inferrer

intelliJ gradle dependency failure

I think the source of the problem is likely the fact that this library is not on Maven Central. It is distributed through JitPack, at least for now. I know you can find this library on Maven Repository here, but it is on the Mulesoft repository and not Maven Central, and I am actually not the one that published it there.

So what are you trying to do here? If you are just trying to include this library as a dependency, it should be completely independent from IntelliJ, since you just need to edit the build.gradle file and I have successfully used this library with Gradle, Maven, and SBT.

I don't know how I'll be able to help, because currently I have no plans of publishing this library to Maven Central.

electronhead

comment created time in 2 months

PullRequestReviewEvent

issue commentsaasquatch/json-schema-inferrer

Field order is different in the schema

Fixed in 0.1.4.

tharindu-nw

comment created time in 3 months

created tagsaasquatch/json-schema-inferrer

tag0.1.4

Java library for inferring JSON schema from sample JSONs

created time in 3 months

release saasquatch/json-schema-inferrer

0.1.4

released time in 3 months