From b9e4e45e85c1151bd9f8285d822a7007bd6beb15 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 11 Jan 2025 07:20:52 -0500 Subject: [PATCH] Spelling (#394) * spelling: conversions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: designed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: into Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: multiple Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.md | 2 +- docs/index.md | 6 +++--- .../apiextensions/v1/JSONSchemaPropsOrArray.scala | 14 ++++++++------ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c5e72608..7592e2b3 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ for easy to use recipes and integration with sbt, visit [this project](https://g ## Getting started This library is currently available for Scala binary versions 2.12, 2.13 and 3.2 on JVM/JS/Native. -This library is architecured in a microkernel fashion and all the main kubernetes stuff are implemented/generated in pure scala, and integration modules are provided separately. +This library is designed in a microkernel fashion and all the main kubernetes stuff are implemented/generated in pure scala, and integration modules are provided separately. main modules are: - `objects` raw kubernetes objects, which has no dependency diff --git a/docs/index.md b/docs/index.md index bc7f8999..0353c0c7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,7 +3,7 @@ ## Usage This library is currently available for Scala binary versions 2.12, 2.13 and 3.2 on JVM/JS/Native. -This library is architecured in a microkernel fashion and all the main kubernetes stuff are implemented/generated in pure scala, and integration modules are provided separately. +This library is designed in a microkernel fashion and all the main kubernetes stuff are implemented/generated in pure scala, and integration modules are provided separately. main modules are: - `objects` raw kubernetes objects, which has no dependency @@ -42,7 +42,7 @@ libraryDependencies ++= Seq( first off, we'll import the following ```scala mdoc import dev.hnaderi.k8s._ // base packages -import dev.hnaderi.k8s.implicits._ // implicit coversions and helpers +import dev.hnaderi.k8s.implicits._ // implicit conversions and helpers import dev.hnaderi.k8s.manifest._ // manifest syntax ``` every other object definition is under kubernetes packages `io.k8s` as specified in the spec, you should rely on @@ -140,7 +140,7 @@ val service = Service( ## Manifest example -Now you can merge all of your kubernetes resource definitions in to one manifest +Now you can merge all of your kubernetes resource definitions into one manifest ```scala mdoc:silent val all : Seq[KObject] = Seq(service, config, deployment) val manifest = all.asManifest diff --git a/modules/objects/src/main/scala/io/k8s/apiextensions-apiserver/pkg/apis/apiextensions/v1/JSONSchemaPropsOrArray.scala b/modules/objects/src/main/scala/io/k8s/apiextensions-apiserver/pkg/apis/apiextensions/v1/JSONSchemaPropsOrArray.scala index 28625fb3..982af90a 100644 --- a/modules/objects/src/main/scala/io/k8s/apiextensions-apiserver/pkg/apis/apiextensions/v1/JSONSchemaPropsOrArray.scala +++ b/modules/objects/src/main/scala/io/k8s/apiextensions-apiserver/pkg/apis/apiextensions/v1/JSONSchemaPropsOrArray.scala @@ -24,7 +24,7 @@ object JSONSchemaPropsOrArray { final case class SingleValue(value: JSONSchemaProps) extends AnyVal with JSONSchemaPropsOrArray - final case class MutipleValues(value: Seq[JSONSchemaProps]) + final case class MultipleValues(value: Seq[JSONSchemaProps]) extends AnyVal with JSONSchemaPropsOrArray def apply(value: JSONSchemaProps): SingleValue = SingleValue(value) @@ -32,14 +32,16 @@ object JSONSchemaPropsOrArray { v1: JSONSchemaProps, v2: JSONSchemaProps, others: JSONSchemaProps* - ): MutipleValues = MutipleValues(Seq(v1, v2) ++ others) - def apply(values: Seq[JSONSchemaProps]): MutipleValues = MutipleValues(values) + ): MultipleValues = MultipleValues(Seq(v1, v2) ++ others) + def apply(values: Seq[JSONSchemaProps]): MultipleValues = MultipleValues( + values + ) implicit val encoder: Encoder[JSONSchemaPropsOrArray] = new Encoder[JSONSchemaPropsOrArray] { def apply[T: Builder](r: JSONSchemaPropsOrArray): T = r match { - case MutipleValues(value) => value.encodeTo - case SingleValue(value) => value.encodeTo + case MultipleValues(value) => value.encodeTo + case SingleValue(value) => value.encodeTo } } @@ -47,6 +49,6 @@ object JSONSchemaPropsOrArray { Decoder[JSONSchemaProps] .map(SingleValue(_)) .orElse( - Decoder[Seq[JSONSchemaProps]].map(MutipleValues(_)) + Decoder[Seq[JSONSchemaProps]].map(MultipleValues(_)) ) }