Skip to content

chore: generate new sdk #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 53 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
34ef04e
chore: rename files and directories for improved structure
OmarAlJarrah Apr 20, 2025
c673e98
chore: delete old code
OmarAlJarrah Apr 20, 2025
6397e09
Revert "chore: delete old code"
OmarAlJarrah Apr 20, 2025
3ad78e6
chore: delete old code
OmarAlJarrah Apr 20, 2025
23c0239
chore: delete old code
OmarAlJarrah Apr 20, 2025
a56a07e
Merge branch 'v2-dev' into v2/delete-old-code
OmarAlJarrah Apr 20, 2025
e80a2f3
chore: initialize project gradle structure and configuration files
OmarAlJarrah Apr 21, 2025
33c6156
chore: initial generator config
OmarAlJarrah Apr 21, 2025
dd9a5e1
feat: initialize xap sdk module
OmarAlJarrah Apr 21, 2025
869d2cf
chore: generate new sdk
OmarAlJarrah Apr 21, 2025
2e8fb9c
Revert "chore: delete old code"
OmarAlJarrah Apr 21, 2025
93c6388
Revert "chore: delete old code"
OmarAlJarrah Apr 21, 2025
32004dd
chore: undelete code
OmarAlJarrah Apr 21, 2025
be222dc
Merge branch 'v2/delete-old-code' into v2/initial-gradle-setup
OmarAlJarrah Apr 21, 2025
0249634
Merge branch 'v2/initial-gradle-setup' into v2/generator-config
OmarAlJarrah Apr 21, 2025
d0a54a0
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 21, 2025
88249e2
Merge branch 'v2/initial-xap-sdk-module' into v2/generate-new-sdk
OmarAlJarrah Apr 21, 2025
dc2172b
chore: clean up build.gradle.kts and update mergeSpecs task
OmarAlJarrah Apr 21, 2025
3b1d370
Merge branch 'v2/initial-gradle-setup' into v2/generator-config
OmarAlJarrah Apr 21, 2025
5122213
chore: add imports for AllowedMediaTypesLambda and CodegenConstants
OmarAlJarrah Apr 22, 2025
251f90b
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 22, 2025
8e21f8e
Merge branch 'v2/initial-xap-sdk-module' into v2/generate-new-sdk
OmarAlJarrah Apr 22, 2025
8bb97ea
Merge branch 'v2-dev' into v2/initial-gradle-setup
OmarAlJarrah Apr 24, 2025
7b9d080
Merge branch 'v2/initial-gradle-setup' into v2/generator-config
OmarAlJarrah Apr 24, 2025
5d66eff
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 24, 2025
8aaca0d
chore: update path for specs.gradle.kts in build.gradle.kts
OmarAlJarrah Apr 24, 2025
10a8782
chore: update OpenAPI generator plugin version to 0.0.9-alpha
OmarAlJarrah Apr 24, 2025
73b0557
chore: refactor transformSpecs task to use Exec type and streamline c…
OmarAlJarrah Apr 24, 2025
c14ebda
chore: remove obsolete POM license properties from gradle.properties
OmarAlJarrah Apr 24, 2025
fbc53af
chore: add mavenCentral repository to plugin management
OmarAlJarrah Apr 24, 2025
245448f
Merge branch 'v2/initial-gradle-setup' into v2/generator-config
OmarAlJarrah Apr 24, 2025
217d02f
chore: update openApiGenerate task to use project.providers.exec for …
OmarAlJarrah Apr 24, 2025
05b0741
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 24, 2025
3d08ce4
chore: rename XAP_OBJECT_MAPPER to OBJECT_MAPPER for consistency
OmarAlJarrah Apr 24, 2025
dca26a5
Merge branch 'v2/initial-xap-sdk-module' into v2/generate-new-sdk
OmarAlJarrah Apr 24, 2025
c8b1dd3
chore: del spec files
OmarAlJarrah Apr 27, 2025
2a88f73
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 27, 2025
2fc4bf3
chore: update command line for spec transformer to include additional…
OmarAlJarrah Apr 27, 2025
bd97e01
chore: update inputSpec path in openApiGenerate configuration to use …
OmarAlJarrah Apr 27, 2025
1b7c1b8
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 27, 2025
702c50c
chore: add license plugin and header configuration to build.gradle.kts
OmarAlJarrah Apr 27, 2025
37396cc
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 27, 2025
dcaa50c
Merge branch 'v2/initial-xap-sdk-module' into v2/generate-new-sdk
OmarAlJarrah Apr 27, 2025
3f0a2eb
chore: add Apache License 2.0 header to multiple operation files
OmarAlJarrah Apr 27, 2025
af8631f
chore: update license plugin ID in build.gradle.kts
OmarAlJarrah Apr 27, 2025
23d4bf9
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 27, 2025
5ad53bb
Merge branch 'v2/initial-xap-sdk-module' into v2/generate-new-sdk
OmarAlJarrah Apr 27, 2025
727f06c
Merge branch 'v2-dev' into v2/generator-config
OmarAlJarrah Apr 27, 2025
3b89186
Merge branch 'v2/generator-config' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 27, 2025
8cf5d0b
Merge branch 'v2/initial-xap-sdk-module' into v2/generate-new-sdk
OmarAlJarrah Apr 27, 2025
584a367
Merge branch 'v2-dev' into v2/initial-xap-sdk-module
OmarAlJarrah Apr 28, 2025
fc3a5cd
Merge branch 'v2/initial-xap-sdk-module' into v2/generate-new-sdk
OmarAlJarrah Apr 28, 2025
9b5aa97
Merge branch 'v2-dev' into v2/generate-new-sdk
OmarAlJarrah Apr 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,80 +13,43 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/

