James Yoo
James Yoo
Hey @rossabaker My branch has the method written out, but I've yet to write tests for it yet. In fact, I was wondering if there are any examples I can...
I can work on indexing artifacts with no associated projects
@adpi2 Quick question for this, it looks like a number of methods in `Artifact.scala` (and beyond!) operate on the assumption that `projectRef` is always defined, e.g., https://github.com/scalacenter/scaladex/blob/22f1672a0582da10036e8d2ddbfb0388a1edb4cc/modules/core/shared/src/main/scala/scaladex/core/model/Artifact.scala#L38-L43 But we know...
Sounds good, I'll wait :)
I can take this issue on. From a preliminary investigation, I can see that there does appear to be some early validation for non-empty enum values in `Validator.scala` https://github.com/ghostdogpr/caliban/blob/a1673fe74f5a7a6278ac1628b1ef6c8435b9853a/core/src/main/scala/caliban/validation/Validator.scala#L739-L747 So...
Got it, I see this function https://github.com/ghostdogpr/caliban/blob/a1673fe74f5a7a6278ac1628b1ef6c8435b9853a/tools/src/main/scala/caliban/tools/ClientWriter.scala#L664-L668 A pretty hacky way of catching an empty enum would be to add something like ```scala require(typedef.enumValuesDefinition.nonEmpty, s"Code generation for empty enum '${typedef.name}'...
I'd be happy to add some tests. Do you have any pointers? Mixing exceptions with functional effects makes thing kinda hairy; I don't think there's a super nice way of...
Interesting, I have something like ```scala testM("enum with no body") { val schema = """ enum Origin { } """.stripMargin assertM(ZIO.effect(gen(schema)).run)(fails(isSubtype[Exception](anything))) }, ``` Which yields ``` Success(zio.ZIO$FlatMap@468b5697) did not satisfy...
I wouldn't mind taking this task on, if it's something the community decides on doing 🙂
I tried switching the collection to an `IndexedSeq`, which apparently is an alias for `Seq` in 2.13, and it _appears_ to be slightly faster ``` # Run 1 (Baseline) [info]...