You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README says that Smartype is analytics API agnostic:
Smartype is designed to be used by anyone, but support today is primarily for mParticle's Events API and SDKs by way of the mParticle Smartype receiver.
Smartype is designed to work with mParticle Data Plans. If you haven’t yet created a Data Plan, you’ll need to do so and download your data plan to work with Smartype.
So what's correct? I'm assuming the latter.
Running the generator is failing for me. And it makes me think I need to become an mParticle customer, and create a Data Plan if I want to run the Smartype generator. Is that correct?
❯ java -jar smartype-generator-1.2.0.jar init
Would you like to generate iOS? [no]: yes
Would you like to generate Android? [no]: yes
Would you like to generate Web? [no]: yes
Where should Smartype libraries be generated [smartype-dist]:
Please specify a file path containing the JSON schema that you'd like to use for generation: data.json
smartype.config.json generated successfully! Have fun :-)
❯ java -jar smartype-generator-1.2.0.jar generate
Extracting mParticle Data Plan
Exception in thread "main" java.lang.NullPointerException
at com.mparticle.smartype.generator.adapters.MParticleDataPlanAdapter.extractSchemas(MParticleDataPlanAdapter.kt:22)
at com.mparticle.smartype.generator.Generate.run(Generator.kt:97)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:154)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:162)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:14)
at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:252)
at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:249)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:267)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:290)
at com.mparticle.smartype.generator.GeneratorKt.main(Generator.kt:236)
data.json
{
"smartype_object_name": "doggo",
"properties": {
"id": {
"type": "integer",
"description": "The doggo UUID"
},
"breed": {
"type": "string",
"description": "The doggo breed"
},
"favorite": {
"type": "boolean",
"description": "Whether this doggo breed is a favorite."
}
}
}
The README says that Smartype is analytics API agnostic:
But the docs say:
So what's correct? I'm assuming the latter.
Running the generator is failing for me. And it makes me think I need to become an mParticle customer, and create a Data Plan if I want to run the Smartype generator. Is that correct?
data.json
smartype.config.json
The text was updated successfully, but these errors were encountered: