From a6eaeed8f57a11f85e031dd2291b9c0eafde1763 Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Thu, 12 Oct 2023 20:34:04 +0330 Subject: [PATCH] fix bad github api openapi spec --- .../GitHubAPI/GeneratedSources/Types.swift | 40 +++++++++---------- Lambdas/GitHubAPI/openapi.yaml | 12 ------ 2 files changed, 20 insertions(+), 32 deletions(-) diff --git a/Lambdas/GitHubAPI/GeneratedSources/Types.swift b/Lambdas/GitHubAPI/GeneratedSources/Types.swift index bae8a646..044bb117 100644 --- a/Lambdas/GitHubAPI/GeneratedSources/Types.swift +++ b/Lambdas/GitHubAPI/GeneratedSources/Types.swift @@ -2806,15 +2806,15 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. public struct nullable_license_simple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. - public var key: Swift.String + public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. - public var name: Swift.String + public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. - public var url: Swift.String + public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String + public var spdx_id: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var node_id: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. public var html_url: Swift.String? /// Creates a new `nullable_license_simple`. @@ -2827,11 +2827,11 @@ public enum Components { /// - node_id: /// - html_url: public init( - key: Swift.String, - name: Swift.String, - url: Swift.String, - spdx_id: Swift.String, - node_id: Swift.String, + key: Swift.String? = nil, + name: Swift.String? = nil, + url: Swift.String? = nil, + spdx_id: Swift.String? = nil, + node_id: Swift.String? = nil, html_url: Swift.String? = nil ) { self.key = key @@ -16124,15 +16124,15 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license`. public struct licensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/key`. - public var key: Swift.String + public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/name`. - public var name: Swift.String + public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/url`. - public var url: Swift.String + public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/spdx_id`. - public var spdx_id: Swift.String + public var spdx_id: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/node_id`. - public var node_id: Swift.String + public var node_id: Swift.String? /// Creates a new `licensePayload`. /// /// - Parameters: @@ -16142,11 +16142,11 @@ public enum Components { /// - spdx_id: /// - node_id: public init( - key: Swift.String, - name: Swift.String, - url: Swift.String, - spdx_id: Swift.String, - node_id: Swift.String + key: Swift.String? = nil, + name: Swift.String? = nil, + url: Swift.String? = nil, + spdx_id: Swift.String? = nil, + node_id: Swift.String? = nil ) { self.key = key self.name = name diff --git a/Lambdas/GitHubAPI/openapi.yaml b/Lambdas/GitHubAPI/openapi.yaml index 4c505a44..8fe43625 100644 --- a/Lambdas/GitHubAPI/openapi.yaml +++ b/Lambdas/GitHubAPI/openapi.yaml @@ -59385,12 +59385,6 @@ components: html_url: type: string format: uri - required: - - key - - name - - url - - spdx_id - - node_id nullable: true repository: title: Repository @@ -77403,12 +77397,6 @@ components: nullable: true node_id: type: string - required: - - key - - name - - url - - spdx_id - - node_id nullable: true pushed_at: type: string