I am using the @graphql-codegen/cli tool to generate typescript types out of my graphql server.
Here is my codegen.yml content:
overwrite: true
schema: "http://localhost:3001/graphql"
documents: "src/**/*.graphql"
generates:
…
I've recently started using Moshi for my Android app and I'm curious to know more about what the annotation @JsonClass(generateAdapter = true) really does.
Example data class:
data class Person(
val name: String
)
I'm able to…
I'm getting an error when I'm feature engineering on 30+ columns to create about 200+ columns. It is not failing the job, but the ERROR shows. I want to know how can I avoid this.
Spark - 2.3.1 Python - 3.6
Cluster Config - 1 Master - 32 GB RAM, 16…
I used the swagger codegen to generate jaxrs server side classes and also client side java classes.
This is the command I used to generate the classes
java -jar modules/swagger-codegen-distribution/target/swagger-codegen-distribution-2.1.2-M1.jar …
I have a coredata entity with an attribute id of type String
when trying to reference that attribute from a key path it throws an error
let path = #keyPath(User.id) //Ambiguous reference to member 'id'
the codegen is set to Class Definition.
I…
I would like to avoid "default" implementation in interface generate by the maven plugin swagger codegen.
For example, with petstore swagger : http://petstore.swagger.io/v2/swagger.json
I generate interface with maven plugin :
…
I'm new to annotation processing and code generation. I want to find out how can I perform such operation like appending new method to existing class. Here is an example of what I want to do:
Assume that we have a class with with custom annotations…
Building on a former example that I've found here, I try to find out how to generate a Fortran code that correspond to a specific form that I need to stick to. The required FORTRAN code will look like this (it is based on the FitzHugh–Nagumo…
I am trying to compile Echoprint codegen on FreeBSD, but fail. But here's what i get when i try to run make or make install
> make
"Makefile", line 35: Missing dependency operator
"Makefile", line 39: Need an operator
"Makefile", line 41: Need an…
I'm hoping to use SWC in Rust to generate some TypeScript code. Unfortunately, it seems the emitter can only print JavaScript. Is this correct, or is there a way to print TypeScript? For instance, let's say we're crafting the following AST.
use…
I'm doing a small project to learn swagger-codegen. When I'm executing "mvn clean install" the next errors appear:
Unable to make public boolean java.util.Collections$EmptyMap.isEmpty() accessible: module java.base does not "opens java.util" to…
I have below schema definition to represent commission amount in my openapi contract.
commissionAmount:
type: number
minimum: -99999.99
maximum: 99999.99
Generated Code:
@Valid
@DecimalMin("-99999.99") @DecimalMax("99999.99")
public…
I am attempting to write an adaptive parser in Prolog: in other words, a parser that can modify its own parsing rules at runtime.
In order to do this, I'll need to generate new predicates at runtime, but I'm not sure if this is possible. Would it be…
Xcode 9 generates different code for Date type attribute of the entity in simulator vs device. I have codegen feature under Class set to category/extension in coredata.
Until Xcode 8.3 (latest) it was all working fine (NSDate always). Below is the…