@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)

package com.expediagroup.sdk.xap.models

import com.expediagroup.sdk.core.model.exception.client.PropertyConstraintViolationException
import com.fasterxml.jackson.annotation.JsonProperty
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
import javax.validation.Valid
import javax.validation.Validation

/**
*
*
* @param message
*/
*/
data class APIGatewayError(
@JsonProperty("message")
@field:Valid
val message: kotlin.String? = null
val message: kotlin.String? = null,
) {
init {
}

companion object {
@JvmStatic
fun builder() = Builder()
}

class Builder(
private var message: kotlin.String? = null
private var message: kotlin.String? = null,
) {
fun message(message: kotlin.String?) = apply { this.message = message }

fun build(): APIGatewayError {
val instance =
APIGatewayError(
message = message
message = message,
)

validate(instance)

return instance
}

private fun validate(instance: APIGatewayError) {
val validator =
Validation
.byDefaultProvider()
.configure()
.messageInterpolator(ParameterMessageInterpolator())
.buildValidatorFactory()
.validator

val violations = validator.validate(instance)

if (violations.isNotEmpty()) {
throw PropertyConstraintViolationException(
constraintViolations = violations.map { "${it.propertyPath}: ${it.message}" }
)
}
}
}

fun toBuilder() =
Builder(
message = message
message = message,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,80 +13,43 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/

@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)

package com.expediagroup.sdk.xap.models

import com.expediagroup.sdk.core.model.exception.client.PropertyConstraintViolationException
import com.fasterxml.jackson.annotation.JsonProperty
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
import javax.validation.Valid
import javax.validation.Validation

/**
*
*
* @param message
*/
*/
data class APIMError(
@JsonProperty("message")
@field:Valid
val message: kotlin.String? = null
val message: kotlin.String? = null,
) {
init {
}

companion object {
@JvmStatic
fun builder() = Builder()
}

class Builder(
private var message: kotlin.String? = null
private var message: kotlin.String? = null,
) {
fun message(message: kotlin.String?) = apply { this.message = message }

fun build(): APIMError {
val instance =
APIMError(
message = message
message = message,
)

validate(instance)

return instance
}

private fun validate(instance: APIMError) {
val validator =
Validation
.byDefaultProvider()
.configure()
.messageInterpolator(ParameterMessageInterpolator())
.buildValidatorFactory()
.validator

val violations = validator.validate(instance)

if (violations.isNotEmpty()) {
throw PropertyConstraintViolationException(
constraintViolations = violations.map { "${it.propertyPath}: ${it.message}" }
)
}
}
}

fun toBuilder() =
Builder(
message = message
message = message,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,69 +13,46 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/

@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)

package com.expediagroup.sdk.xap.models

import com.expediagroup.sdk.core.model.exception.client.PropertyConstraintViolationException
import com.fasterxml.jackson.annotation.JsonProperty
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
import javax.validation.Valid
import javax.validation.Validation

/**
* Address information
* Address information
* @param address1 Street Number, Street Name, or PO Box.
* @param address2 Apartment, Floor, Suite, Bldg
* @param suite Suite/apartment number
* @param city The city
* @param province The state or province.
* @param country 3-letter code for the country.
* @param postalCode Zip/postal code.
*/
*/
data class ActivitiesAddress(
// Street Number, Street Name, or PO Box.
@JsonProperty("Address1")
@field:Valid
val address1: kotlin.String? = null,
// Apartment, Floor, Suite, Bldg
@JsonProperty("Address2")
@field:Valid
val address2: kotlin.String? = null,
// Suite/apartment number
@JsonProperty("Suite")
@field:Valid
val suite: kotlin.String? = null,
// The city
@JsonProperty("City")
@field:Valid
val city: kotlin.String? = null,
// The state or province.
@JsonProperty("Province")
@field:Valid
val province: kotlin.String? = null,
// 3-letter code for the country.
@JsonProperty("Country")
@field:Valid
val country: kotlin.String? = null,
// Zip/postal code.
@JsonProperty("PostalCode")
@field:Valid
val postalCode: kotlin.String? = null
val postalCode: kotlin.String? = null,
) {
init {
}

companion object {
@JvmStatic
fun builder() = Builder()
Expand All @@ -88,7 +65,7 @@ data class ActivitiesAddress(
private var city: kotlin.String? = null,
private var province: kotlin.String? = null,
private var country: kotlin.String? = null,
private var postalCode: kotlin.String? = null
private var postalCode: kotlin.String? = null,
) {
fun address1(address1: kotlin.String?) = apply { this.address1 = address1 }

Expand All @@ -113,31 +90,11 @@ data class ActivitiesAddress(
city = city,
province = province,
country = country,
postalCode = postalCode
postalCode = postalCode,
)

validate(instance)

return instance
}

private fun validate(instance: ActivitiesAddress) {
val validator =
Validation
.byDefaultProvider()
.configure()
.messageInterpolator(ParameterMessageInterpolator())
.buildValidatorFactory()
.validator

val violations = validator.validate(instance)

if (violations.isNotEmpty()) {
throw PropertyConstraintViolationException(
constraintViolations = violations.map { "${it.propertyPath}: ${it.message}" }
)
}
}
}

fun toBuilder() =
Expand All @@ -148,6 +105,6 @@ data class ActivitiesAddress(
city = city,
province = province,
country = country,
postalCode = postalCode
postalCode = postalCode,
)
}
Loading